Displaying 2 results from an estimated 2 matches for "rvuk".
Did you mean:
rsuk
2008 Jun 06
3
Lattice: key does not accept German umlaute
..., key = list(text = list(c("M\344nner"))))
Is this a bug?
TIA,
Bernd
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFISPo6Usbvfbd00+ERArJFAJsEvWq2Cai7chuOADadZHT2pnRJOgCfWLdx
3Hs3PnCzd6nuTqt6JwCl+VM=
=RVUk
-----END PGP SIGNATURE-----
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.