Hi, 

type

is(sampA)

is(sampV)

in the R-prompt. It will show you that at least one of the vectors is not a
vector of numerical values in R's sense. Then you have to convert using the
as.numeric() function, but you will have to make sure that this really gives
you the original vectors. Since your vectors are only 1x10, it's probably
easier to type them in anew.

Cheers,
Daniel


-------------------------
cuncta stricte discussurus
-------------------------

-----Ursprüngliche Nachricht-----
Von: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] Im
Auftrag von Amit Patel
Gesendet: Monday, March 02, 2009 11:00 AM
An: r-help@r-project.org
Betreff: [R] Help with Wilcoxon Test

Hi
I have 2 sets of data that I want to do a Wilcoxon test on. They are of the
same dimension. One has 4 zero values and the other has 5.
> dim(SampA)
[1]  1 10
> dim(SampV)
[1]  1 10
 
I get the folowing error 

Error in wilcox.test.default(SampA, SampV, na.rm = TRUE, paired = FALSE,  : 
  'x' must be numeric



I am using the function
wilcox.test(SampA, SampV, na.rm=TRUE, paired=FALSE, conf.level=0.95)





______________________________________________
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.

______________________________________________
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.

Reply via email to