View demo.R
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
## Download some shapefiles | |
download.file( | |
'https://biogeo.ucdavis.edu/data/diva/adm/HUN_adm.zip', | |
'Hungary_shapefile.zip') | |
unzip('Hungary_shapefile.zip') | |
## Look around what we have | |
library(rgdal) | |
ogrInfo('.') |
View exercise.R
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
## load data | |
df <- read.csv('http://bit.ly/CEU-R-numbers') | |
## analyze the association between x and y | |
summary(df) | |
cor(df) | |
## .. | |
## visualize the association between x and y | |
plot(df) |
View nemet.R
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(googlesheets) | |
library(logger) | |
library(crayon) | |
suppressPackageStartupMessages(library(data.table)) | |
logpath <- '/tmp' | |
logpath <- getwd() | |
logfile <- file.path(logpath, paste0(as.integer(Sys.time()), '.log')) | |
log_appender(appender_file(logfile)) | |
log_threshold(TRACE) |
View create-local-MRAN-snapshot.R
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
#!/usr/bin/env r | |
library(miniCRAN) | |
library(data.table) | |
library(pander) | |
library(logger) | |
library(magrittr) | |
library(docopt) | |
## ############################################################################# |
View matek.R
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
## TODO R package | |
## TODO internation via yaml that also provides the list of languages for the UI | |
## TODO cli --ui hu --control en --number 1:20 ... | |
library(logger) | |
library(crayon) | |
library(reticulate) | |
num2words <- import('num2words') | |
## rich-iannone/UnidecodeR |
View szeged-2017-workshop.R
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
## intro slides: http://bit.ly/r-intro-slide | |
## basic operations | |
1 + 3 | |
3*2 | |
3^2 | |
## constants | |
pi | |
"pi" |
View iris demo.Rmd
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
--- | |
title: "Iris teszt elemzés" | |
author: "Gergely" | |
date: "`r Sys.time()`" | |
output: html_document | |
--- | |
Hello, markdown! Ez egy egyszerű szöveges dokumentum, | |
a szöveget a markdown jelölőnyelv segítségével tudunk formázni. |
View BCE-MDDA-2018.R
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
## ############################################################################# | |
## PCA demo on image processing | |
## ############################################################################# | |
download.file('http://bit.ly/nasa-image-pca', 'image.jpg') # mode = »bw« | |
library(jpeg) | |
img <- readJPEG('image.jpg') | |
str(img) |
View print-tracked-tasks.py
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
#!/usr/bin/env python | |
import dbus, dbus.exceptions | |
import sys | |
import re | |
try: | |
bus = dbus.SessionBus() | |
timetracker = bus.get_object('org.gnome.Shell', '/timepp/zagortenay333/TimeTracker') | |
except dbus.exceptions.DBusException as e: |
View Crunch-2018-R-workshop.R
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
## ############################################################################# | |
## intro slides: http://bit.ly/CRUNCH-R-2018 | |
## ############################################################################# | |
## intro to R | |
## basic operations | |
1 + 3 | |
3 * 2 |
NewerOlder