Re: [R] row names, coulmn names

2016-05-03 Thread Greg Snow
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

Re: [R] row names, coulmn names

2016-05-01 Thread David Winsemius
> 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

Re: [R] row names, coulmn names

2016-05-01 Thread Tom Wright
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

[R] row names, coulmn names

2016-05-01 Thread Jan Kacaba
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]]