Skip to content
#

R

r logo

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...

dash
tdpetrou
tdpetrou commented Dec 30, 2019

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

bletham
bletham commented Feb 21, 2020

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

dennislamcv1
dennislamcv1 commented Dec 20, 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

Open Source Fast Scalable Machine Learning Platform For Smarter Applications: Deep Learning, Gradient Boosting & XGBoost, Random Forest, Generalized Linear Modeling (Logistic Regression, Elastic Net), K-Means, PCA, Stacked Ensembles, Automatic Machine Learning (AutoML), etc.

  • Updated Apr 13, 2020
  • Jupyter Notebook
bhogan-mitre
bhogan-mitre commented Apr 8, 2020

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
colearendt
colearendt commented Jul 3, 2019

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

casperdcl
casperdcl commented Jul 16, 2019

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'] = 2
papermill ... -p args.a 1.618 -p "args_dict['b']" 3.14159

This would of course be useful for making transition between *.py scripts (using e.g

julianhatwell
julianhatwell commented Mar 8, 2020

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

philip-khor
philip-khor commented Dec 21, 2019

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

jonathan-g
jonathan-g commented Nov 30, 2019

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

jangorecki
jangorecki commented Oct 27, 2019

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

## 
StrikerRUS
StrikerRUS commented Oct 18, 2019

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.

Created by Ross Ihaka, Robert Gentleman

Released August 1993

Website
www.r-project.org
Wikipedia
Wikipedia

Related Topics

language
You can’t perform that action at this time.