Try this (not tested):
x$name.x[is.na(x$name.x) | x$name.x == " "] <- x$name.y[is.na(x$name.x) |
x$name.x == " "]
On Thu, Jun 17, 2010 at 10:22 AM, Daniel wrote:
> Hello all,I have a table with about 18000 rows, I need to UPDATE the
> strings
> in the "name.x" column in each row by the strings
Hello all,I have a table with about 18000 rows, I need to UPDATE the strings
in the "name.x" column in each row by the strings from "name.y" given if
"name.x" is NA or " ". How can I do it?
Also I want to update values in other columns, but I think that will be the
same job.
Daniel
--
Daniel Marce
2 matches
Mail list logo