[R] hist function in a for loop
Dzu
dizem.uerek at alumni.fh-aachen.de
Tue Jun 18 16:54:26 CEST 2013
Dear all,
I need to create a for-loop in which I can compute multiple histograms
My code is the following :
#singlefile includes huge csv file
#I want to specify the binsize
#I would like to compute in the for -loop the histograms
numfiles <- length(singlefile)
for (i in 1 :51)
{
binsize <- -20 :20/2
hist(singlefile(singlefile$GVC[singlefile$new_id==i]], break=seq(), by =
binsize)))
What do I have to do ?
How can I specify the range for i ?
I am totally lost
Thanks for support
D.U
--
View this message in context: http://r.789695.n4.nabble.com/hist-function-in-a-for-loop-tp4669797.html
Sent from the R help mailing list archive at Nabble.com.
More information about the R-help
mailing list