Advertisement
krzychuz

Untitled

Jul 20th, 2018
185
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
R 0.32 KB | None | 0 0
  1. -------------------------------------------
  2. # Zoo
  3.  
  4. data(Zoo)
  5. dane <- Zoo
  6. fix <- c(1:12, 14:16)
  7. dane[,fix] <- lapply(dane[,fix] , factor)
  8.  
  9.  
  10. -------------------------------------------
  11. # Breast Cancer
  12.  
  13. data(BreastCancer)
  14. dane <- BreastCancer
  15. fix <- c(2:6)
  16. dane[,fix] <- lapply(dane[,fix], factor, ordered=FALSE)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement