SHARE
TWEET

Untitled

a guest Jul 17th, 2017 36 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. txt <- "c1,c2,c3,c4,c5
  2. 1,0,100,1,alto
  3. 1,1,101,0,medio
  4. 0,0,200,1,alto
  5. 1,1,101,1,bajo
  6. "
  7. df <- as.data.frame(read.table(textConnection(txt), sep = ",", header=TRUE))
  8.    
  9. > class(df$c5)
  10. [1] "factor"
  11.    
  12. > class(df$c3)
  13. [1] "factor"
RAW Paste Data
Top