Linked Questions

Popular Questions

Trying to cast rows to columns in r

Asked by At

I am trying to something very simple in R, transpose a data set so I can create a primary key for joining with other tables that have many values.

I've tried dcast and aggregate, and haven't gotten them to work. Here's what my dataframe currently looks like Current R dataframe

Here's what I would like it to look like: New R dataframe

Related Questions