Skip Navigation

R Programming

Members
0
Posts
43
Created
3 yr. ago

Please use this as a forum to discuss R, and learn more about it. If you have any questions about how to do specific things in R, this is the place to ask.

Getting Started

You can download R here.

You can download RStudio here. RStudio IDE, which is supported by Posit PBC, is a powerful and well-developed IDE for R. Other development environment options include Emacs addon Emacs Speak Statistics and VSCode.

Other Communities

Other communities that may be of interest across the fediverse:

Please send @a_statistician a message to recommend additional communities to add to this list.

Learning resources:

  • [R for Data Scienc…

🌉 bridged from !r_programming@programming.dev by Tidepoo

Conda is moving to Mastodon & LinkedIn | conda.org/blog

cross-posted from: https://discuss.online/post/4110869

Conda (@conda@fosstodon.org) writes:

Conda is moving our social media presence from Twitter/X to Mastodon and LinkedIn at the start of 2024. It's past time to move into spaces that are welcoming and more in line with our community values. Going forward, you can find us at 🐘 @conda@fosstodon.org (https://fosstodon.org/@conda) 🔗 Conda Community on LinkedIn

Read Conda is moving to Mastodon & LinkedIn | conda.org/blog

Conda (Software)

Conda provides package, dependency, and environment management for any language. Using conda provides a streamlined approach to package management, platform compatibility, environment isolation, and access to an extensive package ecosystem. It is particularly beneficial for data scientists, researchers, and developers working with diverse software requirements across different projects.

Conda Community

The "conda" community is made up of millions of users, packaging maintainers and tool developers. Conda is not a single organization but rather a concerted effort of many different organizations, all devoted to the mission of providing easy access to various types of free software regardless of the operating system or programming language. We firmly believe that everyone belongs in open-source, and we want to start by thanking you for taking the time to read this page. What follows is a high level summary of all the projects and organizations which make up the conda community with links provided where you can learn more or get involved yourself. The many meanings of "conda" Traditionally associated with the Anaconda distribution, nowadays the term "conda" refers to more than just a package manager or a software repository. Its many definitions also encompass community packaging efforts like conda-forge and bioconda, as well as new tools developed in the Mamba and conda-incubator organizations. All these efforts show that the conda ecosystem is no longer defined by a single actor and continues to grow and thrive. Organizations on GitHub include: • @conda, plus Anaconda, Inc. efforts like @AnacondaRecipes, @anaconda-distribution, @ContinuumIO • @conda-forge, @regro • @conda-incubator & @conda-tools • @mamba-org • @bioconda Some tools you might be familiar with are conda or conda-build themselves but also community efforts like mamba, boa, setup-miniconda, conda-lock or conda-tree, among many more. Read more about the conda community.

conda.org

An Introduction to Statistical Learning (with Applications in R or Python)

cross-posted from: https://programming.dev/post/6942085

Book (Free)

The resource on statistical methods recommended to me the most has been An Introduction to Statistical Learning (with Applications in R or Python) by Gareth James, Daniela Witten, Trevor Hastie, Rob Tibshirani, and Jonathan Taylor. Its free to download and has been kept up to date. (The latest edition is from 2022.)

Online Course (Free with optional payment for "Verified Track")

For those that prefer a structured online course StanfordOnline: Statistical Learning with R by Trevor Hastie and Robert Tibshirani uses An Introduction to Statistical Learning (with Applications in R) as the course textbook.

More In-Depth Book

Individuals with advanced training in the mathematical sciences may wish to use The Elements of Statistical Learning (Data Mining, Inference, and Prediction) by Trevor Hastie, Robert Tibshirani, and Jerome Friedman which provides a more comprehensive and detailed treatment of a wider range topics in statistical learning.

www.statlearning.com

Does subsetting (matrices or arrays) always perform a partial copy?

Some large datasets are pushing memory and some functions I'm writing to the limit. I wanted to ask some questions about subsetting, of matrices and arrays in particular: 1. Does defining a variable as a subset of another lead to copy? For instance

 
x <- matrix(rnorm(20*30), nrow=20, ncol=30)
y <- x[, 1:10]

Some exploration with object_size from pryr seems to indicate that a copy is made when y is created, but I'd like to be sure. 2. If I enter a subset of a matrix/array as argument to a function, does it get copied before the function is started? For instance in

 
x <- matrix(rnorm(20*30), nrow=20, ncol=30)
y <- dnorm(0, mean=x[,1:10], sd=1)

I wonder if the data in x[,1:10] are copied and then given as input to dnorm. I've heard that data.table allows one to work with subsets without copies being made (unless necessary), but it seems that one is constrained to two dimensions only – no arrays – that way. Cheers!

Introduce yourself!

In the interests of making this community home for those of us who are reddit refugees, let's go ahead and introduce ourselves.

Some suggested things to comment on/include in your introduction:

• Tidyverse, base, or data.table? • Are you primarily a user, a developer, or in between? • How long have you been using R? • What other languages do you use? • What do you use R for? Statistics? generative art? data wrangling? • Are you using R primarily for work, fun, hobbies, or something else? • Are you a hex sticker collector? Why or why not? • Where are you on the data engineering <----> pure statistics continuum? • What's your favorite obscure package?