Skip to content
Prev 381377 / 398502 Next

Preserving numeric columns

Data frames are NOT spreadsheets. Don't treat them like spreadsheets. All elements in a column are parts of a vector which means they all have the same data type.

On the other hand, if you want to generate formatted output in HTML, LaTeX, or Word, there are many tools for generating formatted tables in the data output phase of data analysis, and it is common to convert everything to character format intentionally then.
On October 19, 2019 12:44:26 AM PDT, Felipe Carrillo via R-help <r-help at r-project.org> wrote: