Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

add_column

Add column


Description

Add column to a slot of the TidySet object.

Usage

add_column(object, slot, columns)

## S4 method for signature 'TidySet,character'
add_column(object, slot, columns)

Arguments

object

A TidySet object.

slot

A TidySet slot.

columns

The columns to add.

Value

A TidySet object.

Methods (by class)

  • object = TidySet,slot = character: Add a column to any slot

See Also

Other column: remove_column()

Examples

relations <- data.frame(
    sets = c(rep("a", 5), "b"),
    elements = letters[seq_len(6)],
    fuzzy = runif(6)
)
TS <- tidySet(relations)
add_column(TS, "relations", data.frame(well = c(
    "GOOD", "BAD", "WORSE",
    "UGLY", "FOE", "HEY"
)))

BaseSet

Working with Sets the Tidy Way

v0.0.16
MIT + file LICENSE
Authors
Lluís Revilla Sancho [aut, cre] (<https://orcid.org/0000-0001-9747-2570>), Zebulun Arendsee [rev], Jennifer Chang [rev]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.