This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
library(aws.polly) | |
jeff <- synthesize("Hello, I am Jeff Leek. Take a look at this chart on my left.", "Joey") | |
plot(jeff@left, type = "l") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
library(dplyr) | |
x <- mtcars %>% | |
group_by(cyl) %>% | |
sample_frac(replace = TRUE) | |
mtcars %>% | |
group_by(cyl) %>% | |
summarise(sum = n()) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
library(gh) | |
library(jsonlite) | |
library(purrr) | |
library(tibble) | |
library(dplyr) | |
library(shiny) | |
library(plotly) | |
# You can create a GitHub PAT here: https://github.com/settings/tokens | |
Sys.setenv(GITHUB_PAT = "") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
library(shiny) | |
library(dplyr) | |
delete_last_row <- function(df){ | |
df[1:(nrow(df) - 1),] | |
} | |
ui <- basicPage( | |
plotOutput("plot1", click = "plot_click", dblclick = "plot_dblclick") | |
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
library(dplyr) | |
mtcars %>% | |
group_by(cyl) %>% | |
summarize(mean(disp)) | |
# # A tibble: 3 × 2 | |
# cyl `mean(disp)` | |
# <dbl> <dbl> | |
# 1 4 105.1364 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
library(dplyr) | |
mtcars %>% | |
group_by(cyl) %>% | |
summarize(mean(disp)) | |
# # A tibble: 3 × 2 | |
# cyl `mean(disp)` | |
# <dbl> <dbl> | |
# 1 4 105.1364 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
library(dplyr) | |
mtcars %>% | |
group_by(cyl) %>% | |
summarize(mean(disp)) | |
# # A tibble: 3 × 2 | |
# cyl `mean(disp)` | |
# <dbl> <dbl> | |
# 1 4 105.1364 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
library(dplyr) | |
mtcars %>% | |
group_by(cyl) %>% | |
summarize(mean(disp)) | |
# # A tibble: 3 × 2 | |
# cyl `mean(disp)` | |
# <dbl> <dbl> | |
# 1 4 105.1364 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
library(dplyr) | |
mtcars %>% | |
group_by(cyl) %>% | |
summarize(mean(disp)) | |
# # A tibble: 3 × 2 | |
# cyl `mean(disp)` | |
# <dbl> <dbl> | |
# 1 4 105.1364 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
library(dplyr) | |
mtcars %>% | |
group_by(cyl) %>% | |
summarize(mean(disp)) | |
# # A tibble: 3 × 2 | |
# cyl `mean(disp)` | |
# <dbl> <dbl> | |
# 1 4 105.1364 |