Category Archives: Uncategorized
Over the last few weeks I was trying to optimise my workflow using markdow in combination with knitr and pandoc. Knitr is a grea new package by Yihui, expanding R’s capabilities for reproducible research. I will illustrate my work flow … Continue reading
Working with date and time in R is sometimes tricky. Today I gave lubridate a try and was surprised on how easy it can be. Lubridate is a available on git and on CRAN. There is also a good introduction … Continue reading
To check which ports are open on a server To check on the other hand which ports a server is listening to (before the firewall) run on the server where -t (tcp) -u (udp) -l (show listening sockets only) -p … Continue reading
Lets say I have values in a range from 0-1 and I want to rescale them to a range of 1 to 25. Generally speaking this can be resolved by: n.min + (x – o.min) * (n.max – n.min)/(o.max – … Continue reading
Sometimes I do not want to unzip files before reading them to R. There is a nice way of reading zipped file (via a tmp dir) into R. Where the file test.csv is actually located in the: ~/files/myzip.zip/test.csv.
A table and all its dependencies in PostGIS can be deleted with:
With ggplot2 there is a possibility to create divide bars of a histogram into different categories: