[R] "Copy-pastable" output of 1000 plus variables

David Winsemius dwinsemius at comcast.net
Sun Apr 23 21:57:43 CEST 2017

It would be best if you could demonstrate _with_ _code_ the sort of operation you propose.


Sent from my iPhone

> On Apr 23, 2017, at 1:07 PM, Bruce Ratner PhD <br at dmstat1.com> wrote:
> R-helpers:
> I'm reading "Advanced R" (Wickham), which provides his way, quoted below, of keeping variables. This cherry-picking approach clearly is not practical with a large dataset. 
> "If you know the columns you don’t want, use set operations to work out which colums to keep: df[setdiff(names(df), "z")]"
> I'm looking for a way of producing an output of 1000 plus variables, such that I can get a clean listing of variables, not like from st(), that are easily copy-pastable for selecting the variables I want to keep. 
> Any suggestion is appreciated.
> Thanks. 
> Bruce
> ______________________________________________
> R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see
> 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.

More information about the R-help mailing list