Skip to content

Instantly share code, notes, and snippets.

View dshkol's full-sized avatar

Dmitry Shkolnik dshkol

View GitHub Profile
library(tidyverse)
library(kerasformula)
library(textfeatures)
tweets <- read_csv("https://raw.githubusercontent.com/fivethirtyeight/russian-troll-tweets/master/IRAhandle_tweets_1.csv",
n_max = 25000) %>%
mutate(text = content)
features <- textfeatures(tweets, threads = 2)
@gadenbuie
gadenbuie / xaringan-decouple-code-plot.Rmd
Last active November 22, 2021 16:54
Decouple code and plots (or results) in xaringan slides
---
title: "Decouple Code and Output in xaringan slides"
subtitle: "Demo Slides for <a href='https://garrickadenbuie.com/blog/2018/08/14/decouple-code-and-output-in-xaringan-slides/'>Related Blog Post</a>"
author: "Garrick Aden-Buie"
date: "`r Sys.Date()`"
output:
xaringan::moon_reader:
lib_dir: libs
nature:
ratio: 16:9