juliasilge, to programming
@juliasilge@fosstodon.org avatar

Today @isabelizimm and I have a new guide published on how to use vetiver 🏺 to store model metrics as ✨metadata✨, in either or :

https://vetiver.rstudio.com/learn-more/metrics-metadata.html

terence, to random
@terence@fosstodon.org avatar

Back to forest cover maps with one of México.

adventures, an tale

smach, to rstats
@smach@fosstodon.org avatar

The {ggautomap} 📦 “provides geometries that make use of cartographer, a framework for matching place names with map data. With ggautomap your input dataset doesn’t need to be spatially aware: The geometries will automatically attach the map data (providing it’s been registered with cartographer).”
https://cidm-ph.github.io/ggautomap/index.html
By Carl Suster, on CRAN
@rstats

thartbm, to random

question (or just really): I want some goodness of fit thing for an orthogonal distance regression (or total least squares regression). Since this can apparently be done by taking the first principle component (https://stats.stackexchange.com/questions/13152/how-to-perform-orthogonal-regression-total-least-squares-via-pca) we were thinking that Rsquared = 1 - ((sum(eigenvalues)-max(eigenvalues) / max(eigenvalues)) but we're not sure.

Apparently we could also get a t-statistic or a chi-squared value: https://stackoverflow.com/questions/21395328/how-to-estimate-goodness-of-fit-using-scipy-odr

Does anyone have any opinions about this? @lakens maybe?

djnavarro, to random

I quite like the colours in this one

danirabbit, to random
@danirabbit@mastodon.online avatar

I’m done cross-posting @elementary to Twitter. I really hoped it would get better, but with the latest news of Elon promoting Ron DeSantis’ presidential run, I’m done. It’s become a far-right social network no different from Parlor or Truth Social and I won’t be a part of it.

djnavarro,

@danirabbit Big hugs. I left 20K followers in the world behind over there when I made the same call a while back. It’s scary. I hope folks are supportive. ❤️

smach, to rstats
@smach@fosstodon.org avatar

The {pins} 📦 now supports reading and writing parquet files! 🎉Via @juliasilge
https://posit.co/blog/announcing-pins-1-2-0/

@rstats

Drmowinckels, to random
@Drmowinckels@fosstodon.org avatar

I'm at the documentation driven development stage of an package of mine. I swear, I get the most important bugs out during this phase.

ingorohlfing, to rstats German
@ingorohlfing@mastodon.social avatar

When you struggle with theme()-arguments in {ggplot2}, you may like {ggeasy}, offering shortcuts to plot customization https://github.com/jonocarroll/ggeasy (worth visiting just bc of the hilarious cartoon)
I am skeptical when a package promises to make plotting easier because you have to remember the arguments you are looking for in either case. Here, however, I can see the added value for some arguments @rstats

mccarthymg, to random
@mccarthymg@fosstodon.org avatar

New blog post looking at package contributor statistics on GitHub: https://tidytales.ca/posts/2023-05-10_r-developers-github/

This time I try to answer questions like:

  • How many packages are hosted on GitHub?
  • How many people have contributed to them?
  • What does the network of people with common package contributions look like?
  • And much more!

There are also interactive {gt} tables so you can browse contribution and package statistics; and I’ve shared the data so you can explore your own questions. Enjoy!

mccarthymg,
@mccarthymg@fosstodon.org avatar

This is a follow-up to my post two weeks ago looking at package developer statistics on CRAN: https://fosstodon.org/@mccarthymg/110306605466215008

meghansharris, to random

The goal was to learn about applying splines to a circle for the polygon chapter, but splines are too hard for my brain right now, so this resulted instead. Forever searching for less computationally heavy ways to make space 🌃 in w/ geom_polygon() & geom_point()

mjskay, to random

The package is now on CRAN!! https://mjskay.github.io/ggblend/

ggblend is a small algebra of operations for blending, copying, adjusting, and compositing layers in ggplot2

One problem it solves is making plots independent of draw order: e.g. by using commutative blends, like "lighten" or "multiply"

Two versions of a scatterplot of two partially-overlapping groups (a and b). Each version has a different draw order: a then b or b then a. Commutative blends (lighten and multiply) are used to ensure that the final plot output is independent of draw order.

debruine, to random

I've made a lightweight glossary package for quarto and R Markdown documents. You just tag words in your text like r glossary("term") and create a glossary table at the end of the section with glossary_table(). The definitions can be set in each glossary() function, or pulled from a YAML file.

I'm hoping to submit to CRAN soon, but would love if anyone had time for a quick test and feedback.

https://debruine.github.io/glossary/

djnavarro, to random

I wrote a thing. Again. I'm sorry. But also, the santoku package is a very nice solution to a problem that some of us have. Discretising a continuous variable is weirdly painful, and it's nice to have computational tools that get out of your way and let you think about what you want to do with your data

https://blog.djnavarro.net/santoku/

terence, to random
@terence@fosstodon.org avatar

Trying something different. Again. A map of Japan's shinkansen network as of 2015. If you know an updated source, please let me know. Like the Interstate 5 map, the camera angle and hovering lines may give the impression that they are off; they are not. 😅

adventures, an tale

sharoz, to random

Helped someone debug some tidyverse data processing issues. It turns out "NA" was a legitimate code used in their data and readr by default interprets it as NA, not a string. Careful folks!

Edit: for anyone who doesn't know, read_csv() has an na parameter. The default is na = c("", "NA"). Setting it to na = "" fixed the issue.

datamaps,

@sharoz @odr_k4tana

like most human skilled activities, both should be done by people who are knowledgeable (often not the same person), whatever tool they use.
But some tool are usually better than other.
After 30+ years in the profession, I can tell you that using a programming language like provides at least a much better and reproducible workflow than any other C&P tool that you can think of, and if you think otherwise it's only because you're like a stakeholder in SAS 😉

datamaps,

@sharoz @odr_k4tana

In any case there is a famous GUI for that keeps it very similar to SPSS https://cran.r-project.org/web/packages/Rcmdr/index.html

and it's just one out of many, here's a list
https://r4stats.com/articles/software-reviews/r-gui-comparison/

datamaps,

@odr_k4tana @sharoz
in some ways the raise of the sect has funnelled as side effect a general less knowledge of When I see people call readr::read_rds instead of readRDS I just despair

yutannihilation, to random

Since it was super tough to understand how R's protection mechanism can work with Rust, I wrote a blog post before I get burned out completely🔥

Wannabe Rstats-fu - R, Rust, Protect, And Unwinding
https://yutani.rbind.io/post/r-rust-protect-and-unwinding/

debruine, to random

I'd totally forgotten about this quirk of functions: arguments are not evaulated until they are used, so if argument b defaults to the value of argument a, you need to use argument b in the code before you make any changes to a (or of course don't change a)

