c1 <- matrix(c("a","b","c"), nrow=3, ncol=1) c2 <- matrix(c(1:3), nrow=3, ncol=1)
mat <- cbind(c1,c2) mode(mat[2,2])
df <- data.frame(c1,c2) mode(df[2,2])
No comments:
Post a Comment