jonthegeek, to random
@jonthegeek@fosstodon.org avatar

Now it's @jaredlander "Building an R Package with LLMs" #rstatsnyc #RStats

jonthegeek,
@jonthegeek@fosstodon.org avatar

It used base R to start, but he could prompt it to use the tidyverse. #rstatsnyc #RStats

jonthegeek,
@jonthegeek@fosstodon.org avatar

Interacting with chatgpt, he was able to generate functions that generated a valid plot. #RStatsNYC #RStats

jonthegeek,
@jonthegeek@fosstodon.org avatar

He's ascribing a lot more "understanding" to chatgpt than it deserves. But I'm somewhat impressed with it explaining why @dontrun is needed in the docs. #RStatsNYC #RStats

jonthegeek, to random
@jonthegeek@fosstodon.org avatar

Now it's Jessica Duncan with Give Credit Where Credit Is Due: Data-Driven Approach to Marketing Channel Attribution #rstatsnyc #RStats

jonthegeek,
@jonthegeek@fosstodon.org avatar

{ChannelAttribution} 📦 to get Markov chain attribution. Need a df of path + did they convert for each case, then it can do attribution cleanly and easily. #rstatsnyc #RStats

jonthegeek,
@jonthegeek@fosstodon.org avatar

Traditional: rules based, single touch attribution. All credit goes to either the first touch or last touch, ignore everything in between.

Some also use linear, U-shaped, time-decay to give multi-touch attribution, still rules based.

#rstatsnyc #RStats

jonthegeek,
@jonthegeek@fosstodon.org avatar

Considerations:
Do you have data (or can estimate)?
Markov chain assumes states are independent. If steps are dependent, consider modeling before and/or after dependent steps.
When does a customer journey restart? After purchase? Time based?
https://github.com/JessicaMDuncan/2023_NYR
#rstatsnyc #RStats

jonthegeek,
@jonthegeek@fosstodon.org avatar

It's useful to know which touchpoints drive customers to actually buying the thing.
#rstatsnyc #RStats

jonthegeek,
@jonthegeek@fosstodon.org avatar

Data-Driven Approach: Markov chain. Predict probability of moving from one state to another or staying in the same state. #rstatsnyc #RStats

Elendol, to random
@Elendol@hachyderm.io avatar

Friendship with {renv} has ended, {pak} is now bestfriend

My workflow for package management in R is now:

  • create a DESCRIPTION file (all projects are "packages")
  • use {usethis} to record new dependencies
  • use {pak} to create lockfile and install R + system dependencies

I use that inside devcontainers, but the nice thing is I am not tied to anything. Unlike a workflow that uses renv, which is required (and it had to do it's weird stuff messing up with .Rprofile)

Elendol, (edited )
@Elendol@hachyderm.io avatar

I created a poor man version of the devcontainer feature to cache renv package across devcontainers for pak.

I will have to fork it to make a proper one...

#rstats

Elendol, (edited )
@Elendol@hachyderm.io avatar

2 weeks ago I had my windows reinstalled. It was pretty cool to just have to install git, vscode and docker to spin back a new devcontainer and get back to work.

Every project specific devcontainer depends on a custom base devcontainer image built and pushed on our gitlab image registry. Keeping each devcontainer json very minimal.

Once I am done with a project I can simply nuke the container, maybe keep the code locally, maybe not. Out of the disk, out of the mind.

Elendol, (edited )
@Elendol@hachyderm.io avatar

Bonus point: we can do all of this cool stuff without having to manually write and maintain Dockerfiles.

And if we need to write one to deploy some code somewhere it can be very minimalistic.

#rstats #DevContainers #docker

Elendol, (edited )
@Elendol@hachyderm.io avatar

Next steps will be to be able to sync shell history, style, custom recipes and other stuff between my host and every devcontainers I use (many, at least 1 per data analysis project) in a way that my colleagues can do the same thing if they want and with their own config.

djnavarro, to random

oh my god rainbow csv extension where have you been all my life????? :blobcatheart:

coolbutuseless,
@coolbutuseless@fosstodon.org avatar

@eliocamp @djnavarro

{Paint} by @milesmcbain

Or

{Emphatic} by me

Both do similar things with ansi colouring in rstudio.

Happy to tweak {emphatic} to make this easy :)

#RStats

benleis, to random

I need more this morning. What's the latest interest image you've seen? Is there an account you really like?

djnavarro,

