Re: [R] Confusing concept of vector and matrix in R

2010-04-26 Thread Stuart Andrews
Thanks Charles, for clarifying. My statement holds for matrices, which are 2 dimensional. And, as you mentioned, a single index implies vector indexing where the drop argument doesn't make sense. I am somewhat relieved, given this new understanding. But I am still puzzled as to why R

[R] unexpected behaviour with ddply and colwise

2010-04-07 Thread Stuart Andrews
. Shouldn't ddply() produce the same ? Thanks in advance for your help, - Stuart Andrews set.seed(1234) aa = as.data.frame(matrix(rnorm(100)0.3,nrow=20)) names(aa) = c('a','b','c','d','e') head(aa) a b c d e 1 FALSE FALSE FALSE TRUE TRUE 2 TRUE TRUE FALSE TRUE FALSE 3 TRUE

Re: [R] unexpected behaviour with ddply and colwise

2010-04-07 Thread Stuart Andrews
-hicky is called. I'm not sure, but what are you trying to get at by row-wise splitting `aa` by c('a', 'b', 'c', 'd', 'e') [ie. namaes(aa)]? Thanks in advance for your help, - Stuart Andrews set.seed(1234) aa = as.data.frame(matrix(rnorm(100)0.3,nrow=20)) names(aa) = c('a','b','c','d','e') head

[R] Suppressing certain debugging output

2009-12-21 Thread Stuart Andrews
keywords: debug, do.call, debugging in, suppress, arguments, list, screen, console, output Hi, I would like to control the output to the console while debugging functions that are called by do.call( FCN, ARGUMENTS ) when the arguments are quite large. Is there a simple way to suppress