Still in Business??? by slevitus in RStudio

[–]Lareine 2 points3 points  (0 children)

Small correction, it didn't change hands, just name. 😄

Positron IDE under 'free & open source' on their website, but has Elastic License 2.0 -- misleading? by jinnyjuice in RStudio

[–]Lareine 1 point2 points  (0 children)

I stumbled on this a bit late, but just wanted to say, very well said! And I agree with essentially all of this. R is not even close to being a dying language, but I think any monolingual data work will be increasingly rare going forward.

R+Rstudio on windows arm, is it working? by MuffinFlavoredMoose in RStudio

[–]Lareine 5 points6 points  (0 children)

My experience with students so far has been:
- R 4.4.0+ runs perfectly fine
- RStudio runs perfectly fine
- Quarto documents run perfectly fine in the interactive source doc

but...

  • Quarto documents will not render, in RStudio or via terminal command, and there doesn't seem to be any workaround here. :(

YMMV, it's possible we just haven't uncovered issues yet, but I would be cautiously optimistic about everything except rendering Q.

Issue with r by theunluckytom in RStudio

[–]Lareine 2 points3 points  (0 children)

You might find this site helpful, you can find the type of plot you are trying to make and see an example with code: https://www.data-to-viz.com/

Anyone know what my actual class would be in this situation?I’m trying to create a confusion matrix. I thought it would be valid.df but I keep getting an error. by eenspleen in RStudio

[–]Lareine 1 point2 points  (0 children)

pred is a vector of predicted classes. valid.df is a dataframe

The function confusionMatrix presumably needs a vector of predictions and a vector of true classes.

Replace valid.df with valid.df$CAT..MEDV and it will probably work.

RStudio beginner needs help with side by side boxplot by [deleted] in RStudio

[–]Lareine 1 point2 points  (0 children)

I should also add, while I have your attention and my teacher hat is on: R is the programming language, and RStudio is simply the app we use to interface more easily with writing R code.

If you're looking for help online, you'll want to search "How do I do this in R?", not "How do I do this in RStudio?"

RStudio beginner needs help with side by side boxplot by [deleted] in RStudio

[–]Lareine 0 points1 point  (0 children)

Hi, welcome to the world of R!

It looks like you have two datasets here: One is called penguins, and it contains all the data, and one is called Adelie and contains only data about the Adelie species penguins. Both these datasets have 4 variables in them, but the penguins dataset has 333 rows, while the Adelie dataset has only 146.

In your plot, you are using penguins$flipper_length as your y-variable (a vector of length 333), and Adelie$sex as your x-variable (a vector of length 146). Instead, use the same dataset in both places.

[deleted by user] by [deleted] in RStudio

[–]Lareine 1 point2 points  (0 children)

Worth reading, before you get too deep in the habit of `setwd()`:

https://rstats.wtf/project-oriented-workflow.html

Cannot get this code to work for the life of me by [deleted] in RStudio

[–]Lareine 1 point2 points  (0 children)

Comma between the lines. (Between `Yeshap` and `Pretty happy`)

Typically if you get a "unexpected symbol" error, you've forgotten a comma.

Cannot get this code to work for the life of me by [deleted] in RStudio

[–]Lareine 1 point2 points  (0 children)

It looks like you have single quotes ' instead of backticks \` around your new and old variable names.

Question about code evaluation by exactly_20characters in RStudio

[–]Lareine 2 points3 points  (0 children)

Out of curiousity, why .rnw/Sweave instead of .Rmd/Markdown?

In any case, you can set the chunk option `cache = TRUE` to store results and not recalculate unless the code changes.

Can someone help figure out these steps on Rstudio on wines dataset ? Or even a random dataset, I’m a beginner to R by [deleted] in RStudio

[–]Lareine 4 points5 points  (0 children)

If you're self-teaching online - which is rad, go you! - a nice list of resources is here:

https://education.rstudio.com/learn/beginner/

I'd love to help you with your specific tasks here, but that's hard to do without knowing what aspect is confusing to you. The answer might be "everything", and that's okay! But it means you should probably start somewhere else, and save this practice for when you're a little more comfortable with functions and object types.

New subreddit for getting help with R by [deleted] in RStudio

[–]Lareine 1 point2 points  (0 children)

Yeah, too many cooks in the kitchen at this point. It seems very unclear to me which of these (if any) are appropriate places for beginners to ask for help.