((I spent half an hour debugging something due to this today))

x <- function(a, b = a) {
a = 1
return(b) # first use of b sets the value b = a = 1
}

x(2) # returns 1

y <- function(a, b = a) {
b # sets the value of b = a = 2
a = 1
return(b)
}

y(2) # returns 2

seanfobbe, to politicalscience German

🔔 NEU 🔔 Wie kann ich als Jurist:in in Legal Data Science einsteigen? Ich habe dafür eine Materialsammlung erstellt - jetzt online!

Materialsammlung: https://seanfobbe.com/de/einstieg-legal-data-science/

✅ Kurzer Überblick
✅ Artikel zur Einführung
✅ Podcast-Episoden
✅ Einführungen und Nachschlagewerke zum Programmieren
✅ Links zu freien juristischen Datensätzen

@rstats @politicalscience @OpenScienceFeed @OpenScienceDeutschland

smach, to rstats
@smach@fosstodon.org avatar

“Introduction to Quarto for R Users” - @NHSrCommunity presentation by Filippo Cavallari, data science lecturer with the UK Office for National Statistics.
Video: https://youtu.be/8nPfCUKPnBE
Slides: https://filebb.github.io/Intro_Quarto/#/title-slide
#rstats #QuartoPub #Quarto @rstats

dickoa, to random

package {crul} 1.4 is on CRAN. It comes with many new features, I'm really excited about retry on Async requests. Thanks again @sckottie for the all the work on this package.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • megavids
  • khanakhh
  • mdbf
  • ethstaker
  • magazineikmin
  • GTA5RPClips
  • rosin
  • thenastyranch
  • Youngstown
  • InstantRegret
  • slotface
  • osvaldo12
  • kavyap
  • DreamBathrooms
  • JUstTest
  • Durango
  • everett
  • cisconetworking
  • normalnudes
  • tester
  • ngwrru68w68
  • cubers
  • modclub
  • tacticalgear
  • provamag3
  • Leos
  • anitta
  • lostlight
  • All magazines