Hi Kevin, Try using ?dput for putting your code on the list, so people could easily import and play with it. I think you probably need to do this:
sub <- subset(Claims, Year="Y1") This also should work: sub <- Claims [ Year="Y1",] ----------------Contact Details:------------------------------------------------------- Contact me: tal.gal...@gmail.com | 972-52-7275845 Read me: www.talgalili.com (Hebrew) | www.biostatistics.co.il (Hebrew) | www.r-statistics.com (English) ---------------------------------------------------------------------------------------------- On Thu, Feb 9, 2012 at 4:48 AM, kevin123 <kevincorry...@gmail.com> wrote: > sub <- subset(Claims, Year=Y1) > [[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.