Hi, If you want to know how many unique dates are in the dataset
`dat`: dataset length(unique(dat$`trade date`)) #[1] 6 To find the frequency of each date: ?table table(dat$`trade date`) A.K. Hi, some of you knows how to count dates in R ? i want to know how many dates in my data? my data like this trade date 2014-1-16 2014-1-16 2013-5-25 2014-1-13 2014-1-10 2013-5-14 2013-5-24 thanks,Pan ______________________________________________ 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.