@ataustin@fosstodon.org
@ataustin@fosstodon.org avatar

ataustin

@ataustin@fosstodon.org

Director of data science, fanboy of #rstats. Make interoperability, not war.

Also at @ataustin.bsky.social

This profile is from a federated server and may be incomplete. Browse more on the original instance.

stevensanderson, to Glue
@stevensanderson@mstdn.social avatar

Some one just reached out looking to extract values from a cell that are produced by from the

Example a cell value like 251 (13%) they just want the 251, so I did something like this:

library(tidyverse)
tibble(
value = glue::glue("{11:20} ({1:10}%)"),
reged_val = str_extract(value, "\d+(?=\W|$)") |>
as.numeric()
)

A tibble: 10 ร— 2

value reged_val
<glue> <dbl>
1 11 (1%) 11

Thoughts?

#R

ataustin,
@ataustin@fosstodon.org avatar

@stevensanderson
I'm a bit of a troglodyte in this area but assuming I knew the pattern this precisely, I would probably just create a new column with
as.integer(gsub(" .*", "", value))

ataustin, to android
@ataustin@fosstodon.org avatar

Google Podcasts is going away (because of course it is) and apparently I'm putting off the migration until the last minute ๐Ÿ™ˆ

Can you share your fave podcasting app for Android? I don't need fancy, but I would prize a nice lock screen UI and easy queue management.

stevensanderson, to datascience
@stevensanderson@mstdn.social avatar

Struggling with weird variable names in R? make.names to the rescue! This function wrangles your names into R-approved format (letters, numbers, periods, underscores). Bonus: set unique = TRUE for no duplicates! Try it on funky characters & data frames! ๐Ÿช„ Master make.names and become an R name-wrangling pro! #R

Post: https://www.spsanderson.com/steveondata/posts/2024-03-11/

image/png

ataustin,
@ataustin@fosstodon.org avatar

@stevensanderson
after all these years I'm still discovering base gems. amazing!

timClicks, to random
@timClicks@mastodon.nz avatar

Let's create a list of fun web APIs. I'll start: https://random.dog/woof.json

ataustin,
@ataustin@fosstodon.org avatar

@timClicks
I've got a curl request to this one in my .bashrc so I can start the day right
https://icanhazdadjoke.com/api

Drmowinckels, to random
@Drmowinckels@fosstodon.org avatar

I'm dealing with some serious fatigue post-covid.
After trying to work 100% almost 3 weeks after being sick for 3 weeks, my body said stop.

I currently spend most of the day laying down, getting completely exhausted after most activity. This includes mental activity.

I'm a little scared by it all, and simultaneously bored and exhausted. I can feel fairly normal one second, then make a simple dinner, and spend the rest of the day with exhaustion, headaches and generally feeling unwell.

ataustin,
@ataustin@fosstodon.org avatar

@Drmowinckels
hope you feel better soon! Here's a really nice one-off podcast series about the business of wild chocolate. No statistics at all, but it drew me in with a fascinating real-life drama about a world I can only imagine.
https://www.iheart.com/podcast/1119-obsessions-wild-chocolate-103468390/

Cmastication, to random
@Cmastication@mastodon.social avatar

๐Ÿ”ฅ I โค๏ธ this hot take on engineering like Amazon ๐Ÿ”ฅ

Complexity isnโ€™t free. Engineer for maximizing โ€œreturn on complexityโ€

From: @tante
https://tldr.nettime.org/@tante/111839843024622267

ataustin,
@ataustin@fosstodon.org avatar

@Cmastication JD where is my promotion supposed to come from if not a web of indecipherable dependencies and unreadable docs

ataustin,
@ataustin@fosstodon.org avatar

@Cmastication
not the hero we deserve, but the hero we need

Cmastication, to random
@Cmastication@mastodon.social avatar

There are two types of people:

  1. those who understand most qualities exist on a continuous spectrum

  2. those who force things into discrete categories

ataustin,
@ataustin@fosstodon.org avatar

@Cmastication
<slow-clap.gif>

meghansharris, to random
@meghansharris@fosstodon.org avatar

POV: Me seeing โ€œPython vs Rโ€ content on my feed, because I'm TIRED.

ataustin,
@ataustin@fosstodon.org avatar

@meghansharris
I didn't even inadvertently start it this time!

ataustin, to python
@ataustin@fosstodon.org avatar

I'd like to show my team the insane power of WASM. Many of them are Python users. Is there an equivalent of this webR demo that hits just as hard for a Python user?
https://webr.r-wasm.org/latest/

ataustin,
@ataustin@fosstodon.org avatar

@brodriguesco ah shinylive! of course. thanks!

