diff options
Diffstat (limited to 'docs/sparkr.md')
-rw-r--r-- | docs/sparkr.md | 37 |
1 files changed, 36 insertions, 1 deletions
diff --git a/docs/sparkr.md b/docs/sparkr.md index a744b76be7..cfb9b41350 100644 --- a/docs/sparkr.md +++ b/docs/sparkr.md @@ -286,7 +286,7 @@ head(teenagers) # Machine Learning -SparkR allows the fitting of generalized linear models over DataFrames using the [glm()](api/R/glm.html) function. Under the hood, SparkR uses MLlib to train a model of the specified family. Currently the gaussian and binomial families are supported. We support a subset of the available R formula operators for model fitting, including '~', '.', ':', '+', and '-'. +SparkR allows the fitting of generalized linear models over DataFrames using the [glm()](api/R/glm.html) function. Under the hood, SparkR uses MLlib to train a model of the specified family. Currently the gaussian and binomial families are supported. We support a subset of the available R formula operators for model fitting, including '~', '.', ':', '+', and '-'. The [summary()](api/R/summary.html) function gives the summary of a model produced by [glm()](api/R/glm.html). @@ -351,3 +351,38 @@ summary(model) ##Sepal_Width 0.404655 {% endhighlight %} </div> + +# R Function Name Conflicts + +When loading and attaching a new package in R, it is possible to have a name [conflict](https://stat.ethz.ch/R-manual/R-devel/library/base/html/library.html), where a +function is masking another function. + +The following functions are masked by the SparkR package: + +<table class="table"> + <tr><th>Masked function</th><th>How to Access</th></tr> + <tr> + <td><code>cov</code> in <code>package:stats</code></td> + <td><code><pre>stats::cov(x, y = NULL, use = "everything", + method = c("pearson", "kendall", "spearman"))</pre></code></td> + </tr> + <tr> + <td><code>filter</code> in <code>package:stats</code></td> + <td><code><pre>stats::filter(x, filter, method = c("convolution", "recursive"), + sides = 2, circular = FALSE, init)</pre></code></td> + </tr> + <tr> + <td><code>sample</code> in <code>package:base</code></td> + <td><code>base::sample(x, size, replace = FALSE, prob = NULL)</code></td> + </tr> + <tr> + <td><code>table</code> in <code>package:base</code></td> + <td><code><pre>base::table(..., + exclude = if (useNA == "no") c(NA, NaN), + useNA = c("no", "ifany", "always"), + dnn = list.names(...), deparse.level = 1)</pre></code></td> + </tr> +</table> + +You can inspect the search path in R with [`search()`](https://stat.ethz.ch/R-manual/R-devel/library/base/html/search.html) + |