R/select_factors.R

select_factors <- function(df){
  for (i in names(df)){
    if (is.numeric(df[,i]) == TRUE){
      df[,i] = NULL
    }
  }
  return(df)
}

Try the neuropsychology package in your browser

Any scripts or data that you put into this service are public.

neuropsychology documentation built on May 2, 2019, 2:13 p.m.