R
R is a free programming language and software environment for statistical computing and graphics. R has a wide variety of statistical linear and non-linear modeling and provides numerous graphical techniques.
Here are 17,398 public repositories matching this topic...
I write tutorials and do lots of live teaching and gravitate mostly to using Jupyter Notebooks, which allow for text and code to be integrated together in one. Using dash on a local instance of Jupyter is essentially no different than using it from a normal .py file.
But, when teaching to people that have no local jupyter instance or don't even have python installed, I've turned to [Binder](myb
See microsoft/LightGBM#2985 (comment).
The R package has been just barely under this timing I guess:
* checking examples ... NOTE
Examples with CPU or elapsed time > 5s
user system elapsed
dim 5.426 0.264 5.79
We hopefully can get back under it by making some of the examples less costly to run or using \dontrun guards. I would
Currently cutoff dates for cross validation are computed based on the period, initial, and horizon parameters here:
https://github.com/facebook/prophet/blob/master/python/fbprophet/diagnostics.py#L19
https://github.com/facebook/prophet/blob/master/R/R/diagnostics.R#L20
These parameters have to be valid Timedeltas (Py) or difftimes (R), which means they can't be things like "1 month" who
Small omission in the guide: it is implied in step 9 that a {} literal should be parsed as a hash-map in the reader, but this is never explicitly stated earlier on. The sentence in question is: "This is basically the functional form of the {} reader literal syntax".
-
Updated
Oct 31, 2019
Problem: Request for a Catboost Tutorial for Regression problems
catboost version: Any version
Operating System: WIndows
CPU: i7
GPU: None
Hi Yandex, I am currently learning how to use Catboost for ML projects. Would love to have a tutorial on Regression problems using real data set consists of mixture of categorical and numerical features.
Please do not use those generic datasets like
-
Updated
Apr 13, 2020 - Jupyter Notebook
Color is listed as a parameter in the documentation for geom_tile/geom_rect/geom_raster, but is ignored for geom_raster. Based on the documentation and the behavior of other geoms, I would expect that color would be applied for geom_raster.
library(ggplot2)
df <- expand.grid(x = 0:5, y = 0:5)
df$z <- runif(nrow(df))
ggplot(df, aes(x, y, fill = z)) + geom_raster(color = "blac-
Updated
Apr 11, 2020 - R
It seems that Shiny chooses random ports from 3000-8000 for connections. Some possible improvements that would be desirable:
- document that this is the random port range
- allow specifying a different random port range
- some mechanism for determining if the port is available before it is selected?
- a way to exclude ports from the range
The context here is RStudio Server and users who w
parameters object
perhaps it would be nice to provide an example where injected parameters are inside a dictionary or object:
# parameters
import argparse
args = argparse.Namespace()
args_dict = {}
args.a = 1
args_dict['b'] = 2papermill ... -p args.a 1.618 -p "args_dict['b']" 3.14159This would of course be useful for making transition between *.py scripts (using e.g
The opening code example is given as:
$ echo 'foo\nbar\nfoo' | sort | uniq -c | sort -nr
2 foo
1 bar
$ echo 'foo\nbar\nfoo' | sort | uniq -c | sort -nr |
but should be:
$ echo -e 'foo\nbar\nfoo' | sort | uniq -c | sort -nr
2 foo
1 bar
$ echo -e 'foo\nbar\nfoo' | sort | uniq -c | sort -nr |
-e switch is required for interpolating escaped \n. Without it, the example
In Section 3.5
The first argument of facet_wrap() should be a formula, which you create with ~ followed by a variable name (here “formula” is the name of a data structure in R, not a synonym for “equation”). The variable that you pass to facet_wrap() should be discrete.
However, the ggplot2 documentation for facet_wrap() states that the formula interface is there for compatibility in fa
In a package project, if I create a vignette with
usethis::use_vignette("foo")
and then manually edit the YAML header of vignettes/foo.Rmd to have
output:
rmarkdown::html_vignette:
keep_md: true
and then run
devtools::build_vignettes(keep_md = TRUE)
I get foo.Rmd, foo.R, and foo.html files in doc/, but no foo.md.
This may be the desire
-
Updated
Aug 19, 2019 - R
-
Updated
Mar 31, 2020
I haven't seen use of nested tabsets functionality anywhere in the wild or in the documentation. I was not expecting it to work, but I checked and it does work.
It does handle even 3rd level of nested tabs, also nicely handling {.active} flag.
I would like to kindly ask for further support of that undocumented feature, eventually documenting it. Below example Rmd file.
tabset test
##
Just a quick note that the link to the new style guide (on this page: http://adv-r.had.co.nz/Style.html) is incorrect - it links to the advanced R index (https://adv-r.hadley.nz/index.html) rather than to the new style guide (https://style.tidyverse.org/).
Thank you for your patience - I'm a little rusty with my Githubbing or I'd submit a push request.
Many times when I search for some R plotly documentation, I come across a page with a broken shiny app, which essentially renders that page useless. I usually ignored it, but I realize now that it would have been much more productive to make note and report it! So I'll start now :)
The app here doesn't exist: https://plot.ly/r/shinyapp-linked-click/
- It would be nice to have a list of current contributors and update this list as more people add resources to this repo.
I'm sorry if I missed this functionality, but CLI version hasn't it for sure (I saw the related code only in generate_code_examples.py). I guess it will be very useful to eliminate copy-paste phase, especially for large models.
Of course, piping is a solution, but not for development in Jupyter Notebook, for example.
-
Updated
Apr 18, 2018 - R
-
Updated
Apr 13, 2020 - R
Breaking changes to the API are not reflected in the examples or documentation This puts a dead stop on any newbie like me trying to use the package.
Created by Ross Ihaka, Robert Gentleman
Released August 1993
- Website
- www.r-project.org
- Wikipedia
- Wikipedia
Does Truffle support making a programming language in a new character set?
This is with reference to this question. My understanding is tha