I have a data frame which I am dcasting using the reshape2 package, and I would like to remove the first column and have it become the row names of
dcast
reshape2
You can use the magrittr alias set_rownames:
magrittr
set_rownames
df %>% set_rownames(.$ID_full)