Skip to content

Commit 8a2aff3

Browse files
author
Narine Kokhlikyan
committed
addressed Felix's comments
1 parent 2af7243 commit 8a2aff3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/sparkr.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,7 @@ In SparkR, we support several kinds of User-Defined Functions:
263263
##### dapply
264264
Apply a function to each partition of a `SparkDataFrame`. The function to be applied to each partition of the `SparkDataFrame`
265265
and should have only one parameter, to which a `data.frame` corresponds to each partition will be passed. The output of function
266-
should be a `data.frame`. Schema specifies the row format of the resulting a `SparkDataFrame`. It must match to [data types of R function's output fields](#data-type-mapping-between-r-and-spark).
266+
should be a `data.frame`. Schema specifies the row format of the resulting a `SparkDataFrame`. It must match to [data types](#data-type-mapping-between-r-and-spark) of returned `data.frame`.
267267
<div data-lang="r" markdown="1">
268268
{% highlight r %}
269269

@@ -311,7 +311,7 @@ head(ldf, 3)
311311
Apply a function to each group of a `SparkDataFrame`. The function is to be applied to each group of the `SparkDataFrame` and should have only two parameters: grouping key and R `data.frame` corresponding to
312312
that key. The groups are chosen from `SparkDataFrame`s column(s).
313313
The output of function should be a `data.frame`. Schema specifies the row format of the resulting
314-
`SparkDataFrame`. It must represent R function's output schema on the basis of Spark data types. The column names of each output field in the schema are set by user. Bellow data type mapping between R
314+
`SparkDataFrame`. It must represent R function's output schema on the basis of Spark data types. The column names of the returned `data.frame` are set by user. Below data type mapping between R
315315
and Spark.
316316

317317
#### Data type mapping between R and Spark

0 commit comments

Comments
 (0)