Dear Researchers I am looking for a function to count how many elements repeats inside my data.frame and create a new data.frame as the following example.
thanks and sorry for desturbing
example
mydata <-
data.frame(myfield=c("A","A","A","A","A","A","B","B","B","B","C","C","C","D","D"))
#result
myfiled count
A 6
B 4
C 3
D 2
[[alternative HTML version deleted]]
_______________________________________________
R-sig-Geo mailing list
[email protected]
https://stat.ethz.ch/mailman/listinfo/r-sig-geo
