I have a dataframe of 600x14 dimensions and I need to use the replace(.)
command in R to replace certain values in a certain column to NA
. These values are outliers that I am masking with NA
. the name of the column is called Response.Size and the name of the dataframe is called mydata
. The data points of interest I need to replace with NA are in rows 54, 146 and 239 and their corresponding values are 206952, 198146 and 135523 respectively.
This is my first time using R Studio so I am a bit confused. I have tried using the replace(.)
command but can't seem to get it. Any help would be appreciated