R Function A Day

559 posts

R Function A Day banner
R Function A Day

R Function A Day

@rfunctionaday

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

参加日 Ocak 2021
0 フォロー中19.4K フォロワー
固定されたツイート
R Function A Day
R Function A Day@rfunctionaday·
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
R Function A Day@rfunctionaday

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

English
10
84
372
0
R Function A Day
R Function A Day@rfunctionaday·
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
English
44
20
625
0
R Function A Day
R Function A Day@rfunctionaday·
@JonGretar @kiwiSteveTaylor @rstats4ds 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.
R Function A Day tweet media
English
0
0
0
0
R Function A Day
R Function A Day@rfunctionaday·
@ThomVolker 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.
R Function A Day@rfunctionaday

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/reference/expo… #rstats #DataScience

English
0
0
3
0
R Function A Day
R Function A Day@rfunctionaday·
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
R Function A Day tweet media
English
1
6
33
0
R Function A Day
R Function A Day@rfunctionaday·
@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.
English
0
0
4
0