Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- apply(iris,2,function(x) class(x))
- # Sepal.Length Sepal.Width Petal.Length Petal.Width Species
- # "character" "character" "character" "character" "character"
- apply(iris[,1:4],2,function(x) class(x))
- # Sepal.Length Sepal.Width Petal.Length Petal.Width
- # "numeric" "numeric" "numeric" "numeric"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement