Warning message: Setting row names on a tibble is deprecated.

Hi community!!! I encountered this warning message while changing the row names:

Warning message: Setting row names on a tibble is deprecated. 

Can anyone please help me to this warning message/error?

Thanks and regards,
DC7

As the message states, you cannot set row names on tibbles (as you can with dataframes).

You could add a rowname column:

I think the link you shared is changing row name in dataframe. It doesn't work with tibbles. Is there any other way out?

No, it's for tibbles only. Check the link again.