[R] Columns and rows

David Winsemius dwinsemius at comcast.net
Fri Oct 12 04:32:24 CEST 2012


On Oct 11, 2012, at 5:55 PM, Santana Sarma wrote:

> Hi,
> 
> Could you please advice some easy way to do the following for a dataframe
> (header=F) having unequal column- & row- length.
> 
> 1. Combine/stack/join contents from -
>              a) multiple rows into one column.
>              b) multiple columns into one row.
> 
> 2. Stack contents from multiple columns (or, rows) into one column (or,
> row).

Could _you_ please produce an example.

Dataframes do not have headers. They do have column names and column names are required.

-- 
David Winsemius, MD
Alameda, CA, USA




More information about the R-help mailing list