[R] Problem with filling dataframe's column
javad bayat
j@b@y@t194 @end|ng |rom gm@||@com
Sun Jun 11 22:05:05 CEST 2023
Dear R users;
I am trying to fill a column based on a specific value in another column of
a dataframe, but it seems there is a problem with the codes!
The "Layer" and the "LU" are two different columns of the dataframe.
How can I fix this?
Sincerely
for (i in 1:nrow(data2$Layer)){
if (data2$Layer == "Level 12") {
data2$LU == "Park"
}
}
--
Best Regards
Javad Bayat
M.Sc. Environment Engineering
Alternative Mail: bayat194 using yahoo.com
[[alternative HTML version deleted]]
More information about the R-help
mailing list