Monday, March 14, 2016

How to Count Unique/Distinct Values of A Variable in R


base R:


length(unique(mydata$colA))





No comments:

Post a Comment