Hi, For your error "object 't1971' not found" can be corrected by subsetting. t2001 can be done similarly with 2001 replacing 1971.
> t1971 <- data[year==1971,] > t1971 VOT year Consonant 1 67 1971 k 2 127 1971 k 3 79 1971 k 4 150 1971 k 5 53 1971 k 6 65 1971 k 7 75 1971 k 8 109 1971 k 9 109 1971 t 10 126 1971 t 11 129 1971 t 12 119 1971 t 13 104 1971 t 14 153 1971 t 15 124 1971 t 16 107 1971 t 17 181 1971 t 18 166 1971 t -- View this message in context: http://r.789695.n4.nabble.com/Making-a-histogram-tp4702534p4702915.html Sent from the R help mailing list archive at Nabble.com. ______________________________________________ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see 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.