r/rstats • • Aug 17 '25

Rgent - AI for Rstudio

Post image
3 Upvotes

I was tired of the lack of AI in Rstudio, so I built it.

Rgent is an AI assistant that runs inside the RStudio viewer panel and actually understands your R session. It can see your code, errors, data, plots, and packages, so it feels much more “aware” than a generic LLM.

Right now it can:

• Help debug errors in one click with targeted suggestions

• Analyze plots in context

• Suggest code based on your actual project environment

I’d love feedback from folks who live in RStudio daily. Would this help in your workflow, need different features, etc? I have a free trial at my website and go in-depth there on the security measures. I’ll put it in the comments :)


r/rstats • • Apr 02 '19

Is R a dead end street?

0 Upvotes

For starters, let me say that I really like R. It's my go-to platform for any data manipulation and scripting. I love R as a language and I love the rich amount of libraries available.

However, I'm starting to feel like R is heading nowhere. First there was python which replicated the data/numerical platform with numpy which sparked growth of python in that area, now there's the whole focus around browsers, javascript and more importantly, webassembly.

It feels like the world is moving and R is not moving with it. Hate it as much as we want, browsers and node are where the focus is right now.

I mean, look at iodide and pyodide. That is some seriously great stuff. R is out of the picture. Worse, there are no community projects to pick up on this and offer similar interface for R.

In the mean time, R is also getting slow relative to other tools. Like, a simple recursive fibonacci is 3x slower in R compared to python, and both suck compared to javascript.

I must say I don't see the future, or even the vision of the future here at the moment. I'm still here because I just don't like python, and JS, my god, is a total mess. But if things stay this way, no matter how much I like R, I will need to jump somewhere else.


r/rstats • • May 21 '18

I thought you might appreciate this happy accident.

Post image
5 Upvotes

r/rstats • • Sep 01 '19

A case against the tidyverse

Thumbnail
github.com
0 Upvotes

r/rstats • • Sep 16 '23

Making money in stock market using R

0 Upvotes

I am studying R for 1 month now(with out any prior coding experience in any language), I have been reading quantitative trading with R by Harry Georgakopoulos (with the help of chat gpt). I just want to some how start trading with some model first( I will be happy even if it makes me a very small profit consistently)and then want to go deep in to other aspects of r and statistics . My ultimate goal is to build a good profitable model for intraday trading or option trading with all available resources using r .

The books I want to next are..

  1. forecasting: Principles and Practice (3rd ed) Rob J Hyndman and George Athanasopoulos

  2. Ren´e Carmona Statistical Analysis of Financial Data in r Can anyone please tell me whether my methodology of study is right or wrong? Do you guys have any alternative suggestions?


r/rstats • • Oct 31 '25

help me guys, can someone explain to me why this is false

Post image
2 Upvotes

r/rstats • • Dec 28 '25

How to use R ver. 4.5.2?

0 Upvotes

Hi, I'm new to statistics (and anything to do with coding really). I'm currently taking AP Research and have chosen to perform a mix of meta-analysis and systematic review (mostly MA). Today I downloaded R to actually get started on plugging in my data table, but I'm not quite sure how to use this new version. I tried looking on Youtube for a tutorial or some type of walkthrough, but most videos are really old, or just not specific to ver. 4.5.2. Beyond that, I'm also unsure of how to actually perform this MA since my topic of inquiry has lots of heterogenity, so I'm trying to find a way to standardize the data.

