
R function a day keeps the madness away 🧘♀️ — If you’re a new follower, check out older posts as well 😊 — From 24.01.2021 to 24.01.2022 — by @patilindrajeets
Joined January 2021
- Tweets559
- Following0
- Followers19.1K
- Likes1.1K
This function no longer resides in {parameters} 📦.
It can now be found in {datawizard} 📦:
easystats.github.io/datawiza…
This function no longer resides in {parameters} 📦.
It can now be found in {performance} 📦:
easystats.github.io/performa…
Replying to @malte_grosser
Ask and ye shall receive 😅
bookdown.org/IndrajeetPatil/…
Thanks a lot for the suggestion! 🙌
As requested by some of you, there is now a book of these posts! 📗
bookdown.org/IndrajeetPatil/…
Makes it easy to-
📑 read
🔍 search
🔗 share
etc.
It ain't pretty, but that's the best I'd do in a day 😅
PRs welcome if you notice that something is amiss 🙏
#rstats #DataScience
Today concludes this 1-year hobby project.
There won’t be new posts, so feel free to unfollow, but do keep revisiting! 🙃
With > 22K followers in 365 posts, I guess you enjoyed reading them as I much as I’d preparing them. 😅
Best luck with your jouRneys! 🤞
@patilindrajeets
Replying to @malte_grosser
Good idea!
Might work on that soon, but until then this timeline widget should come in handy 🧵
publish.twitter.com/?query=h…
Replying to @Bishal_Bhardwaj
The tweets from the past will always be accessible. They will neither be removed nor changed in any way.
Today concludes this 1-year hobby project.
There won’t be new posts, so feel free to unfollow, but do keep revisiting! 🙃
With > 22K followers in 365 posts, I guess you enjoyed reading them as I much as I’d preparing them. 😅
Best luck with your jouRneys! 🤞
@patilindrajeets
If we need to bind multiple dataframes by rows, we may first wish to check if this can be done successfully.
The {compare_df_cols} function from {janitor} 📦 provides a summary of data types to check this! 🍎🍏
sfirke.github.io/janitor/ref…
#rstats #DataScience
Replying to @JonGretar
In real use cases, this routine will actually be used to access a variable - specified by the user - from a data frame.
Note that now `data$x` won’t work because we don’t know a priori what `x` is going to be.
Yes, I have shared it in the past 👇
But, AFAIK, that operator is used for side effects. So you will be able to print that column but won’t be able to assign it to an object. I think.
Although a number of functions tend to have a {data} argument, some don’t. For such functions, the pipe operator (%>%) from {magrittr} 📦 won’t work.
In such contexts, one can use the exposition pipe operator (%$%) 👏
magrittr.tidyverse.org/refer…
#rstats #DataScience
While working in a piped workflow, if you need to extract a single column, the syntax to do so can be a bit cumbersome.
The {pull} function from {dplyr} 📦 provides a more readable syntax to this end! 💄
dplyr.tidyverse.org/referenc…
#rstats #DataScience
Visualizing data along an Archimedean spiral can efficiently reveal periodic patterns in time series data.
The {spiral_*} function family from {spiralize} 📦 draws such spiral plots flexibly! 🌀
jokergoo.github.io/spiralize…
#rstats #DataScience
Serialization changes objects to a byte stream that can be saved to a binary file, while deserializing does the reverse.
The {q*} function family from {qs} 📦 provides a performant way to serialize or deserialize any R object! ⚡️
rdrr.io/cran/qs/man/
#rstats #DataScience
Sometimes you may wish to include some patterns or images in plots for enhanced storytelling.
The {image*} or {pattern*} function family from {patternplot} 📦 provides a way to do so! ⚜️
rdrr.io/cran/patternplot/man…
#rstats #DataScience
Replying to @Fischuu
None at all. In fact, AFAIK, the implementation of this data type in {reticulate} is based on names lists.
Dictionary just provides a familiar name for bilingual users to a data structure that is not native to R but can be easily implemented.
Python dictionary is an unordered data type with key-value pairs that allows accessing values, not by indexing, but via unique keys.
The {py_dict} function from {reticulate} 📦 gives you access to this data type in R! 📖
rstudio.github.io/reticulate…
#rstats #DataScience
Sometimes, especially in the context of statistical modeling, there might be infinite or NaN's present in outputs that we may wish to replace with NAs.
The {zap_inf} helper function from {sjmisc} 📦 does exactly this! ♾
strengejacke.github.io/sjmis…
#rstats #DataScience









