Re: [R] Basic question on nominal data

2009-11-17 Thread Ted Harding
On 17-Nov-09 22:55:32, Marc Giombetti wrote: > Hello everybody, > I am new to R and I have a very basic question, but I couldn't get > this to work. > Let's say I have a vector > > s = c("a","a","a","b","b","c","c","c","c") > s1 <- factor(s) > > s2 <- summary(s1) leads to the following > a b c >

Re: [R] Basic question on nominal data

2009-11-17 Thread Colin Millar
Hi, try ?table # for example (s3 <- table(s)) # and if you want a single value s3["a"] # or s3[1] HTH, Colin. From: r-help-boun...@r-project.org on behalf of Marc Giombetti Sent: Tue 17/11/2009 22:55 To: r-help@r-project.org Subject: [R] Basic ques