[R] error in rowSums:'x' must be numeric

Petr Pikal petr.pikal at precheza.cz
Fri Nov 11 12:13:14 CET 2005


Hi

try

str(x)

which will show you how your data look like.
Obviously during some reading/manipulation your data became non 
numeric.

HTH
Petr



On 10 Nov 2005 at 16:49, Illyes Eszter wrote:

Date sent:      	Thu, 10 Nov 2005 16:49:56 +0100 (CET)
From:           	Illyes Eszter <illyese at freemail.hu>
To:             	r-help at stat.math.ethz.ch
Subject:        	[R] error in rowSums:'x' must be numeric

> Dear All, 
> 
> It's Eszter again from Hungary. I could not solve my problem form
> yesterday, so I still have to ask your help.
> 
> I have a binary dataset of vegetation samples and species as a comma
> separated file. I would like to calculate the Jaccard distance of the
> dataset. I have the following error message: 
> 
> Error in rowSums(x, prod(dn), p, na.rm) : 'x' must be numeric
> In addition: Warning message:
> results may be meaningless because input data have negative entries
>  in: vegdist(t2, method = "jaccard", binary = FALSE, diag = FALSE,  
> 
> Do you have any idea what can be the problem? I have only 0 and 1 in
> the dataset. 
> 
> Thank you very much! All the best:
> 
> 
> Eszter
> 
> 
> ______________________________________________________________________
> _ KGFB 2006 - Garantáltan a legjobb ár! Nyerje meg az új Swiftet +
> garantált 10,000,-  Ft értékű ajándék. WWW.NETRISK.HU
> 
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide!
> http://www.R-project.org/posting-guide.html

Petr Pikal
petr.pikal at precheza.cz




More information about the R-help mailing list