Re: [R] Separating variables in read.table

2009-04-17 Thread Richardson, Patrick
] Separating variables in read.table Richardson, Patrick [Fri, Apr 17, 2009 at 09:31:35PM CEST]: > If I have a table (we'll call it, "test") containing seven columns (as below): > > i x1 x2 x3 x4 x5 y > 0 1.125 0.232 7.160 0.0859

Re: [R] Separating variables in read.table

2009-04-17 Thread Johannes Huesing
Richardson, Patrick [Fri, Apr 17, 2009 at 09:31:35PM CEST]: > If I have a table (we'll call it, "test") containing seven columns (as below): > > i x1 x2 x3 x4 x5 y > 0 1.125 0.232 7.160 0.0859 8.905 1.5563 > 7 0.920 0.268 8.804 0.0865 7.388 0.8976

Re: [R] Separating variables in read.table

2009-04-17 Thread Phil Spector
Patrick - There's no simple way to do what you want, because R discourages you from having lots of separate related objects. Instead, you are encouraged to store your objects in an organized form, such as a list, data frame or matrix. For your example, I'm assuming you are using the word "

Re: [R] Separating variables in read.table

2009-04-17 Thread Etienne Bellemare Racine
see ?attach Etienne Richardson, Patrick a écrit : > If I have a table (we'll call it, "test") containing two columns (as below): > > i x1 x2 x3 x4 x5 y > 0 1.125 0.232 7.160 0.0859 8.905 1.5563 > 7 0.920 0.268 8.804 0.0865 7.388 0.8976 > 150.83

Re: [R] Separating variables in read.table

2009-04-17 Thread Jorge Ivan Velez
Dear Patrick, Perhaps attach might be what you are looking for. attach(test) i x1 x2 . . . y HTH, Jorge On Fri, Apr 17, 2009 at 3:23 PM, Richardson, Patrick < patrick.richard...@vai.org> wrote: > If I have a table (we'll call it, "test") containing two columns (as > below): > > i x1