Skip to content
Back to formatted view

Raw Message

Message-ID: <49CCAA8C.5020303@geo.uu.nl>
Date: 2009-03-27T10:29:32Z
From: Paul Hiemstra
Subject: A beginner's question
In-Reply-To: <060613a5-e33c-4777-8f7e-0d7706a99d38@q30g2000prq.googlegroups.com>

minben schreef:
> I am a new R-language user. I have set up a data frame "mydata",one of
> the colume of which is "skill". Now I want to select the observations
> whose "skill" value is equal to 1,by what command can I get it?
>
> ______________________________________________
> R-help at 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.
>   
To add the number of possibilities :):

subset(mydata, skill == 1)

cheers,
Paul

-- 
Drs. Paul Hiemstra
Department of Physical Geography
Faculty of Geosciences
University of Utrecht
Heidelberglaan 2
P.O. Box 80.115
3508 TC Utrecht
Phone:  +3130 274 3113 Mon-Tue
Phone:  +3130 253 5773 Wed-Fri
http://intamap.geo.uu.nl/~paul