Displaying 2 results from an estimated 2 matches for "aftnoon".
2008 Jun 06
0
FW: R + Linux
...kages by install.packages() on the prompt. I had to download them in tar.gz and then install.
However, once the priliminaries are out of the way it seems to work just fine. I have rkward because Tinn-R is not available on linux and that works just fine, so far.
H
(Sorry folks.....it's Friday aftnoon....)
-----Original Message-----
From: r-help-bounces at r-project.org [mailto:r-help-bounces at r-project.org] On Behalf Of steven wilson
Sent: Friday, June 06, 2008 11:14 AM
To: r-help at r-project.org
Subject: [R] R + Linux
Dear all;
I'm planning to install Linux on my computer to run R (...
2008 Jun 06
6
Subsetting to unique values
I want to take the first row of each unique ID value from a data frame.
For instance
> ddTable <-
data.frame(Id=c(1,1,2,2),name=c("Paul","Joe","Bob","Larry"))
I want a dataset that is
Id Name
1 Paul
2 Bob
> unique(ddTable)
Will give me all 4 rows, and
> unique(ddTable$Id)
Will give me c(1,2), but not accompanied by the name column.