Sorry if this is a duplicate, I found many answers where you could change a value in a data frame to a number or string based on another column, however it doesn't seem to work when trying to change each value based on that value.
So I tried to use some answers for example I read R - Update a Value in One Column Based on Criteria in Other Columns
Now look at my data:
class(df[1,1])  "character" >df[1,1]  "2015-03-01T00:00:00Z" >as.Date(df[1,1])  "2015-03-01"
So I know I can transform my data to what I want it to look like. However:
> df$a[df$b=="start"] <- as.Date(df$a[df$b=="start"]) > df[1,1]  "16495"
I can change them all to a number of string, but when I try and do
as.Date on each value it for some reason returns a strange number
I quickly tried:
Although the correct values were being printed to the console I don't know how to use this to edit my data frame.