getSphericalData {TrajectoryGeometry} | R Documentation

## This is a simplified wrapper for pathToSphericalData

### Description

It handles the case in which from, to and d are all given by the dimensions of the path

### Usage

    getSphericalData(path, statistic)

### Arguments

`path` | - an m x n matrix. Each row is considered a point
`statistic` | - one of 'mean','median' or 'max'

### Value

This function returns a list whose elements are the projections of the path to the sphere, the center for those projections, the median, mean or max distance from the center to those projections and the name of the statistic used.

### Examples

    sphericalData = getSphericalData(straight_path,'max')

[Package TrajectoryGeometry version 1.0.0 Index]