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 <dmsilv@gmail.com> 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 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 Marcelino
> http://bit.ly/pol4vc
>
>        [[alternative HTML version deleted]]
>
> ______________________________________________
> R-help@r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide
> http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>



-- 
Henrique Dallazuanna
Curitiba-Paraná-Brasil
25° 25' 40" S 49° 16' 22" O

	[[alternative HTML version deleted]]

