Search code examples
rdataframerow

Change specific row name in a specific column


I want to change the name of a specific row in a specific column. I have troubles navigating around in my dataframe to change the name of this specific object.

enter image description here

For example: I want to change "RowName1" in the column "ColumnName1"

Thank you in advance!


Solution

  • Okay I found what I was looking for:

    df[df == "OldValue"] <- "NewValue"