r change a single value in a dataframe
# Basic syntax:
your_dataframe[row_number, column_number] = new_value
r change a single value in a dataframe
# Basic syntax:
your_dataframe[row_number, column_number] = new_value
r change column based on condition
# If a condition is met in a specific column (column "b" is 0),
# change the value in column "est". Here the value is replaced
# by the value for "a" in that same row where b == 0.
df$est[df$b == 0] <- df$a[df$b == 0]
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us