> > I have no way to determining _why_ it is not numeric, but it simply is ... > not. Your input method turned it into a factor. Perhaps there was one > missing delimiter, or there was a stray character in one of the entries in > the file. Who knows. Why waste time arguing? Follow the directions for > fixing the problem. >
Hi David, Thanks for your time. I thinks it works now. > str(assame$Login) Factor w/ 419 levels ".00","1.00","10.00",..: 114 283 217 216 14 1 2 2 407 327 ... > is.numeric(assame$Login) [1] FALSE >as.numeric(assame$Login) //convert to numerics > str(as.numeric(assame$Login)) num [1:35943] 114 283 217 216 14 1 2 2 407 327 ... the I did some thing like this : > avglog <- with(assame, tapply(as.numeric(Login), stdate, mean) ) > avglog 01/11/09 00:00 02/11/09 00:00 03/11/09 00:00 04/11/09 00:00 05/11/09 00:00 145.0176 135.5207 133.0390 131.1457 132.3732 06/11/09 00:00 07/11/09 00:00 129.6357 133.4521 Am I right ? Thanks & Rg Mohan L [[alternative HTML version deleted]] ______________________________________________ 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.