Re: [R] hist function in a for loop

2013-06-19 Thread Rui Barradas
Hello, Your code doesn't work because you are calling a non-function: hist(singlefile$CL1( ... )) # here singlefile$CL1 is not a function. For us to be able to help you please do the following. 1. paste the output of the command below in a post dput(head(singlefile, 50)) 2. Post a call to h

Re: [R] hist function in a for loop

2013-06-18 Thread Dzu
Dear, I want to do the following : #I have created a huge csv.files with 44 colums #I want to select the specific colums from these files #CL1 consist data from which I want to compute the histogramms, CL2 is the cloumn which has numbers that identifies know from which line my second histogram d

Re: [R] hist function in a for loop

2013-06-18 Thread Dzu
Hello Thanks for reply I want to compute several histograms in a for loop.I am trying to set the binsize constant in the beginning. #compute the histograms for (i in 1:12) { binsize <- -20 :20/2 hist(singlefile$GVC(singlefile$new_id[,i], freq = FALSE,xlab ="Graph i", col = "pink",

Re: [R] hist function in a for loop

2013-06-18 Thread Rui Barradas
Hello, Sorry, I forgot to Cc the list. Rui Barradas Em 18-06-2013 16:29, Rui Barradas escreveu: Hello, Inline. Em 18-06-2013 15:54, Dzu escreveu: 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