ject: Re: [R] Problem with combined two data frame.
> To: "Jumlong Vongprasert"
> Cc: "R-help"
> Date: Sunday, January 23, 2011, 1:11 AM
> Hi
> So let's call first data frame df1 and second df2
> #replace NA with 2.36
> df2y <- lapply(df2, fu
Hi
So let's call first data frame df1 and second df2
#replace NA with 2.36
df2y <- lapply(df2, function(x) (ifelse( is.na(x), 2.36,x)))
#combibe
both <- rbind(df1, df2)
With best regards
Denis
У Няд, 23/01/2011 у 12:41 +0700, Jumlong Vongprasert піша:
> Dear All.
> I have some problem with com
2 matches
Mail list logo