Re: [R] Question Regarding 'pipe'

2008-04-08 Thread Jan T. Kim
On Mon, Apr 07, 2008 at 07:42:50PM -0500, [EMAIL PROTECTED] wrote: Can anyone point out why this is not working? y-read.table(pipe(' awk '{ n = $1; sub( .* $1 ,) ; while ( n-- ) ^ print }' temp.txt ')) ^ one problem is that your single-quoted R string

Re: [R] Question Regarding 'pipe'

2008-04-08 Thread born . to . b . wyld
Reason, I need to do this in awk and not R: Let's say 'x' is the tabular representation of a sparse contingency table x x10 x11 x12 x13 x14 x15 x16 x17 x18 x19 Freq 10 0 0 2 2 2 0 2 0 2 54 51 0 0 2 2 2 0 2 1 21 61 0 1 0 2 2 0

Re: [R] Question Regarding 'pipe'

2008-04-08 Thread Jan T. Kim
On Tue, Apr 08, 2008 at 06:52:33AM -0500, [EMAIL PROTECTED] wrote: Reason, I need to do this in awk and not R: Let's say 'x' is the tabular representation of a sparse contingency table x x10 x11 x12 x13 x14 x15 x16 x17 x18 x19 Freq 10 0 0 2 2 2 0 2 0 2 54 51

[R] Question Regarding 'pipe'

2008-04-07 Thread born . to . b . wyld
Can anyone point out why this is not working? y-read.table(pipe(' awk '{ n = $1; sub( .* $1 ,) ; while ( n-- ) print }' temp.txt ')) [[alternative HTML version deleted]] __ R-help@r-project.org mailing list