[R] Transfer String Array from R to java

From: Vasundhara Akkineni <vasu.akkineni_at_gmail.com>
Date: Fri 02 Dec 2005 - 09:20:38 EST

I have a data frame which has the following data.

data<-read.table("table.txt",header=TRUE) data

X14A_U133A_StatPairs X14A_U133A_Detection X14B_U133A_Signal

1       AFFX-BioB-5_at                403.0             409.3
2       AFFX-BioB-M_at                757.3             574.4
3       AFFX-BioB-3_at                284.4             327.3
4       AFFX-BioC-5_at               2314.2            1685.3
5       AFFX-BioC-3_at               1574.5            1273.0
6      AFFX-BioDn-5_at               2333.7            1796.8
7      AFFX-BioDn-3_at              13673.9           11463.9
8       AFFX-CreX-5_at              17778.8           15248.8
9       AFFX-CreX-3_at              31056.6           24869.9

i want to extract the first column of names as a matrix and pass it to a String[] type in java. I am using RServe and was able to pass the other two columns to double[] in java but was not able to do so for data[,1] to a String[]. I have to do this in order to access induvidual string names.

I tried using RList, but din't work out. Is there no String array available with REXP similar to int array and double array?

How can this be done?


        [[alternative HTML version deleted]]

R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Fri Dec 02 09:25:46 2005

This archive was generated by hypermail 2.1.8 : Fri 03 Mar 2006 - 03:41:25 EST