Skip to content
Back to formatted view

Raw Message

Message-ID: <49DB5C97.2090900@dms.umontreal.ca>
Date: 2009-04-07T14:00:55Z
From: Luc Villandre
Subject: Frequency table to histogram
In-Reply-To: <BAY104-W32435D2C8F19C35A9FF902C7850@phx.gbl>

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 at 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.
>