Description Usage See Also Examples
Assign new coordinate system to a data.frame
data.frame
1 2
## S3 replacement method for class 'data.frame' coords(x, ...) <- value
coords.data.frame
1 2 3 4 5 6 7 8 9
## Create df with no coords, then create df2 with cartesian coords df <- data.frame(x = c(1,0,0), y = c(0,1,0), z = c(0,0,1)) df2 <- coords(df, new.coords = "cartesian") df2 df ## Change the coords of df directly (to spherical) coords(df) <- "spherical" df
Add the following code to your website.
REMOVE THIS Copy to clipboard
For more information on customizing the embed code, read Embedding Snippets.