with | R Documentation |
with()
will return the result of your expression. within()
will return
an rbiom object.
## S3 method for class 'rbiom'
with(data, expr, ...)
## S3 method for class 'rbiom'
within(data, expr, clone = TRUE, ...)
data |
An rbiom object, such as from |
expr |
Passed on to |
... |
Not used. |
clone |
Create a copy of |
See description.
Other transformations:
modify_metadata
,
rarefy()
,
rarefy_cols()
,
slice_metadata
,
subset()
library(rbiom)
with(hmp50, table(`Body Site`, Sex))
biom <- within(hmp50, {
age_bin = cut(Age, 5)
bmi_bin = cut(BMI, 5)
})
biom$metadata
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.