coords-set-.HPDataFrame: Assign new coordinate system to a 'HPDataFrame'

coords<-.HPDataFrameR Documentation

Assign new coordinate system to a HPDataFrame

Description

Assign new coordinate system to a HPDataFrame

Usage

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

See Also

coords.HPDataFrame

Examples


## 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


frycast/rcosmo documentation built on Oct. 11, 2022, 5:21 p.m.