pix.HPDataFrame | R Documentation |
HPDataFrame
If new.pix is unspecified then this function returns the vector of
HEALPix pixel indices from a HPDataFrame. If new.pix is specified then
this function returns a new HPDataFrame with the same number of rows
as x
, but with pix attribute new.pix
. Thus,
new.pix
must have length equal to nrow(x)
.
## S3 method for class 'HPDataFrame' pix(x, new.pix, ...)
x |
a |
new.pix |
optional vector of pixel indices with
length equal to |
... |
Unused arguments. |
The vector of HEALPix pixel indices (integers) or, if new.pix is specified, a new HPDataFrame.
df <- HPDataFrame(I = rep(0,12), nside = 1) pix(df)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.