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
Include

Only show posts containing:

Exclude

Hide posts containing:

Time range
-
Minimum likes
Replying to @malte_grosser
Ask and ye shall receive 😅 bookdown.org/IndrajeetPatil/… Thanks a lot for the suggestion! 🙌
5
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
10
84
7
371
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…
2
Replying to @Bishal_Bhardwaj
The tweets from the past will always be accessible. They will neither be removed nor changed in any way.
5
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
44
18
13
618
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
1
34
172
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
3
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
3
24
188
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
9
38
11
274
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
1
6
30
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
34
1
186
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.
3
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
2
8
1
44
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
1
9
46