Skip to content

Instantly share code, notes, and snippets.

View djhurio's full-sized avatar

Mārtiņš Liberts djhurio

View GitHub Profile
# n: Nodarbināto skaits uzņēmumā
# v: Vietējo vienību skaits uzņēmumā
# n <- 5
# v <- 3
rm(list = ls())
gc()
gen.all.matrix <- function(n, v) {
@djhurio
djhurio / code.R
Created December 6, 2020 19:09
Deaths by week
# Deaths by week
options("max.print" = 1e4)
library(eurostat)
library(data.table)
library(ggplot2)
library(ISOcodes)
cntry <- as.data.table(ISO_3166_1)
@djhurio
djhurio / piemers
Created March 29, 2021 10:32
Piemērs datu importam no Oficiālās statistikas portāla, izmantojot API un R pakotni 'pxweb'
# Piemērs CSP datu importam ar pxweb
# Vairāk lasīt:
# https://htmlpreview.github.io/?https://github.com/rOpenGov/pxweb/blob/test/vignettes/pxweb.html
library(pxweb)
# API URL
px_url <- "https://data.stat.gov.lv/api/v1/lv/OSP_PUB/START/VEK/IK/IKP/IKP020"
# Metadati
https://github.com/valinet/ExplorerPatcher
https://www.autohotkey.com/
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
; #Warn ; Enable warnings to assist with detecting common errors.
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
^!Insert::Send {Media_Play_Pause}