Hi community, I want to count the occurrence of values within a dataframe. data$names is a list of many names. With namelist <- unique(data$names) I get all the existing names. But the result is a factor, not a list of strings.
I would then like to go trough all the names in a for-loop and count their occurrence. How do I make this? Best regards, Markus ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.