[R] "Copy-pastable" output of 1000 plus variables
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:
> 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.
> R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see
> 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