@paezha @benleis @phonner @meghansharris @jacquietran @georgemsavva Yeah that was me, in a twitter thread in the days of yore. The term was originally intended to have wider applicability than generative art: my original conception was that it should refer to any use of for artistic or craft purposes (including art about R), but was mostly taken up by generative artists, so now it seems have acquired a narrower meaning where, in practice, it refers mostly to generative art made in R.

john, to random

#rstats hivemind - what's the best way to save multiple objects from the global environment (i.e, tibbles) to .rds? So far all I've managed to save to the .rds files are the names of the tibbles, sans content.

Mehrad,
@Mehrad@fosstodon.org avatar

@john you can use varhandle::save.var to save variables from an environment in independent RDS files. Disclaimer: it is my own #RStats package and have been around since R version 2.x. It is a very light package with no external dependency and straightforward functions:

https://cran.r-project.org/web/packages/varhandle/index.html

Private
StatGenDan,

@krzysztof_dyba @eliocamp @rstats That's an interesting & long review, pointing out lots of weaknesses in R's documentation & implementation. E.g., "from the solutions to Advanced R:

“Note that as.vector() and is.vector() use different definitions of ”vector!””.
The above quote is then followed by showing that is.vector(as.vector(mtcars)) returns FALSE."

Where one could open pull requests to help improve the base documentation?

#Rstats

josiah, to rust

📦 Valve is on r-universe!! ✨🪐 This means you don't need Rust to install the R package or the CLI.
The executable is included in the R package.

Another step it making it easier to put R in production.

#rstats #rustlang

josiah,
josiah, to rust

Stop staying you can't put R in prod. :rstat:

I made a blog post with my thoughts and reactions.

#rstats #rust #putRinprod

https://josiahparry.com/posts/2023-07-06-r-is-still-fast.html

shibaprasad,

@josiah @orizuru Tbh, it is not a total presumption. I primarily work in #rstats and have faced the same issues.

The DevOps team told the same to one of my teammates. And the Plumber library had some authentication issues related to UMS2 IIRC.

We adapted databricks quickly and found a way to call the R scripts from a Python notebook.

Even on #Databricks, the support of R is so poor!

datascience, to ps1graphics

paint() your data when you print them to make them easier to grasp: https://github.com/MilesMcBain/paint #rstats #console #debug #print

stevensanderson, to opensource
@stevensanderson@mstdn.social avatar

Are you an R programmer looking for a powerful tool to compare objects for exact equality? Look no further! Say hello to the incredible identical() function in R. 🤝🔍

In my latest blog post, I dive into the world of identical() and uncover its syntax and superpowers in a simple and engaging way. The function allows you to determine if two objects are exactly identical.

Post: https://lnkd.in/e_avt7gK
#coding #opensource #opensourcesoftware #opensourcecommunity #programming #r #rstats

stevensanderson, to random
@stevensanderson@mstdn.social avatar
hrbrmstr, to random
@hrbrmstr@mastodon.social avatar

NY R #rstats conference prep the past cpl weeks + the need to be a road warrior & daftly drive into the heart of NYC == grab bag edition of the Drop.

Drop #294 (2023-07-12)

Multi-threaded Edition v0.8.0

— DIY SVG Sparklines 101;
— Get Woke;
— [Co]Lima

Hope to see some of y'all at the conference! (I may be the one in a Spider-Man costume.)

Read/sub: https://dailyfinds.hrbrmstr.dev/p/drop-294-2023-07-12-multi-threaded

hrbrmstr, to random
@hrbrmstr@mastodon.social avatar

Jessica Duncan's "Marketing Channel Attribution" talk is superb and is def going to help my team work more efficiently with Marketing folks at GN. #nyr #rstats

hrbrmstr, to random
@hrbrmstr@mastodon.social avatar

Amazing time hanging with the NY R conference speakers last night! Those incredibly talented humans are going to crush it today (y'all shld 100% have FOMO). We'll see if yours truly can not embarras them.

Link to live and source slides for my "Into the WebR-Verse" talk shld auto-post around 14:00 ET, here.

Def 👀 them since there is plenty of room for everyone in the WebR-Verse!

brodriguesco, to random
@brodriguesco@fosstodon.org avatar

There were some formatting mistakes in the very first editions of my book (on p. 338 and 419) "Building reproducible analytical pipelines with #RStats". You can download the corrected pdf here: https://github.com/b-rodrigues/rap4all/blob/gh-pages/Building-reproducible-analytical-pipelines-with-R.pdf
and print out the corrected pages to add them to your book. Truly sorry for the inconvenience!

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