R: ISO codes and country names

install.packages(‘maps’) iso = maps::iso3166 > str(iso) 'data.frame': 269 obs. of 5 variables: $ a2 : chr "AW" ... $ a3 : chr "ABW" ... $ ISOname : chr "Aruba" .. $ mapname : chr "Aruba" ... $ sovereignty: chr "Netherlands" ...

Continue reading

These commands (after the first one) work in the ed editor. ed editor is used in the RStudio server shell. sudo crontab -e #opens crontab file in chosen editor a #add to file 0,30 * * * * Rscript /home/user/folder/script.R #command to add . #finished editing ,p #print file content to check w #save changes Q #quit In this example the script will run every 0 hours, 30 minutes, see Ubuntu: How do I set up a CRON job for other options.

Continue reading

https://gist.github.com/riinuots/25817167cfd397cacecdf6f38b473392 <img src="https://riinudata.files.wordpress.com/2016/04/rplot.png" alt="Rplot" height="267" class="alignnone size-full wp-image-302" width="999" />

Continue reading

By default, LaTex tables are very tight: \usepackage{booktabs} \begin{table}[] \centering \caption{My caption} \label{my-label} \begin{tabular}{@{}lll@{}} \toprule Rows & Column 1 & Column 2 \\ \midrule Row 1 & 1234 & 2345 \\ Row 2 & 3456 & 4567 \\ Row 3 & 5678 & 6789 \\ Row 4 & 7890 & 8901 \\ Row 5 & 9012 & 10000 \\ \bottomrule \end{tabular} \end{table} <img src="https://riinudata.files.wordpress.com/2016/04/screen-shot-2016-04-11-at-11-28-54.png" alt="Screen Shot 2016-04-11 at 11.28.54" height="260" class="alignnone size-full wp-image-278" width="319" /> Adding this to the document preamble will add space between the rows:

Continue reading

Author's picture

Riinu Ots

if it aint broke, you’re outdated

Data Manager

Edinburgh, UK