View source: R/feature_manipulation.R
feature_manipulation | R Documentation |
This function allows for manipulation of features in a given matrix or data frame. It can remove variables with missing values, non-numeric variables, infinite variables, and variables with zero standard deviation.
feature_manipulation(data, feature, is_matrix = FALSE, print_result = FALSE)
data |
The matrix or data frame containing the features to be manipulated. |
feature |
The features to be manipulated. If is_matrix is set to TRUE, feature will be ignored. |
is_matrix |
Whether the data is in matrix format. Default is FALSE. If set to TRUE, the function will treat data as a matrix and extract the column names as features. |
print_result |
Whether to print the manipulation results. Default is FALSE. If set to TRUE, it will print the results of each manipulation step. |
filtered features
Dongqiang Zeng
# loading data
data("eset_stad")
# filtering features with NA or outlier
feas <- feature_manipulation(data = eset, feature = rownames(eset), is_matrix = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.