This file contains hidden or 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(tidyverse) | |
| data <- tribble( | |
| ~id, ~rater1, ~rater2, ~rater3, ~rater4, ~rater5, | |
| 901,7,9,9,9,2, | |
| 902,9,9,9,9,9, | |
| 903,9,9,9,9,9, | |
| "age",21,39,38,33,21, | |
| "gender",1,2,2,2,2, | |
| "language",1,2,1,1,1 |
This file contains hidden or 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
| [<start>] -> [<choice> On GH?] | |
| [On GH?] -> No [<package>create_package()] | |
| [On GH?] -> Yes [<choice> Cloned?] | |
| [Cloned?] -> No [<package>create_from_github()] | |
| [create_package()] -> [<package> use_git()] | |
| [use_git()] -> [Edit DESCRIPTION] | |
| [Edit DESCRIPTION] -> [<package> use_mit_license()] | |
| [use_mit_license()] ->[<state> Write a function] | |
| [Write a function] -> [<package> use_r()] | |
| [Cloned?] -> Yes [Pull from repo] |
This file contains hidden or 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(sparklyr) | |
| Sys.setenv(PATH = "/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin") | |
| Sys.setenv(SPARK_HOME_VERSION = "2.3.0") | |
| # Run before starting a new session: pkill kubectl | |
| sc <- spark_connect( | |
| master = "k8s://http://10.1.1.1:8080", | |
| config = list( | |
| sparklyr.shell.master = "k8s://http://10.1.1.1:8080", |
This file contains hidden or 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
| # GCS Image - 18.04 LTS (don't use Minimal!!) | |
| # Dashboard: {IP ADDRESS}:8080/api/v1/namespaces/kube-system/services/https:kubernetes-dashboard:/proxy/#!/pod?namespace=default | |
| #!/bin/bash | |
| RSTUDIO="rstudio-server-1.1.463-amd64.deb" | |
| SPARK="2.3.0" | |
| HADOOP="2.7" | |
| SPARKLYR="0.9.2" |
This file contains hidden or 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(dbplyr, warn.conflicts = FALSE) | |
| library(dplyr, warn.conflicts = FALSE) | |
| library(purrr, warn.conflicts = FALSE) | |
| library(DBI, warn.conflicts = FALSE) | |
| library(rlang, warn.conflicts = FALSE) | |
| con <- DBI::dbConnect(RSQLite::SQLite(), path = ":dbname:") | |
| db_mtcars <- copy_to(con, mtcars) |
This file contains hidden or 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(dbplyr, warn.conflicts = FALSE) | |
| library(dplyr, warn.conflicts = FALSE) | |
| library(purrr, warn.conflicts = FALSE) | |
| library(DBI, warn.conflicts = FALSE) | |
| library(rlang, warn.conflicts = FALSE) | |
| con <- DBI::dbConnect(RSQLite::SQLite(), path = ":dbname:") | |
| db_mtcars <- copy_to(con, mtcars) |
This file contains hidden or 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(tidyverse, warn.conflicts = FALSE) | |
| df <- tribble( | |
| ~id, ~port, | |
| "a", "22,33", | |
| "a", "22,44", | |
| "b", "33, 434" | |
| ) | |
This file contains hidden or 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
| variables: | |
| cut: | |
| trans: corte | |
| desc: Calidad del corte | |
| values: | |
| Good: Bueno | |
| Very Good: Muy Bueno | |
| clarity: | |
| trans: claridad | |
| desc: Que tan claro es el diamante |
This file contains hidden or 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
| variables: | |
| manufacturer: | |
| trans: fabricante | |
| model: | |
| trans: modelo | |
| displ: | |
| trans: despl | |
| year: | |
| trans: anio | |
| cyl: |
This file contains hidden or 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(shinydashboard) | |
| library(shiny) | |
| library(dplyr) | |
| library(dbplyr) | |
| library(odbc) | |
| library(DBI) | |
| library(dbplot) | |
| library(ggplot2) | |
| library(waffle) | |
| library(DT) |
NewerOlder