Skip to content
Snippets Groups Projects
Commit d2fde6b7 authored by Junyang Qian's avatar Junyang Qian Committed by Shivaram Venkataraman
Browse files

[SPARKR][MINOR] Fix docs for sparkR.session and count

## What changes were proposed in this pull request?

This PR tries to add some more explanation to `sparkR.session`. It also modifies doc for `count` so when grouped in one doc, the description doesn't confuse users.

## How was this patch tested?

Manual test.

![screen shot 2016-09-02 at 1 21 36 pm](https://cloud.githubusercontent.com/assets/15318264/18217198/409613ac-7110-11e6-8dae-cb0c8df557bf.png)

Author: Junyang Qian <junyangq@databricks.com>

Closes #14942 from junyangq/fixSparkRSessionDoc.
parent e6132a6c
No related branches found
No related tags found
No related merge requests found
......@@ -444,7 +444,8 @@ setMethod("cosh",
#' Returns the number of items in a group
#'
#' Returns the number of items in a group. This is a column aggregate function.
#' This can be used as a column aggregate function with \code{Column} as input,
#' and returns the number of items in a group.
#'
#' @rdname count
#' @name count
......
......@@ -57,7 +57,7 @@ setMethod("show", "GroupedData",
#' Count
#'
#' Count the number of rows for each group.
#' Count the number of rows for each group when we have \code{GroupedData} input.
#' The resulting SparkDataFrame will also contain the grouping columns.
#'
#' @return A SparkDataFrame.
......
......@@ -314,8 +314,10 @@ sparkRHive.init <- function(jsc = NULL) {
#' Get the existing SparkSession or initialize a new SparkSession.
#'
#' Additional Spark properties can be set (...), and these named parameters take priority over
#' over values in master, appName, named lists of sparkConfig.
#' SparkSession is the entry point into SparkR. \code{sparkR.session} gets the existing
#' SparkSession or initializes a new SparkSession.
#' Additional Spark properties can be set in \code{...}, and these named parameters take priority
#' over values in \code{master}, \code{appName}, named lists of \code{sparkConfig}.
#'
#' For details on how to initialize and use SparkR, refer to SparkR programming guide at
#' \url{http://spark.apache.org/docs/latest/sparkr.html#starting-up-sparksession}.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment