add_column {BaseSet} | R Documentation |
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)
-
add_column(object = TidySet, slot = character)
: Add a column to any slot
See Also
Other column:
remove_column()
Other methods:
TidySet-class
,
activate()
,
add_relation()
,
arrange.TidySet()
,
cartesian()
,
complement_element()
,
complement_set()
,
complement()
,
element_size()
,
elements()
,
filter.TidySet()
,
group_by.TidySet()
,
group()
,
incidence()
,
intersection()
,
is.fuzzy()
,
is_nested()
,
move_to()
,
mutate.TidySet()
,
nElements()
,
nRelations()
,
nSets()
,
name_elements<-()
,
name_sets<-()
,
name_sets()
,
power_set()
,
pull.TidySet()
,
relations()
,
remove_column()
,
remove_element()
,
remove_relation()
,
remove_set()
,
rename_elements()
,
rename_set()
,
select.TidySet()
,
set_size()
,
sets()
,
subtract()
,
union()
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"
)))