Re: [R] Separator of data

2011-06-28 Thread Trying To learn again
MAny Thanks¡¡¡ 2011/6/28 jim holtman > try this: > > > x <- read.fwf(textConnection("188556644 > + 225588666 > + 55555"), width = rep(1,9)) > > > > x > V1 V2 V3 V4 V5 V6 V7 V8 V9 > 1 1 8 8 5 5 6 6 4 4 > 2 2 2 5 5 8 8 6 6 6 > 3 5 5 8 8 8 8 5 5 5 > > > > > On Tue,

Re: [R] Separator of data

2011-06-28 Thread jim holtman
try this: > x <- read.fwf(textConnection("188556644 + 225588666 + 55555"), width = rep(1,9)) > > x V1 V2 V3 V4 V5 V6 V7 V8 V9 1 1 8 8 5 5 6 6 4 4 2 2 2 5 5 8 8 6 6 6 3 5 5 8 8 8 8 5 5 5 > On Tue, Jun 28, 2011 at 3:47 PM, Trying To learn again wrote: >  Hi all, >

Re: [R] Separator of data

2011-06-28 Thread David Winsemius
On Jun 28, 2011, at 3:56 PM, David Winsemius wrote: On Jun 28, 2011, at 3:47 PM, Trying To learn again wrote: Hi all, I have a matrix like this: 188556644 225588666 55555 I try to read the table using read table but if I put sep="" I have seen it expects a white space, is there a "s

Re: [R] Separator of data

2011-06-28 Thread David Winsemius
On Jun 28, 2011, at 3:47 PM, Trying To learn again wrote: Hi all, I have a matrix like this: 188556644 225588666 55555 I try to read the table using read table but if I put sep="" I have seen it expects a white space, is there a "sep" option to read this matrix so each single number

Re: [R] Separator of data

2011-06-28 Thread Ben Bolker
Trying To learn again gmail.com> writes: > 188556644 > 225588666 > 55555 > > I try to read the table using read table but if I put sep="" I have seen it > expects a white space, is there a "sep" option to read this matrix so > each single number is a position of the matrix ?read.fwf, I

[R] Separator of data

2011-06-28 Thread Trying To learn again
Hi all, I have a matrix like this: 188556644 225588666 55555 I try to read the table using read table but if I put sep="" I have seen it expects a white space, is there a "sep" option to read this matrix so each single number is a position of the matrix You see this matrix would be an 3x9