Skip to content

Commit

Permalink
Fix some roxygen bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
shivaram committed May 8, 2015
1 parent 1254953 commit 5e0716a
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 18 deletions.
14 changes: 7 additions & 7 deletions R/pkg/R/DataFrame.R
Original file line number Diff line number Diff line change
Expand Up @@ -480,7 +480,7 @@ setMethod("distinct",
#' @param withReplacement Sampling with replacement or not
#' @param fraction The (rough) sample target fraction
#' @rdname sampleDF
#' @alias sample_frac
#' @aliases sample_frac
#' @export
#' @examples
#'\dontrun{
Expand All @@ -503,7 +503,7 @@ setMethod("sampleDF",
})

#' @rdname sampleDF
#' @alias sampleDF
#' @aliases sampleDF
setMethod("sample_frac",
signature(x = "DataFrame", withReplacement = "logical",
fraction = "numeric"),
Expand Down Expand Up @@ -692,7 +692,7 @@ setMethod("toRDD",
#' @param x a DataFrame
#' @return a GroupedData
#' @seealso GroupedData
#' @alias group_by
#' @aliases group_by
#' @rdname groupBy
#' @export
#' @examples
Expand Down Expand Up @@ -730,7 +730,7 @@ setMethod("group_by",
#'
#' @param x a DataFrame
#' @rdname DataFrame
#' @alias summarize
#' @aliases summarize
#' @export
setMethod("agg",
signature(x = "DataFrame"),
Expand All @@ -739,7 +739,7 @@ setMethod("agg",
})

#' @rdname DataFrame
#' @alias agg
#' @aliases agg
setMethod("summarize",
signature(x = "DataFrame"),
function(x, ...) {
Expand Down Expand Up @@ -982,7 +982,7 @@ setMethod("withColumn",
#' @param col a named argument of the form name = col
#' @return A new DataFrame with the new columns added.
#' @rdname withColumn
#' @alias withColumn
#' @aliases withColumn
#' @export
#' @examples
#'\dontrun{
Expand Down Expand Up @@ -1049,7 +1049,7 @@ setMethod("withColumnRenamed",
#' @param newCol A named pair of the form new_column_name = existing_column
#' @return A DataFrame with the column name changed.
#' @rdname withColumnRenamed
#' @alias withColumnRenamed
#' @aliases withColumnRenamed
#' @export
#' @examples
#'\dontrun{
Expand Down
16 changes: 8 additions & 8 deletions R/pkg/R/column.R
Original file line number Diff line number Diff line change
Expand Up @@ -130,9 +130,9 @@ createMethods()

#' alias
#'
#' @rdname column
#'
#' Set a new name for a column

#' @rdname column
setMethod("alias",
signature(object = "Column"),
function(object, data) {
Expand All @@ -143,6 +143,8 @@ setMethod("alias",
}
})

#' substr
#'
#' An expression that returns a substring.
#'
#' @rdname column
Expand Down Expand Up @@ -181,8 +183,7 @@ setMethod("cast",
#' Approx Count Distinct
#'
#' @rdname column
#'
#' Returns the approximate number of distinct items in a group.
#' @return the approximate number of distinct items in a group.
setMethod("approxCountDistinct",
signature(x = "Column"),
function(x, rsd = 0.95) {
Expand All @@ -193,8 +194,7 @@ setMethod("approxCountDistinct",
#' Count Distinct
#'
#' @rdname column
#'
#' returns the number of distinct items in a group.
#' @return the number of distinct items in a group.
setMethod("countDistinct",
signature(x = "Column"),
function(x, ...) {
Expand All @@ -207,15 +207,15 @@ setMethod("countDistinct",
})

#' @rdname column
#' @alias countDistinct
#' @aliases countDistinct
setMethod("n_distinct",
signature(x = "Column"),
function(x, ...) {
countDistinct(x, ...)
})

#' @rdname column
#' @alias count
#' @aliases count
setMethod("n",
signature(x = "Column"),
function(x) {
Expand Down
4 changes: 2 additions & 2 deletions R/pkg/R/generics.R
Original file line number Diff line number Diff line change
Expand Up @@ -436,7 +436,7 @@ setGeneric("isLocal", function(x) { standardGeneric("isLocal") })
#' @export
setGeneric("limit", function(x, num) {standardGeneric("limit") })

#' @rdname mutate
#' @rdname withColumn
#' @export
setGeneric("mutate", function(x, ...) {standardGeneric("mutate") })

Expand Down Expand Up @@ -500,7 +500,7 @@ setGeneric("selectExpr", function(x, expr, ...) { standardGeneric("selectExpr")
#' @export
setGeneric("showDF", function(x,...) { standardGeneric("showDF") })

#' @rdname summarize
#' @rdname agg
#' @export
setGeneric("summarize", function(x,...) { standardGeneric("summarize") })

Expand Down
2 changes: 1 addition & 1 deletion R/pkg/R/group.R
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ setMethod("agg",
})

#' @rdname agg
#' @alias agg
#' @aliases agg
setMethod("summarize",
signature(x = "GroupedData"),
function(x, ...) {
Expand Down

0 comments on commit 5e0716a

Please sign in to comment.