search for: number_row

Displaying 3 results from an estimated 3 matches for "number_row".

Did you mean: number_rows
2010 Apr 14
1
Problems getting symbols() to show table data
...to get me some of the way, but I am still far off getting it to actually work, with the result that I think I may be heading in completely the wrong direction. I can create a grid of circles with the right number of dimensions: Read_data=read.table("C:/files/circle_data.txt", head = T) number_rows = nrow(Read_data) number_cols = ncol(Read_data) xaxis = rep(seq(1,ncol(Read_data),1),nrow(Read_data)) yaxis = rep(seq(1,nrow(Read_data),1),ncol(Read_data)) zvalues = rep(0.1,(number_rows*number_cols)) #This is just a dummy vector symbols(xaxis, yaxis, circles = zvalues, inches = FALSE, xlab="...
2009 Oct 19
2
how to get rid of 2 for-loops and optimize runtime
...imize my runtime I use R 2.9.2 windows Xp service pack3 Thank you in advance Best regards, Willems Ian ***************************** dataset[,5]= month dataset[,3]= year dataset[,22]= amount dataset[,14]= servicetype [CODE] #for each row of the matrix check if each row has.. > for (j in 1:Number_rows) { + sum<-0 + for(i in 1:Number_rows){ + if (dataset[j,14]== dataset[i,14]) #..the same service type + {if (dataset[j,18]== dataset[i,18]) # .. the same department + {if (dataset[j,5]== "1") # if month=1, month ago is 12 and year is -1 + {if ("12"== datas...
2010 Apr 15
4
Does "sink" stand for anything?
Hello Everyone,   Learning about R and its wonderful array of functions. If it's not obvious, I usually try to find out what a function stands for. I think this helps me remember better.   One function that has me stumped is "sink." Can anyone tell me if this stands for something?   Thanks,   Paul         __________________________________________________ [[alternative HTML