For context, my research inquiry is: "To what extent can Ganoderma-Ludicum derived bioactive compounds be used to treat lung cancer?" While yes, this question is very broad (it was initially MUCH more specific), the reason I had to make it this way is because there's hardly any experimental research (that's either in English or translated into English) on this fungus. My primary objective is to determine the efficacy of G. Lucidum bioactive compounds on reducing tumor weight/volume, its effect on healthy cells, and its ability to induce apoptosis/promote cytotoxic environments within cancerous cells. Another issue comes up when a few things are addressed:

  • Lung cancer can be broken up into SEVERAL subgroups: Even the two main groups of lung cancer (NSCLC and SCLC, respectively) can be broken down into subgroups. In the case of NSCLC, it can be broken down into  large-cell carcinoma, lung squamous carcinoma, and lung adenocarcinoma. Another histological subclassification classifies NSCLC according to cell types: squamous NSCLC (constituting up to 30% of NSCLC cases), and non-squamous carcinoma NSCLC, which may be further classified into adenocarcinoma (constituting up to around 40% of NSCLCs), big cell carcinoma, among other cell types. Subgroups of SCLC include subgroup A, which is characterized by the expression of neuroendocrine  transcription factors ASCL1, as opposed to Subgroup N, which is characterized by the expression of neuroendocrine transcription factor NeuroD1. Subgroup P is characterized by the expression of a noneuroendocrine transcription factor, POU2F3. Subgroup I is associated with a lack of expression of genes associated with response to immune checkpoint inhibitors, a class of drugs that prevent tumors from inactivating T cells. Another hypothesized subgroup is YAP1, which is associated with upregulation of interferon-γ. With most studies, the specific type of lung cancer being tested was not specified, and there aren't enough relevant sources I could find to perform subgroup analyses.

  • There are several different types of bioactive compounds within Ganoderma Lucidum (GL): This issue isn't as extreme as the above, but it's still really important. The bioactive compounds found in GL can be further subcategorized into polysaccharides, triterpenoids, nucleosides, sterols, alkaloids, amino acids, peptides, and trace elements. Each of these bioactive compounds help to create the anti-cancer properties of GL towards lung cancer, but they each target lung cancer in a different way (e.g., polysaccharides have immunomodulatory effects on the pathways undergone by cancerous cells while triterpenoids induce cytotoxicity and apoptosis in cancerous cells). I don't WANT to conflate them all as one group because that would create inconsistencies in my data and also wouldn't be reflective of the real world, but there genuinely isn't enough research on each type of bioactive compound to perform sub-analyses. (By research, I mean in vitro/in vivo experimental studies.)

  • I don't have enough of each type of study: If I wanted to ensure the robustness of my results further, I would have also performed a sub-analysis on in vivo vs in vitro studies, but since there are hardly enough studies as is, I can't really do that. Which, in turn means that I have to standardize one form of data into the other (I don't know how to do this)

I'm genuinely so confused on how to go about anything, and I also acknowledge that the only I am legitimately cooked is because I did this to myself, but if anyone can point me in the right direction, that would be massively helpful. Normally I would just ask my teachers, but my computer science teacher barely speaks English and only knows java (I think), my math teacher doesn't know enough statistics (he does but he said he's too lazy to review all that and he doesn't want to give me false information), and my biology teacher says this is beyond his scope and he can't help me, and my chemistry teacher is useless and barely graduated college himself. So, please, if anyone can guide me in the right direction, I would really really appreciate it. Thank you!


r/rstats • • May 12 '22

R isn't recognizing my variables help :(

Post image
0 Upvotes

r/rstats • • Nov 14 '22

Please can someone help me - details in comments

Post image
0 Upvotes

r/rstats • • Dec 08 '18

Combining the power of Python with R

Thumbnail
github.com
0 Upvotes

r/rstats • • Oct 31 '25

RgentAI Update

Post image
0 Upvotes

Hey everyone,

After a lot of community feedback (especially from the rstats community!), we’ve made several major updates to Rgent - Your RStudio AI Assistant

What’s new:

  • Agents can now auto-execute code. If the code fails, Rgent automatically captures the error, adds context, and retries.

  • Improved context understanding for even better results.

  • Your access code is now saved, so no need to re-enter it each time.

  • Rgent auto-loads in RStudio on startup.

  • Graphs now appear directly inside the chat!

This project is built by RStudio users, for RStudio users.
If there’s anything you’d like to see implemented, let me know — I’m currently pursuing my PhD in data science, so time is limited, but I’ll guarantee a turnaround within three days :)

If you’ve tried ellmer, gptstudio, or plumber, this will blow your socks off compared to them!


r/rstats • • Sep 18 '25

MCPR: How to talk with your data

Post image
3 Upvotes

A few people asked me how MCPR works and what it looks like to use it, so I made a short demo video. This is what conversational data analysis feels like: I connect Claude to my live R session and just talk to the data. I ask it to load, transform, filter, and plot—and watch my requests become reality. It’s like having a junior analyst embedded directly in your console, turning natural language intent into executed code. Instead of copy-pasting or re-running scripts, I stay focused on the analytical questions while the agent handles the mechanics.

The 3.5-minute video is sped up 10x to show just how much you can get done (I can share the full version if you request).

Please, let me know what do you think. Do you see yourself interacting with data like this? Do you think it will speed you up? I look forward to your thoughts!

If you do data analysis and would like to give it a try, here is the repo: https://github.com/phisanti/MCPR

Since this sub-reddit does not allow the use videos, I have placed the video in the MCP community: https://www.reddit.com/r/mcp/comments/1nk1ggp/mcpr_how_to_talk_with_your_data/

u/AI_Tonic
u/techlatest_net


r/rstats • • Feb 27 '24

Come learn data science with us!

0 Upvotes

*This is a throwaway account, since it would be pretty easy to identify myself. That is why I have no karma.*

I'm an assistant for David Kane, a former preceptor of Mathematics and Statistics at Harvard, and he has been hosting a free 6-week data science bootcamp. The bootcamp is held on Zoom and in the programming language R. Students will learn the fundamentals of R and data analysis and create a final project in the end. In the past three years, hundreds of students have taken his bootcamp. No programming experience is needed. However, RStudio and Zoom are required. Our goal is to have 200 students participate this summer! Previous participants range from high-school students to adults to CS majors in college. This isn't to say that experienced programmers aren't welcome. In fact, the later parts go into the basics of statistical analysis and linear regression. His website is here for more info:

https://bootcamp.davidkane.info/

