Try using is.na (missing value) instead of is.nan (not a number).

Peter

--
Péter Sólymos
780-492-8534 | solymos@ualberta.ca | http://psolymos.github.com
Alberta Biodiversity Monitoring Institute http://www.abmi.ca
Boreal Avian Modelling Project http://www.borealbirds.ca


On Sun, Mar 9, 2014 at 10:23 PM, Rajendra Mohan panda <rmp.iit.kgp@gmail.com
> wrote:

> Dear members
>
> I have been performing rda in vegan using following code which works with
> one set of data but show errors in another set of data with same syntax:
>
> modH <- rda(decostand (dataA, "hell", na.rm = TRUE) ~ ., data = dataB,
> na.action =na.omit, scale = TRUE)
>
> I get following error continously
> Error in svd(Xbar, nu = 0, nv = 0) : infinite or missing values in 'x'
>
> Even if I use
> mydata<- scale(mydata)
> mydata[is.nan(mydata)] <- 0
>
> The error continues
>
> However, the rda without transformation is possible in both set of data
>
> I will be grateful to your kind help and guidance.
>
> With best Regards
> Rajendra M Panda
> SWR, IIT KGP
>
>         [[alternative HTML version deleted]]
>
> _______________________________________________
> R-sig-ecology mailing list
> R-sig-ecology@r-project.org
> https://stat.ethz.ch/mailman/listinfo/r-sig-ecology
>
>

	[[alternative HTML version deleted]]

