Description Usage Arguments Value Examples
Performs the opposite of expand.tags: collapses the data in
tagcolumns
to a single column (called tagcolumn
) that contains
a JSON representation of the data that was previously in the tag columns
at that row.
1 2 3 4 5 6 7 | condense.tags(x, ...)
## S3 method for class 'data.frame'
condense.tags(x, tagcolumns, tagcolumn = "tags", ...)
## S3 method for class 'mudata'
condense.tags(x, ...)
|
x |
a data frame with tag columns |
... |
passed to/from methods |
tagcolumns |
column names to be condensed to JSON |
tagcolumn |
the column in which to store JSON |
A modified data.frame
1 2 | data(pocmaj)
condense.tags(pocmaj, tagcolumns = c("Ca", "Ti", "V"))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.