Learn R Programming

stream (version 2.0-3)

DSF_FeatureSelection: Select Features for a Data Stream

Description

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

Usage

DSF_FeatureSelection(dsd = NULL, features)

Value

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

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.

Author

Michael Hahsler

See Also

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

Examples

Run this code
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)

Run the code above in your browser using DataLab