#!/usr/bin/env Rscript
@RandVegan
Followers
1K
Following
8K
Media
260
Statuses
8K
Vegan. Learning R, Bash, Vim, SCSS and now apparently basic lua
Houston, TX
Joined November 2012
Probably fitting that my last post is on my Twitter anniversary. Please follow me on blue sky @randvegan.baby.social
0
0
4
Emergency #rstats broadcast for those that use ggplot with power point.
It took me SEVEN years to figure out that you can save a ggplot as a vectorized .svg file ggsave("file.svg"). The svg file can be opened on powerpoint and it will be completely vectorized, even text are still recognized as text boxes! No more recreating plots on illustrator!!!!!
7
97
820
Four year vegan anniversary today. Love this trend and encourage everyone to move to a plant based diet. My biggest regret is that I didn’t go vegan sooner. #vegan
39
57
609
This is my annual reminder that read_csv() is vectorized so you don't need to use map() or lapply() to read in a list of csv files. Simply use list.files() to create a list of paths to your csv and from there pass it to readr's read_csv(). #rstats.
11
48
371
@lucydacus Progressives attacking progressives -- fantastic way for us to accumulate power and effect change.
182
4
324
@DeeLaSheeArt What’s your solution to anti social behavior. These criticisms would be interesting if you had a solution to stopping this? Or do you want me to go to your job and just cuss you out for doing it with consequence?.
16
2
277
@t_NYC Can we just skip directly to republicans? . Can we for once direct at our Grief at the party that overwhelming stops progress? . I’m so tired of this both sides crap.
93
6
245
the help me tremendously in my learning journey. Realizing we need a blog equivalent to categorize and index all the blog posts over the years as there are so many hidden gems. #RStats.
3
38
206
@byersblake @urbanistvc that isn't true. the MTA budget isn't managed by the city or the department but the state which raided its funding for purposes other than transit.
2
1
197
The df %>% .group_by() %>%.neat() %>%.mutate(new_col=map(var,fns)) pattern is so incredibly powerful. It honestly should be required reading for #RStats learners.
12
18
187
@peytonyager @MansfieldPDTX @FOX4 Thanks for covering what gun violence and culture of fear is doing to our communities.
1
3
131
Only because I'm on a #rstats cheat sheets kick, did you know the labelled package has its own cheat sheet?. This is a great package to help document your dataset so that everyone can understand what your data holds! You can actually put a column.
2
12
129
Why does base R feel like one or these secret bars where you need to go into a phone booth to get inside and see all the cool stuff?. Such a neat trick below!.
3
10
134
Since we are on purrr kick at the moment, another less known but also incredibly useful in #rstats is the purrr::partial() function. While useful on its own, where it really shines is in combination of map()+partial(). 1/n Let's look at an applied example!.
@RandVegan My favorite function is purrr::partial().
3
9
129
@dcpetterson if leftest don't turnout to vote then frankly we need to look for a different coalition partner, even if its for policy positions we don't like. voting is about political power, its not about being right.
30
3
113
#rstats focuses a lot on data science applications but actually base R has some really great utility / automation functions!. The below post reminded me of my favorite functions, base::list.files(). You can see how flexible the arguments are which can help with copying, moving or
Those times when a few lines of python turns hours of copying and pasting files into like 3 seconds. 10/10 would recommend
6
11
120
@prchovanec @DrewPavlou I refuse to listen to “what we could have spent this money on” crowd who refused to advocate for spending money on things like need infrastructure, social health, green energy, etc.
41
1
99
When I started learning #rstats two years ago, I read a post declaring the beepr package the most helpful package and I was confused. Now that I'm running scripts and machine learning models all day, the beepr package is irreplaceable. Give it a try!.
0
16
104
@paulkrugman The messages needs to be that we have stabilized but need to do more for young adults and families. Not recognizing or acknowledging the discontent on housing costs is a huge miss. Real opportunity to generate support if he run policies to encourage affordable housing.
9
6
89
Have you ever needed to incorporate color to the title, subtitle, legend or labels in your ggplot? #rstats. Then explore the new marquee package -- it absolutely shines in this area.
2
14
90
@igorbobic Yet they remain republicans. There could causas with democrats or be independents but instead they remain republicans.
8
5
83
@SteveKornacki Until pollsters take accountability for incredible polling misses in 2016 election, 2020 and 2022 mid terms — this and any poll is just laughable. There’s been no reconciliation / no bridging into why these projections are significantly different that reality. They are better.
3
9
63
@DrOBrienMD Gas will go down because it’s already trending down and opec will open their supply next year.
9
2
89
lots of discussion on git on my timeline. If you're an #rstats user two amazing resources to built up your confidence is of course @JennyBryan .and more recently @brodriguesco 's book The `gitcreds` package willl also help too.
1
19
86
@abesilbe the unions stab democrats in the back and failed us. you just need to find a minority group and beat up on them apparently to win elections.
9
0
77
Although I am a big fan of forever grateful for @JennyBryan fantastic I have to say I am blown away with @brodriguesco chapter on git. I finally have the confidence with git command line. Thank you @brodriguesco !.
1
14
79
Does anyone in #houston have experience with petitions?. The major's actions on vision zero are simply not acceptable. If you're interested in starting a recall petition, please let me know. Per the below website, we need 61,000 signatures.
20
12
70
my output is 10X my team due to R and the ecosystem. hands down if your a business analyst or an FP&A organization and you want to set yourself apart there is no way other language that I could recommend more. Not even close.
if you're a data 'anything' and wonder "why is R still a thing?" maybe this answer I wrote on Reddit will help #RStats #pydata #datascience
1
5
71
While they are now harder to find, discovering hidden #rstats treats is always fun. @TimTeaFan tip below is a shiny gold treat!. With the new rstudio release, your environment can always display the .Last.Value value. Simply go to Global Settings> General > Advanced.
When writing #RStats scripts I often take a look at the outcome first, before assigning it to an object. This is fine, as long the function calls are inexpensive. If they are, base R’s `.Last.value` comes in handy. It has saved me more than once from re-running expensive code.
4
5
70
Sometimes, I peek behind the scenes of the more "professional" R packages and I often find the use of {vctrs} library. Never really understood its use or potential under I saw @dvaughan32 blog post which details its use cases and advantages!.
2
9
68
Today's #rstats post is all about snippets! These are code completion shortcuts that are easy to learn, use and will save you a ton of time and effort for minimal cost -- so lets explore how to use snippets in Rstudio 🧵.
1
14
65
I am finally transition from the beloved `%>%` pipe to the new '|>' in #Rstats. First impression is how beautiful the new base R pipe looks! . For the most part, the transition is pretty smooth.
4
4
63
I'm doing a #rstats "translation" of the popular "how to automate the boring stuff with python". the book's emphasis is on shell based execution. Is that still relevant today? any recommendations on what to emphasis to deploy code? (eg. remote computers).
6
2
63
When learning map or purrr any blogs or concepts that really resonated with you?. Also what is your favorite purrr function that isn't map?. #RStats.
18
10
64
honestly learning #rstats has been one of the best decisions of my career. My career success has accelerated and my productivity so much higher. Highly encourage everyone to learn -- the community is amazing.
2
4
60
@DanCrenshawTX @DanCrenshawTX you represent me in my district. Can you instead talk about your voting positions and what work you are doing to improve our communities rather than engage in culture wars with a university that isn’t in our state?.
33
0
56
@vanillaopinions Just republicans made a bogey man out of antifa, Dems need to punch down on these leftist.
0
1
58
@Halcyon270 @nytimes Cancel your New York Times subscription. I did two weeks ago. Our media is broken. Support local media.
5
6
40
@Codie_Sanchez @elonmusk @BillAckman Disappointing that you believe the proganda and use your platform to spread misinformation. This is a complex issue that isn’t unique to Biden and incurred under all past presidents including trump. Nations fall because they are divide themselves — exactly what Texas is doing.
58
0
47
I can’t recommend enough @rappa753 guide to gt() tables. Previously I was intimidated by gt() but I’m now using it in all of my reports. I find it as critical to use as ggplot2() for those using R for business writing .
2
7
56
One of my favorite #rstats programmers @nrennie35 published a blog post on how stop repeating yourselves by sitting up template files and introducing to me the {linter} and {styler} packages. Also, I'm super impressed that she started to learn rust too!.
2
8
56
@AlecStapp Now do their wage growth as a % or the rent. He has an overall point that costs went up and we pointed to things like gdp and the stock market rather than understanding that housing prices 3x and is the biggest driver of inflation and one that is actually controllable.
0
2
51
I just came across @grrrck blogpost / package {epoxy} which combines the best of the {glue} package but also allows:.1) inline markup code (from cli's inline markup).2) autocomplete.3) is vectorized (*). amongst other benefits 🧵.
1
11
51
@AnaKasparian I respect you a lot @AnaKasparian and peace should absolutely be prioritized. But helping ukraine is absolutely in our interests and we should be supporting and encouraging this. Call out European Allies for sure. Ask hard questions about how Will bring peace and out and end to.
5
0
46
100% agreed!.@Fatih_Tuzen has a nice blog post introducing pivot_longer() and pivot_wider() for those that are curious.
dplyr's pivot_wider() and pivot_longer() are some of the best APIs I've seen for quick data reshaping.
0
10
52
My toxic trait is reminding people you don’t need to use map() or lapply() to read multiple csv because read_csv() vectorizes over files when supplied with list.files #tidyverse #RStats.
1
5
48
@Kaylan_TX I'm half tempted to troll you @Kaylan_TX just so I can get a free background check as you explore every post and social media profile for dirt on my past 😆😆.
4
0
39
Another base R post, this time @TimTeaFan posts an incredible time saving tip in how `.Last.value` will assign an unassigned script *without** rerunning the analysis. This will save you hours!. 100% recommend you to read and follow Tim's blog.
When writing #RStats scripts I often take a look at the outcome first, before assigning it to an object. This is fine, as long the function calls are inexpensive. If they are, base R’s `.Last.value` comes in handy. It has saved me more than once from re-running expensive code.
1
8
47
@TinaSfon He should focusing housing reform and making housing affordable again. That’s how you protect against trump.
3
1
46
Today I learned form @_Riinu_ about the %$% function in R that works with older base R functions to pull the variables from your data object eg. `diamonds %$%. cor(price,carat)`. Learn more from her book R for health sciences.
1
7
50
@rlmcelreath You can do it @quarto_pub but also rmarkdown too. In quarto just use . ::: {.panel-tabset}. ## tab 1.Content.## tab 2.Content. :::.
0
0
46
I just came across the wonderful pointblank library in R! Easily perform data validation, unit testing, and visualize your results in the awesome @gt_package table!. @Cghlewis in case you weren't already aware of it.#rstats.
3
10
44
@Fritschner And now when you read about the win they literally say it’s meaningless and doesn’t indicate anything.
0
0
37
The monochromeR package in R is @cararthompson holiday gift to the world. Has saved me hours in my visualization! Great blog on how to use it too. I think it’s a must for reports.
1
10
45
wake up babe, new #rstats styler format just dropped.
@RandVegan leading comma, McMahon interested .leading pipe operator, McMahon excited .left arrow assignment to finish, McMahon tipping out of chair
4
3
42
I love @littmath riddles because I get practice simulation in R and the answers always surprise me. My solution in the gist link (not efficient but its easy to follow the logic) and my results are below.
You have 10000 coins. 9999 of them are fair; one is rigged so that it always lands on heads. You choose a coin at random and flip it 10 times; it’s heads all ten times. The coin is probably.
3
3
41