Replace values from Giotto Classes using $<-
operator.
Usage
# S4 method for class 'giotto'
x$name <- value
# S4 method for class 'coordDataDT'
x$name <- value
# S4 method for class 'spatEnrObj'
x$name <- value
# S4 method for class 'dimObj'
x$name <- value
# S4 method for class 'metaData'
x$name <- value
# S4 method for class 'terraVectData'
x$name <- value
`$<-`
methods
Set values by colname into giotto S4 data.table coordinates slot. Works via data.table methods
Set values by colname into giotto S4 spatEnrObj.
Set entries in misc slot from giotto S4 dimObj.
Set values by colname into giotto S4 data.table metaDT slot. Works via data.table methods
Set values by colname into giotto S4 spatVector slot.
Examples
gpoints <- GiottoData::loadSubObjectMini("giottoPoints")
gpoints$new_col <- sprintf("feat_%d", seq(nrow(gpoints)))