Our goal is to provide free, quality data science education to people of all backgrounds. As a student of the course myself, I was very impressed with what I learned at the end. If you have any questions or comments, you can contact me, or find more contact information on the website provided above. We are not charging money, asking for a subscription, or seeking donations. Below is an interest form; we are going to add you to our emailing list. Hope to see you this summer!

Edit: I've updated the form a little bit with some additional information, and fixed the formatting on the top!

https://forms.gle/Mq2iTFUzZomCoD387

Lastly, here is a brief overview of his course from his website:

Kane’s (Free) Data Science Course will run for 8 weeks this summer, starting on Monday, May 26, 2024 and ending on Thursday, August 1, 2024 with a two week vacation in the middle. The workload is 10 hours per week: 3 hours in class with former Harvard Preceptor David Kane, lecturing live on Zoom at around 8:00 PM EDT on M/W/Th and 7 hours of work completed by students on their own. By the end of this course, students will be able to do basic data science! There is no charge.


r/rstats • • Jan 27 '26

I’m building an AI tutor trained on 10 years of teaching notes to bridge the gap between Stats theory and R code. Feedback wanted!

Thumbnail billyflamberti.com
0 Upvotes

As a long-time educator, I’ve noticed a consistent "friction point" for students: they understand the statistical logic in a lecture, but it all falls apart when they open a script and try to translate that logic into clean, reproducible R code.

To help bridge this gap, I’ve been building R-Stats Professor. It’s a specialized tool designed to act as a 24/7 tutor, specifically tuned to prioritize:

  • Simultaneous Learning: It explains the "why" (theory/manual calc) and the "how" (R syntax) at the same time.

  • Code Quality: Unlike general LLMs that sometimes hallucinate defunct packages, I’ve grounded this in a decade of my own curriculum and slides to focus on clean, modern R.

I’m a solo dev and I want to make sure this actually serves the R community. I’d love your take on:

  1. Style Preferences: Should a tutor prioritize Base R for foundational understanding, or go straight to Tidyverse for readability?

  2. Guardrails: What’s the biggest "bad habit" you see AI-generated R code encouraging that I should tune out?

You can check out the project and the waitlist here:https://www.billyflamberti.com/ai-tools/r-stats-professor/

Would love to hear your thoughts!


r/rstats • • Nov 13 '21

I’m trying to make a chart like shown in R but using ggplot bar chart shows the count of each number. How can I make it show the actual value for each row?

Post image
0 Upvotes

r/rstats • • Jan 21 '24

Amount of Time for data analysis normal or high in R?

0 Upvotes

I actually analyze a dataset of an online survey in R Studio. However, it takes much more time than I thought. Wrangling all the data, making nice looking plots, thinking of how to best visualize things, looking up all configurations of plot types, structuring the rmd file etc.

So I have spent already entire days on it. However, other people do not understand why it takes so long - just to analyze some data and plot it.

Is this common for data analysis with R (Studio)?

MS Excel which is known by most people is likely faster to get a first impression on the data and make some first plots - I understand this. However, it has the drawback of reproducibility and limited plot functionality.

My R knowledge and skills are medium. Of course I would speed up with more experience.


r/rstats • • Mar 28 '14

What's a pirates favourite statistics package?

0 Upvotes

r/rstats • • Mar 04 '14

[tinfoil] Through R, I think I might have found the truth behind the name of the band Maroon 5

0 Upvotes

Okay guys hear me out okay?

R can recognise colours like "blue", "red".... and "maroon"

it can also recognise colours like "maroon1", "maroon2", "maroon3", "maroon4"...............

but not "maroon5"

So what if

what if

Adam Levine and the gang... are huge R statistical program nerds

and they picked the name Maroon 5... because it's unrecognisable in R

and the meaning behind that name is that their band is so unique, soooooo unique, that even R can't recognise them.

BUT THE CONSPIRACY GOES EVEN DEEPER

Apparently, from here Billy Joel is connected to the creation of the name Maroon 5 in some way

So Billy Joel = R nerd too


r/rstats • • Dec 23 '23

Any tips for data replication in R?

0 Upvotes

I don’t know what it is but for the life of me I still can’t replicate a data set without using ChatGPT and constantly referencing my notes. Are there any tips for grasping R and data replication (bonus points for resources that help me understand what causal interference!)?


r/rstats • • May 22 '23

Arrange Issue

Post image
0 Upvotes

r/rstats • • Jan 15 '16

What does "#===>" mean?

0 Upvotes

In this post, the author shows some R code, and I noticed he uses the following code:

b1 # ===> Result

I've never seen that syntax before. Is there a definition for it?


r/rstats • • Mar 07 '16

ggplot2 is from an alien planet, dplyr is paleo

Thumbnail
thraxys.wordpress.com
0 Upvotes

r/rstats • • Oct 04 '22

How difficult will it be to learn R for Data Science and Machine Learning if I already have experience with Python for Data Science and Machine Learning?

1 Upvotes

r/rstats • • Mar 27 '26

Couldnt find a base R skill for Claude Code so I made one

Thumbnail
reddit.com
1 Upvotes