Hi,
Sorry, yes that would be a better idea, Luc! Here are the first few lines of the frequency table.. Count Chest 1 3 33 2 18 34 3 81 35 4 185 36 5 420 37 In my previous email I said the sample size was 100, I just meant that as an example, obviously it's far greater than that.. Louisa > Date: Tue, 7 Apr 2009 10:00:55 -0400 > From: villa...@dms.umontreal.ca > To: statsstud...@hotmail.com > CC: r-help@r-project.org > Subject: Re: [R] Frequency table to histogram > > Hi Mary, > > Could you please provide a copy of the first few lines of your frequency > table (with only relevant columns)? I think this could help many > potential contributors understand in more details what you're trying to do. > > Cheers, > > Luc > > Mary Winter wrote: > > > > > > I have read a frequency table in to R called "temp." I now want to create a > > histogram table from it, but I obviously first have to expand the data - to > > the sample size of 100. I want to use the command rep(), but I'm not sure > > how to go about it..I tried using the code: > > > > > > > > temp1<-rep(temp$Chest,100) > > > > hist(temp1) > > > > > > > > But this creates a v. odd histogram so I know it must be wrong! > > > > > > > > Would be very grateful if any one could help me out! > > > > > > > > Mary > > > > _________________________________________________________________ > > > > > > [[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. > > _________________________________________________________________ [[elided Hotmail spam]] [[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.