[R] dataframe operation
Mike Prager
mike.prager at noaa.gov
Wed Jan 24 21:11:17 CET 2007
Hint: Try
?subset
at the R prompt
"Indermaur Lukas" <Lukas.Indermaur at eawag.ch> wrote:
> hi
> i have a dataframe "a" which looks like:
>
> column1, column2, column3
> 10,12, 0
> NA, 0,1
> 12,NA,50
>
> i want to replace all values in column1 to column3 which do not contain "NA" with values of vector "b" (100,200,300).
>
> any idea i can do it?
>
> i appreciate any hint
--
Mike Prager, NOAA, Beaufort, NC
* Opinions expressed are personal and not represented otherwise.
* Any use of tradenames does not constitute a NOAA endorsement.
More information about the R-help
mailing list