Skip to content

Commit 9767e8e

Browse files
committed
modified: pkg/man/collect-methods.Rd
1 parent 5d69f0a commit 9767e8e

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

pkg/man/collect-methods.Rd

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -31,13 +31,9 @@ collectAsMap(rdd)
3131
\item{flatten}{FALSE if the list should not flattened}
3232

3333
\item{partitionId}{the partition to collect (starts from 0)}
34-
35-
\item{rdd}{The RDD to collect as a map}
3634
}
3735
\value{
3836
a list containing elements in the RDD
39-
40-
a named list containing elements in the RDD
4137
}
4238
\description{
4339
\code{collect} returns a list that contains all of the elements in this RDD.
@@ -46,7 +42,7 @@ a named list containing elements in the RDD
4642
in the specified partition of the RDD.
4743

4844
\code{collectAsMap} returns a named list as a map that contains all of the elements
49-
in this key-value pair RDD.
45+
in a key-value pair RDD.
5046
}
5147
\examples{
5248
\dontrun{
@@ -57,7 +53,7 @@ collectPartition(rdd, 0L) # list from 1 to 5
5753
}
5854
\dontrun{
5955
sc <- sparkR.init()
60-
rdd <- parallelize(sc, list(list(1, 2),list(3, 4)), 2L)
56+
rdd <- parallelize(sc, list(list(1, 2), list(3, 4)), 2L)
6157
collectAsMap(rdd) # list(`1` = 2, `3` = 4)
6258
}
6359
}

0 commit comments

Comments
 (0)