Skip to content
Back to formatted view

Raw Message

Message-ID: <ae48bfaa-0aae-4376-91e1-d088c87e3e7d@n35g2000yqm.googlegroups.com>
Date: 2009-11-17T22:55:32Z
From: Marc Giombetti
Subject: Basic question on nominal data

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
3 2 4


How can I access the different aggregated values for a b and c? I am
not quite sure if the factor method is the right approach.
I tried to use s2$a but it didn't work.

Any suggestions?

Thanks a lot for your help

Marc