Learn R Programming

stream (version 2.0.7)

DSF_FeatureSelection: Select Features for a Data Stream

Description

Selects features from a data stream using a supplied list of features.

Usage

DSF_FeatureSelection(dsd = NULL, features)

Value

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

Arguments

dsd

An object of class DSD.

features

A character vector of feature (column) names or a numeric vector of feature indices. All other features are removed. Special information 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