@stevensanderson@mstdn.social
@stevensanderson@mstdn.social avatar

stevensanderson

@stevensanderson@mstdn.social

New Book: https://packt.link/oTyZJ | R - install.packages("healthyverse") | #SQL | opinions are mine | #rstats | Mainly though my wife and kids :) | Advisor to DoTadda - All posts delete in 12 months.

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

stevensanderson, to programming
@stevensanderson@mstdn.social avatar

🔍 Quick Guide: Detecting Strings in R

In my latest blog post, I cover how to find specific strings in data columns using the str_detect function from the stringr package and base R functions. You'll see practical examples with both grepl for identifying matches and gregexpr for counting occurrences.

Read more here: https://www.spsanderson.com/steveondata/posts/2024-05-10/ and explore ways to make string detection a breeze in your data work!

#R

image/png

stevensanderson, to programming
@stevensanderson@mstdn.social avatar

Learn efficient ways to collapse text by group in R! Explore base R's aggregate(), dplyr's group_by() and summarise(), and data.table's grouping. Mastering these techniques enhances data preprocessing skills. Try these examples with your datasets to optimize workflows. Happy coding! 📊💻

#R

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

image/png

major, to Economics
@major@social.lol avatar

Used car prices coming down in the USA. This isn't great for new car buying as dealers will offer less on a trade. Dealers still aren't moving much on new car pricing (yet).

image/png

stevensanderson,
@stevensanderson@mstdn.social avatar

@major I think the e-buyers like carvana are trying to reverse that, but I say let the prices fall, cars are not assets and honestly the whole covid no production thing is over

stevensanderson,
@stevensanderson@mstdn.social avatar

@major Yes people will be underwater on car loans, which sucks but I would say is typical, cars retain zero value, your underwater as soon as you leave the lot. I think the manufactures in their quest to extract as much money as possible from people have over inflated the price of cars and dealers made it even worse. For the life of me I can't understand why people are paying, I negotiated my and my wifes cars down tremendously, always prepare to walk out, cars get pumped out.

stevensanderson, to random
@stevensanderson@mstdn.social avatar

👍 In R, you can easily extract specific columns from a data frame by their numerical positions. For instance, to grab the second column from a data frame df, you can use df[, 2].

🙅‍♂️ You can also exclude columns by using negative indexing, such as df[, -2] to exclude the second column.

Keep exploring and happy coding!

#R

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

image/png

stevensanderson, to random
@stevensanderson@mstdn.social avatar

I want to thank everyone who has downloaded one of my #R as the I have surpassed a combined 100,000 downloads of them!!

Thank you!

stevensanderson, to programming
@stevensanderson@mstdn.social avatar

Counting NA's across columns in #R sure you can do that!!

My post today uses #BaseR #dplyr and #datatable to accomplish this

#R #Rstats #RProgramming #Coding #Programming #Data #DataScience

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

image/png
image/png
image/png

stevensanderson, to random
@stevensanderson@mstdn.social avatar

Today I am writing on the AIC functions available in my hashtag#R hashtag#Package TidyDensity.

There are many of them, with many more on the way. Some of them are a little temperamental but not to worry it will all be addressed.

My approach is different then that of fitdistrplus which is an amazing package. I am trying to forgo the necessity of supplying a start list where it may at times be required.

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

#R

stevensanderson, to programming
@stevensanderson@mstdn.social avatar

working on the next release of TidyDensity

#R

stevensanderson,
@stevensanderson@mstdn.social avatar
stevensanderson, to programming
@stevensanderson@mstdn.social avatar

Want a simple form of analysis in #R well, I got you covered.

My #R TidyDensity has a function called tidy_mcmc_sampling() that is pretty straight forward. It takes a raw vector and performs the calculation you give it over a default of 2k samples.

I hope you find it useful.

#R

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

image/png
image/png

stevensanderson, to programming
@stevensanderson@mstdn.social avatar

Exciting news for R users! TidyDensity's latest update introduces util_chisquare_param_estimate(), leveraging MLE to estimate Chi-square distribution parameters like dof and ncp.

Generate a dataset with rchisq() and use util_chisquare_param_estimate() to analyze it, even without knowing the underlying distribution. Visualize results with tidy_combined_autoplot().

Try it in your next R project!

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

#R

image/png
image/png
image/png

stevensanderson, to stackoverflow
@stevensanderson@mstdn.social avatar

