Re: [Rd] Help with "row.names = as.integer(c(NA, 5))" in file from dput

2007-02-28 Thread Peter Dalgaard
Mike Prager wrote: > Peter-- > > Thank you. Am I correct in understanding, then, that, > > (1) The syntax I asked about is a special case, and the parser > and/or dget() somehow recognize it as such, and > > (2) The syntax 1:15 (where 15 is the number of rows) should > work just as well as c(NA,

Re: [Rd] Help with "row.names = as.integer(c(NA, 5))" in file from dput

2007-02-28 Thread Mike Prager
Peter-- Thank you. Am I correct in understanding, then, that, (1) The syntax I asked about is a special case, and the parser and/or dget() somehow recognize it as such, and (2) The syntax 1:15 (where 15 is the number of rows) should work just as well as c(NA, 15)? I ask, again, because I want

Re: [Rd] Help with "row.names = as.integer(c(NA, 5))" in file from dput

2007-02-28 Thread Peter Dalgaard
Mike Prager wrote: > I am trying to understand why syntax used by dput() to write > rownames is valid (say, when read by dget()). I ask this > because I desire to emulate its actions *reliably* in my For2R > routines, and I won't be comfortable until I understand what R > is doing. > > Given data

[Rd] Help with "row.names = as.integer(c(NA, 5))" in file from dput

2007-02-28 Thread Mike Prager
I am trying to understand why syntax used by dput() to write rownames is valid (say, when read by dget()). I ask this because I desire to emulate its actions *reliably* in my For2R routines, and I won't be comfortable until I understand what R is doing. Given data set "fred": > fred id