[R] error while using shapiro.test()

spicymchaggis101 jami5490 at mylaurier.ca
Sat Oct 1 00:59:22 CEST 2011


hey all, I'm just getting used to R and i'm having issues when it comes to
reading my data in rows rather than columns. any good advice would be much
appreciated !

here is the error:

> data1 <- read.table(file.choose(),header=T)
> x1 <- c(data1[1,1:5])
> shapiro.test(x1)
Error in sort.int(x, na.last = na.last, decreasing = decreasing, ...) : 
  'x' must be atomic


This is my data: 

   Noun Verb adverb Adjective Preposition Total
1    21    4      9         1           1    36
2    26    4      5         3           0    38
3    31    6      6         0           0    43
4    37    4      6         0           0    47
5    22    3      1        10           0    36
6    12    8      0         9           0    29
7    22    5      0         5           0    32
8    12   11      0        12           0    35
9    27    7      1        10           0    45
10   20    4      1        10           1    36
11   21    6      1         6           0    34
12   29    1      0         8           0    38
13   16   19      0         8           0    43
14   23    6      2         5           0    36
15   29    5      0         2           0    36
16   33    7      0         3           0    43
17   29    4      0         2           0    35
18   24    7      0         7           1    39
19   28    2      1         3           0    34
20   32    5      0         7           0    44
21   19    6      0         5           0    30
22   19    7      3         4           0    33
23   19    4      1         5           1    30
24   29    8      3         4           0    44
25   34    9      0         1           0    44
26   27    9      1         3           0    40
27   13   11      5         9           0    38
28   17    7      0        10           0    34
29   21    6      0         7           0    34
30   28    4      0         5           0    37



--
View this message in context: http://r.789695.n4.nabble.com/error-while-using-shapiro-test-tp3861535p3861535.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list