I was working on a problem today where I needed to pick out a department and a sub issue that were attached to each other as a single code in a comment.

I first went to use the traditional SUSTRING(comment_string, 1, 5) IN (my list of codes) but it was slow.

So off to work, I learned something new via and learned to make a sarge-able LIKE with what ever I want in the narrower results.

Nice to learn something new.

stevensanderson, to programming
@stevensanderson@mstdn.social avatar

Exciting news for data analysts! Try check_duplicate_rows() from TidyDensity in R to identify duplicate rows in datasets.

This new function simplifies data cleaning and enhances accuracy in analyses. Give it a go today!

#DataAnalysis #RStats #R #Programming #Coding #Data

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

image/png

JaclynSWong, to Sociology
@JaclynSWong@sciences.social avatar

Omg, did ppl know about the Levy Institute report on estimating the value of unpaid domestic labor??
https://www.bls.gov/cex/consumption/research-on-consumption-related-to-home-production-activities.htm
@familyresearch

stevensanderson,
@stevensanderson@mstdn.social avatar
hankg, to programming

I've been in a bit of a developer rut. It's not lack of projects I want to do and can work on. It's more like analysis paralysis on some, death by a thousand cuts aversion on others. So I piss away time on social media. I decided to try to get some dev momentum by picking up something I first tried back in 2020 the last time I got dev writers block: The Ray Tracing Challenge. Back then it was Kotlin and I only got as far as basic ray projection before wrestling with the Cucumber test system and "real work" derailed me. This time I'm going to be trying it in Dart and Flutter. My progress, or lack thereof, will be in this repository with a corresponding plain text developer log.

gitlab.com/HankG/raytracerchal…

stevensanderson,
@stevensanderson@mstdn.social avatar

@hankg This happens to me from time to time and I get discouraged, then all of a sudden I'll bust out all my issues on GitHub in like a day or two, then I'll be exhausted. Happened to me last week, killed 20+ issues and released an update then got sick and weekened ruined.

stevensanderson, to python
@stevensanderson@mstdn.social avatar

Feeling stuck with Excel for data analysis?

My new book which was co-authored by David Kun, Extending Excel with Python & R, shows you how to leverage the strengths of BOTH worlds!

Here's what you'll gain:
🧐 Advanced data manipulation & cleaning
💻 Powerful statistical analysis & modeling
📉 Eye-catching data visualizations
🌟 Seamless integration back to Excel

Get your copy today! https://packt.link/oTyZJ

#R

stevensanderson,
@stevensanderson@mstdn.social avatar

@newmanth we did the dev with desktop excel. I am though thinking abcouple years down the road to try and make this more robust and try 365 as well

stevensanderson,
@stevensanderson@mstdn.social avatar

@newmanth yeah that too, its amazing how many ideas you emget after you finish something lol

stevensanderson, to programming
@stevensanderson@mstdn.social avatar
stevensanderson, to random
@stevensanderson@mstdn.social avatar

Exciting news! 🚀 TidyDensity version 1.4.0 is here.

  • Quantile normalization to handle skewed data distributions
  • Duplicate row detection for improved data quality
  • Chi-square distribution parameter estimation made easy
  • Markov Chain Monte Carlo (MCMC) sampling for advanced analysis
  • AIC calculations for model selection

R

I will do tutorials of new functionality during the week.

Post: https://www.spsanderson.com/steveondata/posts/2024-04-29/

stevensanderson, to programming
@stevensanderson@mstdn.social avatar

I have published version 1.4.0 of my TidyDensity #R

I’ll share the updates all next week

stevensanderson, to random
@stevensanderson@mstdn.social avatar

Correct title: FL Business that Exploited Labor is being legally forced out, mad at DeSantis for doing biz dirty.

https://www.npr.org/2024/04/26/1242236604/florida-economy-immigration-businesses-workers-undocumented

Peg33, to random
@Peg33@mastodon.online avatar
stevensanderson,
@stevensanderson@mstdn.social avatar

@musictraveler @Peg33 finally it's said, what's good for the goose is good for the gander.

brodriguesco, to random
@brodriguesco@fosstodon.org avatar

What are some packages that take forever to compile?

stevensanderson,
@stevensanderson@mstdn.social avatar

@cedricr @brodriguesco nice! I have a 16 core laptop I’ll have to try this and see the difference

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