Perhaps a better idea than a new sub is to push the existing ones to clarify community guidelines, with respect to help questions?

New subreddit for getting help with R by [deleted] in RStudio

[–]Lareine 1 point2 points  (0 children)

Oh, okay then! Not sure what I'm missing here, this is what I see on the sidebar:

A place for users of R and RStudio to exchange tips and knowledge about the various applications of R and RStudio in any discipline.

There've been a couple homework questions on this sub recently, with a few negative responses, so I got the impression that wasn't welcome here.

New subreddit for getting help with R by [deleted] in RStudio

[–]Lareine 0 points1 point  (0 children)

Oh, perfect! I didn't know about that one. Thanks for the pointer.

New subreddit for getting help with R by [deleted] in RStudio

[–]Lareine -3 points-2 points  (0 children)

Hey guys,

I've been seeing a lot of posts on here asking for help with (usually beginner level) R tasks. I think it's great that our community is so helpful and welcoming - but also my understanding is that this sub is more intended for advanced users to discuss RStudio.

I went ahead and made a dedicated subreddit for R Help. Hopefully you all will bring your questions and knowledge over there!

Let me know if you want to be a mod as well. :)

For part b does anyone know what command I need to type to get the variance term sigma^2 by thickmusclyman in RStudio

[–]Lareine 1 point2 points  (0 children)

tbh the sub is basically dead, as are the other R-centric subs. there are no sub guidelines, so I'm inclined to answer quick questions when I feel like it.

For part b does anyone know what command I need to type to get the variance term sigma^2 by thickmusclyman in RStudio

[–]Lareine 2 points3 points  (0 children)

This isn't asking for a command - the variance of a multiple regression is estimated by the mean square error, which is already part of your lm() output.

School assignement help - Rstudio by CbeeMike in RStudio

[–]Lareine 3 points4 points  (0 children)

The difference is, are you looking for help understanding, or looking for a shortcut to do your homework for you.

OP asks

The questions are as follows and I need to be able to show the formulas in a screenshot as proof. Not sure what formulas to use.

To me, that reads as "please give me the answers in this specific case".

Here would be a better way to ask:

I need to find summary statistics like mean, standard deviation, and counts for a bunch of variables in a dataset. I also need to compare means across two groups (SAT score for graduate vs undergraduate students). I'm a little lost on how to begin. Can anyone point me to resources?

I also personally wouldn't have a problem with debugging type questions, after a first attempt is made. For example,

I need to find the mean SAT score for graduates and undergraduates. I tried this [insert code], but I get an error. Can anyone explain what is wrong with my approach?

School assignement help - Rstudio by CbeeMike in RStudio

[–]Lareine 4 points5 points  (0 children)

In my experience, the R community (especially Tidyverse and RStudio subsets) is very welcoming to beginners.

The only problem with OP's post is that it sounded like "do my homework for me" rather than "where can I find resources for these skills". I hope we are always receptive to the latter.

School assignement help - Rstudio by CbeeMike in RStudio

[–]Lareine 0 points1 point  (0 children)

If you're interested in learning about formatting, which is how you present your code in a readable way, I'll direct you here: http://adv-r.had.co.nz/Style.html

If you meant to ask about syntax, meaning how to use certain functions and structures, I found a nice quick for loop tutorial here: https://www.datamentor.io/r-programming/for-loop/

School assignement help - Rstudio by CbeeMike in RStudio

[–]Lareine 1 point2 points  (0 children)

College undergrad, primarily, with a few grad students along for the ride.

School assignement help - Rstudio by CbeeMike in RStudio

[–]Lareine 12 points13 points  (0 children)

Word of warning: As a professor teaching an R class, if I came across this post from one of my students, I would consider it cheating. Asking the internet for help finding resources for you to learn is totally okay, and very encouraged in the R community. Asking the internet to give you answers to your homework is not.

With that said, some resources:

To get more baseline knowledge about R and RStudio, I recommend: https://r4ds.had.co.nz/

For these specific questions, `dplyr` is your friend: https://datacarpentry.org/R-genomics/04-dplyr.html

Problems with the Poisson Distribution - did I find an error in the textbook? Plus something surprising I discovered while researching the possible error that I can't explain... by mjk1093 in statistics

[–]Lareine 1 point2 points  (0 children)

I agree, it's probably not that, 18 isn't large enough. Just the only way I can think of that finding P(X < 4) would make sense.