I ❤️ web scraping so #rvest 🕸️ is one of my favourite #rstats packages. If you use rvest you *have* to know about Selector Gadget - a tool that takes away most of the hard work by allowing you to click on the bits you need and then copy the selectors into R! (see replies 4 info!)
A lesser-known #dplyr 🔧 function: lag(). Use lag() to get the previous value in a vector. The equivalent for getting the next value is lead(). I've not used them often, but when I have they've saved me from writing horrible workarounds! #rstats#tidyverse
You can use the %<>% operator (in the magrittr package) to update an object with a pipe.
a %<>% f %>% g
is the same as
a <- a %>% f %>% g
https://t.co/flxJjXU7RA #rstats
Text classification with a small dataset? TF Hub to the rescue!
Learn how to use TF Hub’s pre-trained word embeddings in this tutorial by @SRobTweets ↓ https://t.co/7ecjca9VVL