I have saved a long vector from sparkR. I want to save it and use this vector in R. The vector is u=c(1,2,3,5,6,9,...) and I want to use this vector as entries in a dataset: data[u,] How can this be done?
Asked
Active
Viewed 58 times
0
-
What are the types of u and dataset? Are they a vector (or an RDD) and a data.frame (or a DataFrame)? – Wannes Rosiers Jul 28 '15 at 09:30
-
The data is from a csv-file. In R it's a dataframe and in sparkR its a DataFrame. 'u' is a vector containing integers. – Ole Petersen Jul 28 '15 at 09:38
1 Answers
0
SparkR has no row.names
, so it's only possible in R, not in SparkR.
Note: The question was answered by @WannesRosiers's comment.

csgillespie
- 59,189
- 14
- 150
- 185