Skip to content

Instantly share code, notes, and snippets.

@juba
juba / ecoles_inge.csv
Created October 2, 2020 14:16
ecoles_inge.csv
longitude (X) latitude (Y)
1.4181709 43.5986207
-1.63327 48.1183
2.13457 48.6965
2.07208 49.0393
2.20355 48.7138
6.1553804 45.9194127
3.87893 43.6463
6.21681 49.1011
2.35259 48.8379
library(quanteda)
library(rainette)
library(scatterD3)
library(ggplot2)
## Classification sur segments
corpus <- corpus_subset(data_corpus_inaugural, Year > 1970)
corpus <- split_segments(corpus)
dtm <- dfm(corpus, remove = stopwords("en"), tolower = TRUE, remove_punct = TRUE)
## Generate unique id for this table
tab_id <- paste0("mytab_", session$token)
output$table <- DT::renderDT({
## Enable stateSave and configure callbacks to save and restore state
## to/from sessionStorage
options <- list(
stateSave = TRUE,
library(tidyverse)
library(questionr)
## On recrée le tableau d'exemple
df <- tibble(
producteur = c("Bénévole",
"Rémunérée",
"Rémunérée, Bénévole",
"Bénévole, Rémunérée",
"Rémunérée")
#Sys.setenv(DEBUGME = "crrri")
#library(debugme)
library(promises)
library(crrri)
library(purrr)
library(dplyr)
library(progress)
@juba
juba / tris_a_plat.Rmd
Created September 19, 2017 12:26
Tris à plat Rmarkdown
---
title: "test"
date: "19 septembre 2017"
---
```{r setup, include=FALSE}
knitr::opts_chunk$set(echo = TRUE)
library(knitr)
library(questionr)
@juba
juba / Readme.md
Last active November 21, 2016 21:00 — forked from timelyportfolio/Readme.md
trelliscopejs and scatterD3

Keybase proof

I hereby claim:

  • I am juba on github.
  • I am juba (https://keybase.io/juba) on keybase.
  • I have a public key ASDAzg5CXE1U1vvPwsG0XS8_MsMPzhAsq3I6TNY4LI2I1Qo

To claim this, I am signing this object:

@juba
juba / .block
Last active October 8, 2016 21:45 — forked from mbostock/.block
Pan & Zoom Axes
license: gpl-3.0
library(questionr)
library(ggplot2)
data(hdv2003)
ggplot(data=hdv2003, aes(y=age, x=sexe, fill=hard.rock)) +
geom_boxplot(position=position_dodge(width=2/3)) +
geom_point(stat="summary", fun.y=mean, shape=21, position=position_dodge(width=2/3))