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

🚀 Exciting news for R enthusiasts! My latest blog post shares techniques to rename factor levels in R, making categorical data more meaningful. From levels() to plyr and forcats, learn step by step with easy examples. Let's spark a conversation and elevate our R skills together!

#DataAnalysis #FactorLevels 🎉

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

#R #RStats #RProgramming #Coding

image/png
image/png

stevensanderson, to datascience
@stevensanderson@mstdn.social avatar

🚀 Elevate your data manipulation skills in R! Learn how to rename data frame columns with ease using base R functions like names(), colnames(), and setNames(). Clarity and consistency await – dive in and code like a pro! 💻 #RProgramming #DataScience #DataAnalysis #R #RStats #Coding

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

stevensanderson, to datascience
@stevensanderson@mstdn.social avatar

In base R, we can filter rows where a column is between two values using bracket notation or the subset() function along with logical operators like >=, <=, &, and !. The key is creating a logical test that checks if values are within our desired range.

For example, to filter rows where the column "value" is between 5 and 8

df[df$value >= 5 & df$value <= 8,]

Or with subset()

subset(df, value >= 5 & value <= 8)

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

#R #RStats #RProgramming #DataFilter #DataScience

image/png

stevensanderson, to datascience
@stevensanderson@mstdn.social avatar

Learn how to set a data frame column as the index for faster data access and streamlined operations.

In R, utilize the setDT() function from #datatable or column_to_rownames() from #tibble to seamlessly set your desired column as the index. Try it out with your datasets and experience the boost in productivity!

#DataAnalysis #RProgramming #Efficiency #DataScience #R #RStats 🚀📊

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

stevensanderson, to random
@stevensanderson@mstdn.social avatar

Data analysis often involves reshaping messy datasets. Fear not, R's data.table package has your back with the awesome melt() function!

Here's the magic:

  • data.table object: Your data you want to reshape.
  • id.vars: Columns that stay put (like city names).
  • measure.vars: Columns you want to "melt" (like temperature values).

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

#R #RStats #RProgramming #Coding #datatable

stevensanderson, to programming
@stevensanderson@mstdn.social avatar

The dcast function from R's data.table package provides a fast way to reshape data from long to wide format. It aggregates values like a pivot table in just one line. For example, to aggregate mtcars hp by cyl:

dcast(as.data.table(mtcars), cyl ~ ., value.var="hp", fun.aggregate=mean)

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

#R

stevensanderson, to datascience
@stevensanderson@mstdn.social avatar

Taming Your Data with Filtering in R

Feeling lost in your data jungle? Filtering is your machete!

Master data.tables:

  • Filter by conditions
  • Combine conditions
  • Filter by list values

Conquer data.frames:

  • Use logical operators
  • Subset with row indices

#R #RProgramming #RStats #DataScience #Learning #datatable #filtering

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

stevensanderson, to random
@stevensanderson@mstdn.social avatar

Unveiling hidden treasures: Exploring government data with R!

This code dives into a treasure trove of government data, making it more accessible for you. Here's how it works:

Fetching Data: It grabs data from a government website using R's httr2 package.

This is just a glimpse of what R can do! With its powerful tools, you can unlock valuable insights from various data sources.

#R

image/png

stevensanderson, to datascience
@stevensanderson@mstdn.social avatar

🚀 Explore data types in R with simple functions like typeof(), class(), and is.*(). Dive into coding adventures, unlock data's power, and discover endless possibilities! Try it out today! 💻📊

#R

Post: https://www.spsanderson.com/steveondata/posts/2023-02-22/

stevensanderson, to random
@stevensanderson@mstdn.social avatar

working on adding many more datasets to my healthyR.data #R #Package using #httr2

#R #RStats #RProgramming #CMS #healthcaredata

stevensanderson, to programming
@stevensanderson@mstdn.social avatar

Level up your data wrangling! Learn how to add index columns in R – both base & tidyverse Choose your weapon & customize! Ready to try? Create your own data frame & experiment! Share your creations & challenges!

#R

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

image/png

stevensanderson, to programming
@stevensanderson@mstdn.social avatar

Wrangling dates in R got you pulling your hair? ⏱️ Time travel to mastery with these 3 powerful tools:

Base R's seq.Date: Your daily/weekly/monthly hero.
lubridate's seq: Filter magic for specific weekdays. Analyze those Tuesdays!
timetk's tk_make_timeseries: Define complex sequences in a simple table. Easy time travel!

#R #RStats #RProgramming #Programming #DateSequence #TimeSeries #lubridate #timetk #baseR

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

image/png
image/png

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

Drowning in daily data? Conquer weekly analysis with R's strftime() magic! Extract ISO week numbers & group your data like a pro. Ready to level up? Explore "U" for Sunday starts & packages for more grouping power. Challenge: calc weekly averages, peak sales, etc. Share your data wrangling wins in the comments!

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

