nrennie, to random
@nrennie@fosstodon.org avatar

📢New blog post 📢

A short blog post about how I've been using Quarto to create two versions of R tutorial worksheets: one with questions, one with answers!

Two tricks:
🪄 parameterised documents
🪄 conditional content

Blog post: https://nrennie.rbind.io/blog/r-tutorial-worksheets-quarto/

#RStats #QuartoPub #StatsEd

stefanforfan,
@stefanforfan@mstdn.social avatar

@nrennie Very cool. You could also use project profiles for this and get rid of the if-statements.

nrennie,
@nrennie@fosstodon.org avatar

@stefanforfan

Yes, definitely like project profiles for task this as well!

I used if statements because in the more complex version I have, there are parameters that create a unique solution sheet for each student. I wanted to use apply to render 30 different versions, and I couldn't figure out a nice way of doing that with project profiles.

stevensanderson, to datascience
@stevensanderson@mstdn.social avatar

🚀 TidyDensity's New AIC Functions! 🚀

The TidyDensity package now includes new functions to calculate the Akaike Information Criterion (AIC) for various distributions, streamlining model quality assessment. Use functions like util_negative_binomial_aic() to automate AIC calculations, ensuring precise model evaluation.

Happy coding!

#RStats #DataScience #TidyDensity #Programming #RProgramming #Coding

Post: https://www.spsanderson.com/steveondata/posts/2024-05-31/

rOpenSci, to rstats Spanish
@rOpenSci@hachyderm.io avatar

📦 [A package a day - Data Extraction 2]

Today's Data Extraction package is datefixR

Standardize Dates in Different Formats or with Missing Data
🙏 Maintained by @IBDNathan
📝 https://docs.ropensci.org/datefixR/

Do you use this package? Tell us about it!
🗺️ https://discuss.ropensci.org/c/usecases/10

#PeerReviewed

#APackageADay
#OSS
#RStats
@rstats

coolbutuseless, to random
@coolbutuseless@fosstodon.org avatar

{nara} update. A pkg for handling nativeRaster images.

  • New demo sprite.
  • Updated hex logo

All rendering done in R with {grid} and {nara}

https://github.com/coolbutuseless/nara

#RStats

Animated pixel deer running across the screen
Hexagonal logo with the word "nara". Inside the hexagon is an animated pixel deer

rmflight, to random
@rmflight@mastodon.social avatar

I wasn't sure if this little trick to change the figure captions in an #RStats #QuartoPub document would work, but it worked perfectly.

I get several figures, with their caption changed to reflect what was actually plotted.

Very nice.

#| label: fig-each  
#| fig-cap: !expr glue::glue('Number of things in {multi}.')  
#| fig-keep: all  
purrr::walk(multi, \(in_item){  
 tmp = big_df |>  
 dplyr::filter(value %in% in_item)  
 print(ggplot(tmp, aes()) + geom_point())  
})  
thomas_mock, to random
@thomas_mock@fosstodon.org avatar

Posit provides patched binaries for versions 4.0.0 and above.

"A recent security vulnerability in the R language has been patched in Posit’s Linux binaries for installing R versions 4.0.0 and above."

https://posit.co/blog/posit-patched-binaries-for-r-versions-4-0-0/

layal, to random
@layal@fosstodon.org avatar

#rstats Do you know what the difference is between nested and packed data? And what does this difference look like in a JSON format? If you're curious about that, please check my last blog post out: https://rdiscovery.netlify.app/posts/2024-05-30_pack-nest/. Cheers😉

layal,
@layal@fosstodon.org avatar

@Lluis_Revilla @Mehrad This is exactly the same use cases as @Lluis_Revilla for me. I often use a nested data frame to compute/collect an element based on each row of the initial tibble. For example

my_nested_tib <-  
 palmerpenguins::penguins |>  
 dplyr::distinct(island) |>  
 dplyr::mutate(penguins_raw_data = purrr::map(  
 island, \(x) dplyr::filter(palmerpenguins::penguins_raw, Island == x)  
 ))

my_unnested_tib <-  
 my_nested_tib |>  
 tidyr::unnest(penguins_raw_data)  
Mehrad,
@Mehrad@fosstodon.org avatar

@layal
Nice. Thanks for the tangible example. I now see what you both mean 😅

May I suggest adding this example and use-case to your article?

I would also like to express my gratitude for using basepipe (when Magrittr is not needed) and more importantly for defining the packages for each of the functions you have used. This makes it extra clear for the reader especially if they are like me and don't do blind library(tidyverse). 🤓
@Lluis_Revilla

