Displaying 2 results from an estimated 2 matches for "currow".
Did you mean:
curro
2011 Dec 07
1
Help! I couldn't put multiple qplot on the same page...
...from # of cols
# Set up the page
grid.newpage()
pushViewport(viewport(layout = grid.layout(plotRows, plotCols)))
vplayout <- function(x, y)
viewport(layout.pos.row = x, layout.pos.col = y)
# Make each plot, in the correct location
for (i in 1:numPlots) {
curRow = ceiling(i/plotCols)
curCol = (i-1) %% plotCols + 1
print(plots[[i]], vp = vplayout(curRow, curCol ))
}
}
My code is as below:
----------------------------
myplotlist=vector('list', 6)
nCount=0;
for (j in myyears)
{
print(j)
nCount=nCount+1...
2011 Jun 24
2
counting columns that fulfill specific criteria
Hi,
I have a matrix (pwdiff in the example below) with ~480000 rows and 780
columns.
For each row, I want to get the percentage of columns that have an absolute
value above a certain threshold "t". I then want to allocate that percentage
to matrix 'perc' in the corresponding row. Below is my attempt at doing
this, but it does not work: I get 'replacement has length