brodriguesco, to python
@brodriguesco@fosstodon.org avatar

No disrespect to Wes McKinney (I donโ€™t like , but I personally could have never done something like that myself), but thereโ€™s literally 0 reason (apart from running legacy code) to use now when thereโ€™s on . With , is still the GOAT

ataustin,
@ataustin@fosstodon.org avatar

@brodriguesco
new favorite meme just dropped

ataustin, to python
@ataustin@fosstodon.org avatar

Help out a lowly R person seeking to improve collaboration with Python users.

In your own words, what would you say is "pythonic"?

ataustin,
@ataustin@fosstodon.org avatar

@treyhunner I have a lot of research to do now! thanks for the comprehensive list.

SEE WHAT I DID THERE

ataustin,
@ataustin@fosstodon.org avatar

@tshirtman
ooh you're the first to mention context managers and decorators. Good call-out, I've seen things like that but they haven't always made sense to me. Adding it to my research list.

And thanks for the video, looks right up my alley!

andrewfeeney, to random
@andrewfeeney@phpc.social avatar

The G in Gif is pronounced like the G in Gigawatts.

ataustin,
@ataustin@fosstodon.org avatar

@andrewfeeney
all 1.21 of them

Drmowinckels, to random
@Drmowinckels@fosstodon.org avatar

I just realised that my talk on @rOpenSci 's is up on youtube.

I you like any or all of:

  • package dev
  • sci-fi
  • wormholes
  • using clever tools so you can do less work

My talk has all of that!

CRAN-ial Expansion: Taking Your R Package Development to New Frontiers with R-Universe

https://www.youtube.com/watch?v=XDiyAvpo2uk&list=PL9HYL-VRX0oRFZslRGHwHuwea7SvAATHp&index=72

ataustin,
@ataustin@fosstodon.org avatar

@Drmowinckels
such a fun talk!

andrew, to random
@andrew@fediscience.org avatar

heck yes alluvial plots with {ggalluvial} https://corybrunson.github.io/ggalluvial/

ataustin,
@ataustin@fosstodon.org avatar
ataustin, to random
@ataustin@fosstodon.org avatar

We are about to enter the golden age of LinkedIn thought leadership </sarc>

ataustin, to python
@ataustin@fosstodon.org avatar

Data people: what are some signs that your data analysis project is actually a piece of software (with all the associated accoutrements -- requirements gathering, design, testing, packaging, etc)?

Or, looking at it another way, what are some traits of a software project that differentiate it from a purely data science project (if such a distinction exists)?

ataustin,
@ataustin@fosstodon.org avatar

@koen_hufkens
oh this is super nice. I tend to use a similar structure for analyses, but this has some additional considerations like the src/ directory that I've never tried. And setting it up as a GitHub template is really smart.

ross, (edited ) to random
@ross@fosstodon.org avatar

Came up with a great analogy yesterday for how specific requirements help everyone:

I often do the grocery shopping.

My wife often lists things like โ€œalmondsโ€.

I arrive at the shop.

There are ground almonds, flaked almonds, blanched almonds, whole almonds. They are on the snack aisle, the baking aisle and in the produce department.

There are various packet sizes.

The actual requirement is something like:

"Ground Almonds, 150g for baking cakeโ€

โ€ฆ

ataustin,
@ataustin@fosstodon.org avatar

@ross
This is so good. I'm stealing it for some upcoming conversations this week please and thank you

ataustin, to random
@ataustin@fosstodon.org avatar

That thing where you rubber duck the Advent of Code problem with a friend who isn't a programmer and he gives you a really good idea for the solution and now he wants to keep talking about other stuff instead of letting you code it up ๐Ÿ˜‚

brodriguesco, to random
@brodriguesco@fosstodon.org avatar

Almost one year ago, Iโ€™ve ran all example scripts shipped in versions of R from 0.6.0 up to 4.2.2 on R version 4.2.2

https://www.brodrigues.co/blog/2022-12-21-longevity/

as you can see, 4.2.2 is still able to run more than three quarters of the examples of the oldest release of R!

ataustin,
@ataustin@fosstodon.org avatar

@brodriguesco
what a cool analysis! What happened mid-way along the x axis? Looks like version 2.15.1? I seem to recall some kind of emergency patch release at some point, but don't remember if that was it.

Cmastication, to random
@Cmastication@mastodon.social avatar

My great grandmother taught in this one room school. She was later the postmaster in the town I grew up in. When my mom was a kid, sheโ€™d take my mom down to put mail bags out for the train to hook as it blew through without stopping. That train was The City of New Orleans which went down the tracks behind my childhood home.

ataustin,
@ataustin@fosstodon.org avatar

@Cmastication
pass the mason jar, will you?

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