sebkrantz, to datascience
@sebkrantz@fosstodon.org avatar

In the development version of {collapse} [v2.0.15, available via install.packages("collapse", repos = "https://fastverse.r-universe.dev")], the pivot() function has received a FUN argument to support aggregation, including a number or hard-coded internal functions that do this "on the fly". Initial benchmarks show that this significantly outperforms other pivot table options in R. More at https://sebkrantz.github.io/collapse/reference/pivot.html (feel free to test and give feedback). #rcollapse #rstats #DataScience

ergative, to Julia
@ergative@wandering.shop avatar

I find it WILDLY FRUSTRATING implementing contrast coding in Julia.

If I use ContrastCoding(), I can specify my own contrast matrices (yay!) but I can't label them. So the regression output just reuses my actual factor levels to label an actual model term that means something like, say, 'mean of levels A and B vs. mean of levels C and D'. Or whatever. To interpret my model, I must make physical notes on a piece of paper about what each term means.

1/2

#psycholinguistics #julia #rstats

ergative,
@ergative@wandering.shop avatar

@exa StatsModels.

Judging from Dave Kleinschmidt's very useful tour of it, I think possibly it was simply built for someone who learned to specify contrast matrices differently from me.

I infer this from the bit where Dave remarks that the hypothesis matrix is transformed into a contrast matrix in a way that he wouldn't be able to derive off the top of his head. To me, the contrast matrix is great! It's the hypothesis matrix that I have to puzzle over.

https://repsychling.github.io/contrasts-and-formula/

exa,
@exa@mastodon.online avatar

@ergative Ah so... yeah a bit of API opacity is common in julia. People are working on that quite hard though, julia community is great at that. If the use-case makes sense (it does!) and there isn't an issue, please do open one.

rOpenSci, to rstats Spanish
@rOpenSci@hachyderm.io avatar

📦 [A package a day - Data Extraction 1]

Today's Data Extraction package is readODS

The only goal of readODS is to enable R to read and write OpenDocument Spreadsheet (ODS) files
🙏 Maintained by @chainsawriot
📝 https://docs.ropensci.org/readODS/

Check out this article: An Overview of {readODS}
📊 https://docs.ropensci.org/readODS/articles/overview.html

#PeerReviewed

#APackageADay
#OSS
#RStats
@rstats

RConsortium, to HR
@RConsortium@fosstodon.org avatar

🐘✨ Great news from Marcela Victoria Soto at R4HR in Buenos Aires! She recently shared updates about their dynamic activities: "Data analysis is crucial for agile decision-making in companies." Join them on June 1, 2024, for the "Data Visualization in HR" event. Perfect for Spanish-speaking R users interested in HR analytics. 📅👥 Read more: https://www.r-consortium.org/blog/2024/05/30/r4hr-in-buenos-aires-leveraging-r-for-dynamic-hr-solutions

mich_waveform, to Philippines
@mich_waveform@mastodon.social avatar

How do I find people (especially women and POC and LGBTQ+) who started as scientists and somehow found their way to programming and love it so much but were never formally trained and so they just figure it out as they go but they make it work anyway?? Too specific?? (I’m a half woman and ally, let’s be pals?)

stevensanderson, (edited ) to datascience
@stevensanderson@mstdn.social avatar

I'm thrilled to announce some fantastic new features and improvements in the latest update of the TidyDensity package! 📈

What's New?
39 New functions for estimating parameters, calculating distribution statistics and AIC

Minor Improvements

  • Optimized Parameter Estimation
  • Improved Data Handling

📰 News: https://lnkd.in/ea7mX_Xg

#Rstats #DataScience #TidyDensity #Analytics #DataAnalysis #RProgramming #Update #Coding #Statistics #StatisticalDistributions #Programming

coolbutuseless, to random
@coolbutuseless@fosstodon.org avatar

{nara} pkg for working with native rasters in R

Work-in-progress: experimenting with isometric tiles

Fun!

https://github.com/coolbutuseless/nara

#Rstats

coolbutuseless, to random
@coolbutuseless@fosstodon.org avatar

Which one of you crazy kids built a sprite editor in the Rstudio viewer?

Possible back in times of tw*tter...

#RStats

coolbutuseless,
@coolbutuseless@fosstodon.org avatar

It was @mattdray who built {pixeltrix} - a sprite editor for R

https://github.com/matt-dray/pixeltrix

#RStats

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