Learn R Programming

HiveR (version 0.4.0)

sph2cart: Convert Spherical to Cartesian Coordinates

Description

This function converts spherical to Cartesian coordinates.

Usage

sph2cart(df)

Value

A data frame with named columns containing the converted coordinates.

Arguments

df

A data frame with columns named r, theta and phi with the radius and angles (in spherical coordinates) to be converted to Cartesian coordinates.

Author

Bryan A. Hanson, DePauw University. hanson@depauw.edu