How to change Row name of a particular column in R dataframe:
<df
Name Value
A 10
B 20
C 30
I want output to be:
Name Value
AAA 10
BBB 20
CCC 30
I have tried data.table library but it couldn't work.
library(data.table)
my_df <- setattr(df$Name, "row.names", c("AAA", "BBB", "CCC"))