Re: [R] rbind-ing numeric matrices

2012-05-01 Thread Nick Switanek
08 PM, Sarah Goslee wrote: > Hi Nick, > > On Tue, May 1, 2012 at 1:56 PM, Nick Switanek wrote: > > Thank you, Steve and Sarah, for your swift replies. > > > > I didn't know about dput(). class() returns "matrix" for A, B, and C, but > > here: &g

Re: [R] rbind-ing numeric matrices

2012-05-01 Thread Nick Switanek
t;, "f", "g", "h", "i", "j", "k"))) But how do I convert A to the appropriate form for rbinding? Not simply with as.matrix(). Witness: > dput(as.matrix(A)) structure(list(1239814462, 1239814601, 14349, 3, 4, 0, 12, 46601, 17801, 124

[R] rbind-ing numeric matrices

2012-05-01 Thread Nick Switanek
Good morning, I'm running into trouble rbind-ing numeric matrices with differing numbers of rows. In particular, there seem to be issues whenever a one-row numeric matrix is involved. Assume A is a numeric matrix with 1 row and Y columns and B is a numeric matrix with X rows and Y columns. Let C

Re: [R] sqldf: issues with natural joins

2010-05-20 Thread Nick Switanek
Tid dfName dfName > > 1 AES 01-01-02 11:53:00 a b > > 2 AES 01-01-05\n10:58:00 a b > > 3 AES 01-01-11 12:30:00 a b > > > > This works too as the double dfName no longer exists to confuse the > heuristic: > > > > names

[R] sqldf: issues with natural joins

2010-05-20 Thread Nick Switanek
Hello, I'm having trouble discovering what's going wrong with my use of natural joins via sqldf. Following the instructions under 4i at http://code.google.com/p/sqldf/, which discusses creating indices to speed joins, I have been only unreliably able to get natural joins to work. For example, >

[R] translating SQL statements into data.table operations

2010-03-24 Thread Nick Switanek
I've recently stumbled across data.table, Matthew Dowle's package. I'm impressed by the speed of the package in handling operations with large data.frames, but am a bit overwhelmed with the syntax. I'd like to express the SQL statement below using data.table operations rather than sqldf (which was