Skip to content

Commit 3760d03

Browse files
committed
more bug fix
1 parent 10a4dba commit 3760d03

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

R/pkg/R/stats.R

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,7 @@ setMethod("corr",
103103
callJMethod(statFunctions, "corr", col1, col2, method)
104104
})
105105

106+
#' @description
106107
#' freqItems - Finding frequent items for columns, possibly with false positives.
107108
#' Using the frequent element count algorithm described in
108109
#' \url{http://dx.doi.org/10.1145/762471.762473}, proposed by Karp, Schenker, and Papadimitriou.
@@ -129,8 +130,8 @@ setMethod("freqItems", signature(x = "SparkDataFrame", cols = "character"),
129130
collect(dataFrame(sct))
130131
})
131132

133+
#' @description
132134
#' approxQuantile - Calculates the approximate quantiles of a numerical column of a SparkDataFrame.
133-
#'
134135
#' The result of this algorithm has the following deterministic bound:
135136
#' If the SparkDataFrame has N elements and if we request the quantile at probability `p` up to
136137
#' error `err`, then the algorithm will return a sample `x` from the SparkDataFrame so that the
@@ -167,6 +168,7 @@ setMethod("approxQuantile",
167168
as.list(probabilities), relativeError)
168169
})
169170

171+
#' @description
170172
#' sampleBy - Returns a stratified sample without replacement based on the fraction given on each
171173
#' stratum.
172174
#'

0 commit comments

Comments
 (0)