rcosmo (version 1.1.2)

coords<-.HPDataFrame: Assign new coordinate system to a HPDataFrame

Description

Assign new coordinate system to a HPDataFrame

Usage

# S3 method for HPDataFrame
coords(x, ...) <- value

Arguments

See Also

coords.HPDataFrame

Examples

Run this code
# NOT RUN {
## Create df with no coords, then create df2 with cartesian coords
df <- HPDataFrame(I = rep(0,12), nside = 1)
df
df2 <- coords(df, new.coords = "cartesian")
df2
df

## Change the coords of df directly (to spherical)
coords(df) <- "spherical"
df

# }

Run the code above in your browser using DataCamp Workspace