Moves information from one slot to other slots. For instance from the sets to the relations.
Usage
move_to(object, from, to, columns)
# S4 method for class 'TidySet,characterORfactor,characterORfactor,character'
move_to(object, from, to, columns)
Methods (by class)
move_to( object = TidySet, from = characterORfactor, to = characterORfactor, columns = character )
: Move columns
See also
Other methods:
TidySet-class
,
activate()
,
add_column()
,
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()
,
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
x <- list("A" = c("a" = 0.1, "b" = 0.5), "B" = c("a" = 0.2, "b" = 1))
TS <- tidySet(x)
TS <- mutate_element(TS, b = runif(2))
TS2 <- move_to(TS, from = "elements", to = "relations", "b")
# Note that apparently we haven't changed anything:
TS2
#> elements sets fuzzy b
#> 1 a A 0.1 0.1194854
#> 2 b A 0.5 0.1946950
#> 3 a B 0.2 0.1194854
#> 4 b B 1.0 0.1946950