@Dan@aus.social avatar

Dan

@Dan@aus.social

Data weirdo and outdoorsy nerd.

Rider/runner/hiker

Registered Nurse/MPH. Health analyst new to an academic setting. Working with #rstats is much kinder on the body and mind than as a nurse in an emergency department!

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

Dan, to random
@Dan@aus.social avatar

Thursday afternoon fun - making isochrones with no value but their blobby sea dragon weirdness!

Dan,
@Dan@aus.social avatar

So what I was really play with in @rstats yesterday was drive time analysis to Canberra's two hospitals - there's a bit of a joke that everywhere in Canberra is only 20 minutes drive away - it's not quite true though...

In the deep south and the new suburbs of the north the drive to the closest hospital is over 30 minutes!

This analysis is by SA1 taking simple centroids - still needs a bit of work, but really enjoying learning how to get openrouteservice working in a docker container on my local computer - definitely woth looking at as an alternative to google or mapbpx

smach, to rstats
@smach@masto.machlis.com avatar

The {summarytools} 📦 aims to:
“Provide a coherent set of easy-to-use descriptive functions [like] those in commercial statistical software suites such as SAS, SPSS, and Stata
“Offer flexibility in terms of output format & content
“Integrate well with commonly used software & tools for reporting”
Results can be displayed in console or rendered/saved as HTML, plain text, or R Markdown. By Dominic Comtois
https://htmlpreview.github.io/?https://github.com/dcomtois/summarytools/blob/master/doc/introduction.html
@rstats

Dan,
@Dan@aus.social avatar

@smach @rstats this looks super handy, feel like I should have used this a lot...

Dan, to rstats
@Dan@aus.social avatar

I can't believe it has taken me however many years I've been using @rstats ggsave() to realise... it saves the current size of the "Plots" pane in RStudio (or more generally if I had bothered to ever properly read the help text "using the size of the current graphics device")

Cmastication, to random
@Cmastication@mastodon.social avatar

I did the dumbest little project tonight. I find it amusing that my European colleagues don't realize that their country is basically the size of Indiana.. or Tennessee or some other state that they can't find on a map. So I pulled the data to determine which state is most like which country. My 3 metrics are: population, land mass, and GDP. I have the data cleaned up. So maybe now a simple Shiny app?

What should I do with this project?

Dan,
@Dan@aus.social avatar

@Jakra @Cmastication this sent me down a 'The true size of...' rabbit hole. So good. Recreate that in Shiny but for sub-national regions, with addition metric comparisons and I'll totally buy you a beer! https://www.thetruesize.com

bleeptrack, to generative
@bleeptrack@vis.social avatar
Dan,
@Dan@aus.social avatar

@bleeptrack this is so cool. Do you mind me asking, who do you get to print the fabric?

Dan, to Canberra
@Dan@aus.social avatar

Such a joyous time here in at the moment. Picked over 700g of raspberries, a couple of kilos of cherry tomatoes just this morning.

Might be time to pick the pears?

So many bees! And a few different varieties which is so great to see.

Dan,
@Dan@aus.social avatar

Wow, ok we picked the pears, filled a laundry basket.

Dan,
@Dan@aus.social avatar

Spoils of this weekend's endeavours.

  • 10 jars Charmaine Solomons Tomato Kasaundi
  • 6 jars preserved cherry tomatoes
  • 2 jars each of preserved granny smith apples, pickled beans and cucumber
luciedigitalni, to auspol
@luciedigitalni@aus.social avatar

Although there is zero chance of tax incentives for housing investors being reduced in the current parliament, it's worth remembering that the main argument against doing so, that it will force 'mum and dad' landlords to sell rental properties, is in fact the main reason for doing it

Dan,
@Dan@aus.social avatar

@luciedigitalni I'm perplexed that apparently, according to the guardian/essential ppoll published toy, a majority of people don't support changes. Need to get my head around what proportion of people have investment properties...

Dan, to random
@Dan@aus.social avatar

My mother just offered me a ~70 year old fur coat. It was made by Madame Louise of Nairobi.

The ethics of old fur aside, it was made of hyrax, an animal I'm not sure I'd heard of before today, and it looks this 👇and I just can't fathom deciding to make a coat out a bunch of these little weirdos

Dan,
@Dan@aus.social avatar

Another photo, from Hyrax Facts, your best source for all your hyrax fact needs - my favourite, they aren't in fact rodents but more closely related to elephants and dugong! https://www.worldatlas.com/articles/hyrax-facts-animals-of-africa.html

josh, to random
@josh@phocks.eu.org avatar

