search for: glob3b

Displaying 1 result from an estimated 1 matches for "glob3b".

Did you mean: glob
2009 Jul 23
1
dimension trouble for a matrix
Dear R People: I'm having trouble with something that should be very simple. I'm setting up a matrix outside of a loop and writing items into it during the loop. Here is the output: > glob3b("sites.info") dim 27 3 [1] "/raid1/osg-app" Error in xy[i, ] : incorrect number of dimensions Here is the function: > glob3b function(xx) { x.df <- read.table(xx,header=FALSE,as.is=TRUE,sep="\t") n1 <- nrow(x.df) xy <- matrix(rep("",n1*3),...