Displaying 2 results from an estimated 2 matches for "dumblaus".
Did you mean:
domblans
2008 Jun 05
5
Java to R interface
I am developing an application that uses Eclipse framework on Windows.
I have to call R from Java. I downloaded rJava package and installed
it. I set the classpath in the Run Dialog in Eclipse to the directory
where the JRI.jar is. I set the Path environmental variable to the
directory where R.dll and jri.dll are. Yet when I run the rtest
example (in jri/examples directory), I get the
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.