Convert Values in Column into Row Names of Data Frame in R (Example) | Variable & row.names Function

preview_player
Показать описание
R code of this video:

x2 = 5:9)

Рекомендации по теме
Комментарии
Автор

Thanks much! I was looking at so many complicated suggestions and this worked in 5 seconds

bonesaw
Автор

Nice video, can you please tell me how to write greek letters in column names in R programming? Thank you.

rajudey
Автор

Hi! I got the error messgae: Error in `.rowNamesDF<-`(x, value = value) :
duplicate 'row.names' are not allowed
In addition: Warning message:
non-unique value when setting 'row.names': ‘FALSE’

XinyueZHANG-xcnb
Автор

I tried to do this I got this error: Warning message: Setting row names on a tibble is deprecated. then I tried to deleted first row, After deleting the first column, the change I made disappears.

ibrahimhalilyildirim
Автор

Hi there, I am unsure what I have done wrong:
row.names(df) <- data$x1
^
SyntaxError: invalid syntax

Iearnwithme