Description Usage Arguments Value Examples

This is a function that converts a set of cartesian coordinates to a set of polar coordinates.

1 | ```
cart2polar(x1, y1, x2, y2)
``` |

`x1` |
The x-coordinate of your origin. |

`y1` |
The y-coordinate of your origin. |

`x2` |
A number or vector of numbers of destination points. |

`y2` |
A number of vector of numbers of destination points. |

This function returns a data.frame with 4 columns. "x" is the distance between the xcoordinate and the origin, "y" is the distance between the y coordinate and the origin, theta is the angle from the original point, and r is the distance between the two points.

1 | ```
cart2polar(1,1,c(-2,2,1),c(11,1,2))
``` |

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.