condense.tags: Condense multiple columns to a single JSON column

Description Usage Arguments Value Examples

View source: R/tags.R

Description

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.

Usage

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, ...)

Arguments

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

Value

A modified data.frame

Examples

1
2
data(pocmaj)
condense.tags(pocmaj, tagcolumns = c("Ca", "Ti", "V"))

mudata documentation built on Nov. 17, 2017, 7:30 a.m.