> On Nov 27, 2016, at 2:03 PM, Bert Gunter <bgunter.4...@gmail.com> wrote: > > ... >> >> After either method, you can `cbind` to that dfrm object to your heart's >> content, because the cbind.data.frame method is dispatched. >> >> -- >> David. >> > > ... But of course, this is unnecessary anyway, as: > > "The cbind data frame method is just a wrapper for data.frame(..., > check.names = FALSE). This means that it will split matrix columns in > data frame arguments, and convert character columns to factors unless > stringsAsFactors = FALSE is specified."
Good point especially the reminder about the stringsAsFactors pitfall. The factor call to create my example was superfluous, but if I had included a character column the print method for dataframes would h=not have warned me anyway. Neither does the print method for data.tables. Only the print method for the dplyr-tibble objects gives a clear indication of factor-classed columns. -- Best; David Winsemius Alameda, CA, USA ______________________________________________ R-help@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.