ok here it is. how to set up your very own single-user mastodon instance and run it free forever. boosts ok in case it's useful to anyone who wants to set one up. i recommend doing it simply for fun and for the learning experience. good luck! https://josh.is-cool.dev/running-a-mastodon-instance-entirely-free-forever/

Dan,
@Dan@aus.social avatar

@josh this is cool and I'll probably have a go, but also, how come Oracle give away servers?!? And why am I paying for my little Digital Ocean one?

Dan, to rstats
@Dan@aus.social avatar

So I haven't been doing but here's something dumb I did with @rstats on my phone. A Conway's Game of Life that plays in the console.

Conway's Game of Life in ironic black and green console on phone

Dan,
@Dan@aus.social avatar

@rstats and because is the hot new thing in here is it is running in the browser

Screen capture of r code and Conway's Game of Life from a phone web browser

Dan, to rstats
@Dan@aus.social avatar

So another @rstats wonder!

You can render to epub - so great that resources like https://r4ds.had.co.nz/index.html that are actually quarto books can be rendered as an epub just by changing the .yaml format

(I realised recently you can also do this with bookdown which is amazing)

absolutely going to go and make a donation at https://www.doc.govt.nz/kakapo-donate

Dan,
@Dan@aus.social avatar

@lydz_gibby @rstats yep absolutely! Though r4ds rendered as epub won't open in kindle it looks good in my other epub reader.

Advanced R on the other hand, I recently rendered to epub with book down and opens in kindle without any mucking about.

I think it's to do with CSS but haven't tried too hard to figure out

Dan,
@Dan@aus.social avatar

@rstats one thing I did find a little frustrating is that there were a handful of pacakges I didn't have installed and rendering kept halting.

Is there an established way to search through a large number of files to find and install packages?

There are about 49 files that likely include pacakges so didn't really want to do it manually - here was my hacky solution

hrbrmstr, to random
@hrbrmstr@mastodon.social avatar

Do be dis'in for loops in .

Check out how to parse out data into multiple excel files using R openxlsx. It's a super convenient way to save time and automate a painfully monotonous task. And, it uses for loops!

"Parsing Excel Files with R" by @tanya_shapiro

https://tanyaviz.com/blog/parsing-excel/

Dan,
@Dan@aus.social avatar

@hrbrmstr could be a trans-pacific language thing, but I'm left slightly confused as to your stance on whether we should or should not be dis'in for loops...

Dan,
@Dan@aus.social avatar

@hrbrmstr @BobOHara @tanya_shapiro but would perhaps be a place for something like purrr::walk?

I often use for loops for things like this and have to say I find it easier to debug this way rather than a function and map family functions. Reading lots of things in on the other hand...

hrbrmstr, to random
@hrbrmstr@mastodon.social avatar

Did not have "Colorado Supremes thrusting us into civil war" on my 2023 bingo card.

Dan,
@Dan@aus.social avatar

@hrbrmstr oh wow, I literally just read an article about this and came on here to see whether there was any commentary, must admit I hadn't expected this reaction... Australians maybe (definitely) think differently.

ct_bergstrom, to Birding
@ct_bergstrom@fediscience.org avatar

Hey Australia I fell so hard for this pouty little cormorant of yours.

Dan,
@Dan@aus.social avatar

@ct_bergstrom did you see any Purple Swamphens? They aren't Cassowary level dinosaur bird but on land are quite cartoonish, and the chicks are next level https://www.reddit.com/r/AustralianBirds/comments/acpbo5/purple_swamphen_chick_south_coast_nsw/?utm_source=share&utm_medium=mweb

gvwilson, to random
@gvwilson@mastodon.social avatar

sigh Polars was really nice until I had to make some plots and discovered that Plotly Express only works with Pandas dataframes. (Apparently some parts of PX will work if I pass in series objects rather than dataframes, but that's going to be clunky to explain to students.) If I don't want to use matplotlib or anything built on top of it (e.g. Seaborn), is Altair my best choice?

Dan,
@Dan@aus.social avatar

@gvwilson plotnine?

andrew, to random
@andrew@fediscience.org avatar

tfw you're in the middle of The Expanse book 8 and realize why those two kids from the Laconia subplot of S6 of the show were in S6 of the show

Dan,
@Dan@aus.social avatar

@andrew you seem to be flying through this series! I have one kid and only manage a few pages a night before I have to sleep (also currently reading book 8). Wish I had your energy!

Dan, to Halloween
@Dan@aus.social avatar

So my local drug dealer house has put up decorations and it's like, dudes, your house is already a fucking horror show

(Note - they're not MY drug dealer, just the drug dealers closest to me that I walk past every day while walking the dog)

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