DSF_FeatureSelection: Select Features for a Data Stream

View source: R/DSF_FeaturesSelection.R

DSF_FeatureSelectionR Documentation

Select Features for a Data Stream

Description

Select features from a data stream given a list of features.

Usage

DSF_FeatureSelection(dsd = NULL, features)

Arguments

dsd

A object of class DSD that will be scaled.

features

a character vector with feature (column) names or the numeric index of the selected features. All other features will be removed. Note special info columns starting with . are not features.

Value

An object of class DSF_FeatureSelection (subclass of DSF and DSD).

Author(s)

Michael Hahsler

See Also

Other DSF: DSF(), DSF_Convolve(), DSF_Downsample(), DSF_ExponentialMA(), DSF_Func(), DSF_Scale(), DSF_dplyr()

Examples

stream <- DSD_Gaussians(k = 3, d = 3)
get_points(stream, 3)

stream_2features <- DSF_FeatureSelection(stream, features = c("X1", "X3"))
stream_2features

get_points(stream_2features, n = 3)

stream documentation built on May 29, 2024, 9:43 a.m.