sph2cart | R Documentation |

This function converts spherical to Cartesian coordinates.

```
sph2cart(df)
```

`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. |

A data frame with named columns containing the converted coordinates.

Cobbled together from similar functions in other packages.

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

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.