moveFeatures: Move feature(s) to different group

Description Usage Arguments Value Examples

View source: R/meltData.R

Description

A specified feature (or a vector of features) is moved to the desired group. If the target group has more rows than the source group, the features are replicated according to the respective pattern and if the target group has fewer rows, the feature is summarized with the supplied function.

Usage

1
moveFeatures(data, from, to, aggregate = "mean")

Arguments

data

The data (the result of a call to meltData) to be acted upon.

from

The feature name (or vector of feature names) to be added.

to

The group to add them to.

aggregate

If the target group is smaller, this function is used to aggregate the data.

Value

The data.frame specified with the parameter to with the chosen features added.

Examples

1
2
3
data   <- PlateData(PlateLocation("J107-2C"))
molten <- meltData(data)
test   <- moveFeatures(molten, from="Cells.AreaShape_Area", to="Image")

nbenn/singleCellFeatures documentation built on May 23, 2019, 12:24 p.m.