Hello, Try the following.
dat <- read.table(text = " A B 1 10-1 aaa 2 10-1 bbb 3 10-1 abc 4 10-2 vvv 5 10-3 ggg ", header = TRUE) tbl <- table(dat$A) data.frame(tbl) Hope this helps, Rui Barradas Em 10-12-2012 08:50, Mat escreveu:
Hello togehter, i have a data.frame, with value like this: A B 1 10-1 aaa 2 10-1 bbb 3 10-1 abc 4 10-2 vvv 5 10-3 ggg I want now a evaluation, which character is how often in my data.frame. Like this one: A B 1 10-1 3 2 10-2 1 3 10-3 1 How can i do this? Thank you. Mat -- View this message in context: http://r.789695.n4.nabble.com/Count-cell-Count-by-her-frequency-tp4652650.html Sent from the R help mailing list archive at Nabble.com. ______________________________________________ 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.
______________________________________________ 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.