Skip to content

Instantly share code, notes, and snippets.

Robin Cura RCura

Block or report user

Report or block RCura

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
RCura / encadre_latex.tex
Created May 31, 2019
View encadre_latex.tex
% ###### CREATION D'ENCADRES ###### %
% Encadré pris dans la thèse de Seb Rey
\newtcbtheorem[number within=chapter]{encadre}{Encadré}{
outer arc=0pt,
RCura / sector-ize.R
Created Oct 3, 2018
sector-ize a circle
View sector-ize.R
# Create the base circle polygon
circle <- st_geometry(st_point(c(1E6,1E6))) %>%
st_sfc(crs = 2154) %>%
st_buffer(dist = 1000)
# Create regularly spaced points around polygon
perim_points <- circle %>%
st_cast("LINESTRING") %>%
RCura / testD3.html
Created Jul 26, 2018
Parcoords : rotate axis title + wrap long titles
View testD3.html
<!DOCTYPE html>
<meta charset="utf-8">
svg {
font: 12px sans-serif;
.background path {
fill: none;
RCura / exemple_histog_postgresql.R
Last active Jun 12, 2018
Connexion à PostgreSQL + histogramme avec ggplot2
View exemple_histog_postgresql.R
# Connexion à la BDD PostgreSQL
library(DBI) # Package générique pour la connexion à des BDD
library("RPostgreSQL") # Package apportant les drivers pour PostgreSQL
driver <- dbDriver("PostgreSQL")
con <- DBI::dbConnect(drv = driver,
host = "ip de la BDD",
port = "port de la BDD",
RCura /
Created Apr 28, 2018 — forked from emeeks/

The earlier example of this brushable radial chart led to some feedback to make the filtering better. I introduced a #circularBrush.filter(array,accessor) that takes an array of data and and accessor for that data and returns to you the data that falls into the area of the brush. The functionality of this chart is no different than the other, but if you take a look at the code, it's much more efficient.

View julien.R
raw_df <- read_delim("5262_FH CAPE TOWN_3.TXT",
delim = ",",
col_names = FALSE)
code3 <- raw_df %>%
filter(X1 == 3) %>%
mutate(ID = 1:nrow(.)) %>%
View gist:eb6aeeac80a847f41b43133375b78526
<!-- $theme: gaia -->
<!-- template: gaia -->
# Histoire de la Cartographie
## ==Nouvelles sources et==<br/> représentations graphiques associées
### Robin Cura
#### Doctorant, UMR Géographie-cités
RCura / DMBS_benchmarks.png
Last active Feb 3, 2018
Comparing the performances of various DBMS using dplyr for large-ish data
cd /home/robin/gama17git/headless
# Cluster got 24 cores
# We launch each simulation on 2 cores, so, 8 simulations
# Each with 4Go of RAM (64 Go Total)
# Server
RCura / analyse_SIRENE.R
Last active Apr 1, 2017
Exemple simple d'analyse de la base SIRENE
View analyse_SIRENE.R
library(tidyverse) # tidyverse charge les packages les plus utiles issus de la logique "tidy",
# c'est-à-dire : dplyr, tidyr, readr et ggplot2 (entre autre)
# Si tidyverse n'est pas disponible, décommenter les ligne suivante
# library(dplyr)
# library(tidyr)
# library(readr)
# library(ggplot2)
You can’t perform that action at this time.