Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
15 lines (14 sloc) 382 Bytes
#' Drop some features of task.
#'
#' @template arg_task
#' @param features ([character])\cr
#' Features to drop.
#' @template ret_task
#' @export
#' @family eda_and_preprocess
dropFeatures = function(task, features) {
assertClass(task, classes = "Task")
f = getTaskFeatureNames(task)
assertSubset(features, choices = f)
subsetTask(task, features = setdiff(f, features))
}
You can’t perform that action at this time.