R/ConvertFactors2Integers.R

Defines functions ConvertFactors2Integers

Documented in ConvertFactors2Integers

ConvertFactors2Integers <- function(x){
  if (is.data.frame(x)){
    p=dim(x)[2]
    for (i in 1:p)
      if (is.factor(x[,i]))
        x[,i]=as.numeric(x[,i])}
  return(x)
}

Try the MultBiplotR package in your browser

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

MultBiplotR documentation built on April 6, 2021, 9:08 a.m.