In my latest blog post, I cover how to find specific strings in data columns using the str_detect function from the stringr package and base R functions. You'll see practical examples with both grepl for identifying matches and gregexpr for counting occurrences.
is remotes::install_github() currently not working? #RStats
Getting HTTP error 401. Bad credentials. Sys.getenv("GITHUB_PAT”) is empty and anyway, I’m just trying to install from a public repo.
Using R 4.4.0 & remotes_2.5.0 on macOS
I was interested by the crackdown described here and decided to see what would happen if I deleted a few old questions. We’re talking four questions, 10+ years old, of questionable current relevance. Some I could not delete and so I recommended them for closing on the basis of their age. Sure enough, I got a 24-hour ban with a nasty message from the site, and got the dunce cap “Disciplined” added to my profile.
I was never a power user on #stackoverflow in the first place, and nobody was looking to me for advice, but this was enough to prompt me to delete my account. I’m not interested in having my name associated with this kind of organization. Frankly, I’m also not a strong enough #rstats programmer to take the risk of getting coding advice from AI: if it’s badly wrong, which tends to happen at least in other domains — rarely enough that people let down their guard, but often enough to be nonignorable — I might not know. So the value proposition of using their site is not what it was before, and there’s really no reason for me to stay.
Learn efficient ways to collapse text by group in R! Explore base R's aggregate(), dplyr's group_by() and summarise(), and data.table's grouping. Mastering these techniques enhances data preprocessing skills. Try these examples with your datasets to optimize workflows. Happy coding! 📊💻
People who understand R and RStudio, please help me out.
I've been asked to use it for a class that is neither a stats nor an IT unit, so none of us are experienced with the tech.
Here's the issue:
I open RStudio. It shows me a mostly blank screen with the usual row of menus along the top plus the RStudio logo and name. Each menu displays (empty). In a separate window it opens the RStudio logo only.
I can't work out how to make it display menus and the rest of the UI.
It was working normally yesterday.
I have tried turning all aspects of the situation off and on again. I haven't tried downloading RStudio again.
Edit: possibly relevant, it's running on a basic laptop that's over 10yo.
The sparklyr package and friends have been getting some important updates in the past few months!
sparklyr is a package that allows you to interact with Spark using familiar R interfaces, such as dplyr, broom, and DBI. You can also gain access to Spark's distributed Machine Learning libraries, Structure Streaming, and ML Pipelines from R.
👍 In R, you can easily extract specific columns from a data frame by their numerical positions. For instance, to grab the second column from a data frame df, you can use df[, 2].
🙅♂️ You can also exclude columns by using negative indexing, such as df[, -2] to exclude the second column.
Tree canopy height map of the County of Maui, including the islands of Maui, Lānaʻi, Molokaʻi, Kahoʻolawe, and Molokini. Made possible by @hughagraham.
@sotneStatue Good luck. I'm sure you'll find @Bioconductor packages very helpful! There is also a lot of materials on how to do it.
Pst if you use R the hashtag we use is usually #rstats. You might get more help if you post it with that hashtag 😉