There are some packages that add labels or other attributes (units) to
columns of data frames and have methods to display the labels, units,
etc. One of these packages is Hmisc, see the label and unit
functions. I believe that there are other packages as well. This may
provide what the original
> On May 1, 2016, at 11:09 AM, Jan Kacaba wrote:
>
> Hello dear R helpers,
>
> Is it possible to have more than 1 row for column names in data.frame,
> array, tbl_df? I would like to have column numbers in the first row, string
> names in the second row, physical unit in third row.
It's possib
I think what you ask isn't ideal.Each column in a dataframe should be the
same data type. While column names are stored in the first row when the df
is exported to CSV, they are not stored as columns in the data frame.
Instead the column names are stored as a separate attribute of the df. This
is w
Hello dear R helpers,
Is it possible to have more than 1 row for column names in data.frame,
array, tbl_df? I would like to have column numbers in the first row, string
names in the second row, physical unit in third row.
How would I do it?
Derek
[[alternative HTML version deleted]]
___
4 matches
Mail list logo