Re: [R] Can R replicate this data manipulation in SAS?

From: peter dalgaard <>
Date: Fri, 22 Apr 2011 19:38:52 +0200

On Apr 22, 2011, at 18:50 , Douglas Bates wrote:

> What about reading a deck of punched cards with the cards statement in
> SAS? How do you propose to do that in R?

Actually, with the new text= argument to read.table in r-devel, it should be rather easy.... (given that you can find a card-punch and punched-card reader, of course).

(And it's "datalines" nowadays, although everyone still uses "cards"...)

Peter Dalgaard
Center for Statistics, Copenhagen Business School
Solbjerg Plads 3, 2000 Frederiksberg, Denmark
Phone: (+45)38153501
Email:  Priv:

______________________________________________ mailing list
PLEASE do read the posting guide
and provide commented, minimal, self-contained, reproducible code.
Received on Fri 22 Apr 2011 - 17:50:40 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Fri 22 Apr 2011 - 18:00:32 GMT.

Mailing list information is available at Please read the posting guide before posting to the list.

list of date sections of archive