[R] Creating a histogram from a frequency vector

Nick Wray n|cho|@@@wr@y @end|ng |rom nt|wor|d@com
Wed Oct 9 17:12:57 CEST 2019

I have a vector like say 73,53,42,67,41,50 where these numbers are the number of occurrences of the data values 1,2,3,4,5,6 - so in essence I have the frequency bit from the hist() function.  I can't see an elegant way (there are clearly messy workarounds like generating a vector of 73 1's, 53 2's etc) of creating a histogram from this data set.  Is there one?

Thanks Nick Wray
	[[alternative HTML version deleted]]

More information about the R-help mailing list