SyntaxFix
Write A Post
Hire A Developer
Questions
Suppose your dataframe is df and you want to change gender from 2 to 1 in participant id 5 then you should determine the row by writing "==" as you can see
df["rowName", "columnName"] <- value df[df$serial.id==5, "gender"] <- 1