Hi there,
I have a data frame called Data
that I want to analyse with some basic statistics such as ACP.
The first column of my object regroups the names of the products Data$Food product
that are then analysed in the next columns.
In order to make plots clearer I would like to rename the rows of my dataframe with the first column.
I make some researches, I tried with this function :
(setattr(Data, "row.names", Data$`Food product`))
Unfortunately, the rows names have not changed.
Do you have any idea how could I resolve this ?