#R

image/png

stevensanderson, to datascience
@stevensanderson@mstdn.social avatar

Ever wondered what day a historical event fell on, or analyzed data based on weekdays?

Join the R time-bending party with lubridate! This magical package simplifies date & time manipulation, making day-of-week extraction a breeze. 🪄

P.S. Want the numerical day (1 for Monday)? Use as.numeric(wday(date)).

#RStats #lubridate #DataScience #R #rprogramming #dates #timeseries

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

image/png

stevensanderson, to datascience
@stevensanderson@mstdn.social avatar

R data mystery: is that column a date? ️‍♀️ Fear not! Unleash lubridate's date magic & healthyR.ts' time series power to unmask them! 🪄 Explore formats, validate time series, conquer your data! Ready? Test these tools, share your finds! Happy coding, clear dates await!

#RStats #DataScience #lubridate #healthyrts #R #RProgramming

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

image/png

stevensanderson, to random
@stevensanderson@mstdn.social avatar

Master date manipulation in R with two simple methods: 1) Use ifelse() to create an indicator column, and 2) Utilize subsetting to filter data based on date range. Essential for various data tasks. Try it out and enhance your R skills!

#R

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

image/png

stevensanderson, to datascience
@stevensanderson@mstdn.social avatar

Unleash Excel date power in R! Convert formats to proper dates effortlessly. With as.Date() & convertToDateTime(), transform data for smoother analysis. Dive into R, empower your data journey! Try it yourself & elevate your analysis game!

#DataScience #RProgramming #R #RStats #Excel

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

stevensanderson, to random
@stevensanderson@mstdn.social avatar

🚀 Dive into the world of data exploration with R! 📊 Uncover the earliest date lurking within your dataset using the power of R. With just a few lines of code, you can conquer this challenge and gain valuable insights into your data.

#RProgramming #DataExploration #LinkedInLearning #DataAnalytics #CodeWithR #TryItYourself #R #RStats #timeseries

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

stevensanderson, to datascience
@stevensanderson@mstdn.social avatar

🚀 Mastering time manipulation in R is crucial for data professionals, and today we're tackling a common task: subtracting hours from time objects! 💡

In this engaging post, we explored two powerful methods: using base R functions and the popular lubridate package. With base R, we can perform basic arithmetic operations on time objects, while lubridate simplifies complex date-time calculations.

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

#R #RStats #time #DataScience #RProgramming #TimeManipulation

image/png

stevensanderson, to statistics
@stevensanderson@mstdn.social avatar

🚀 Dive into the world of statistical magic with TidyDensity's bootstrap_stat_plot()! 📊✨ Uncover the nuances of your data using R with this powerful function. 🤓

Example 1 explores central tendency, visualizing bootstrapped means, mins, maxes, and standard deviations. Example 2 customizes the plot for a cleaner look. 💡

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

#RProgramming #DataAnalysis #TidyDensity #Statistics #DataScience #R #RStats

Give it a try, and let the data tell its story! 💬👩‍💻👨‍💻 #HappyCoding

image/png
image/png

stevensanderson, to datascience
@stevensanderson@mstdn.social avatar

🚀 Exciting News in tidyAML!

Dive into the latest tidyAML release! 🌟 The spotlight is on the new .drop_na parameter, enhancing the functionality of fast_classification() and fast_regression() functions.

⚙️ Here's a quick look at the key arguments:

  • .data
  • .rec_obj
  • .parsnip_fns
  • .parsnip_eng
  • .split_type & .split_args
  • .drop_na: The star of the show!

#R

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

image/png

RConsortium, to random
@RConsortium@fosstodon.org avatar

🚀 Actuaries, Don't Miss Out! Webinar Series Continues Tomorrow! 🌟

Join us for the second webinar in our series with Georgios Bakoloukas.

🔹 Putting R into Production
🗓️ Jan 17, 2024

Learn to integrate R programming into your actuarial toolkit!

🔗https://www.r-consortium.org/r-insurance-series-for-everyone-in-insurance-or-actuarial-science

#ActuarialScience #RProgramming #ProfessionalGrowth

RConsortium, to datascience
@RConsortium@fosstodon.org avatar

🌟 Join Pfizer's exclusive webinar covering their journey from SAS to R with Natalia Andriychuk from Pfizer. Discover how they're shaping the future with community-driven development.

🚀 Feb 8, 2024, 3 PM ET.

Don't miss out! #DataScience #RProgramming #PfizerWebinar

https://www.r-consortium.org/blog/2024/01/12/from-vision-to-action-pfizers-r-adoption-odyssey-join-the-webinar-on-february-8-2024

  • 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