> [stuff about SAS CARDS statement, I think] > > INPUT survey $ 1-2 seasonal $ 3 state $ 4-5 area $ 6-10 supersector $ > > 11-12 @13 industry $8. datatype $ 21-22 year period $ value footnote $ ; > ... > This just seems like horrendously bad practice, which is one reason > it's kludgy in R. If it was good practice, someone would surely have > written a way to do it neatly. > > Keep your data in data files, and your functions in .R function > files. You'll thank me later.
Actually, it's really helpful to be able to do this when you're writing unit tests. I've spent a fair bit of time writing R code to create dataframes of artificial data to this end. There's more than one way to do it, sure, they're all kludgey. cur [[alternative HTML version deleted]] ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.