| sampleCMB | R Documentation |
CMBDataFrameThis function returns a CMBDataFrame which size equals to sample.size,
whose rows comprise a simple random sample of the rows
from the input CMBDataFrame.
sampleCMB(cmbdf, sample.size)
cmbdf |
a |
sample.size |
the desired sample size. |
A CMBDataFrame which size equals to sample.size,
whose rows comprise a simple random sample of the rows
from the input CMBDataFrame.
## Download the map first
# downloadCMBMap(foreground = "smica", nside = 1024)
# df <- CMBDataFrame("CMB_map_smica1024.fits")
# plot(sampleCMB(df, sample.size = 800000))
df <- CMBDataFrame(nside = 16, I = rnorm(12 * 16 ^ 2), ordering = "nested")
df.sample <- sampleCMB(df, sample.size = 100)
df.sample
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.