Skip to content

Instantly share code, notes, and snippets.

View ikashnitsky's full-sized avatar

Ilya Kashnitsky ikashnitsky

View GitHub Profile
age f m
0 -5.1434 -4.9376
1 -6.9847 -6.7604
2 -8.1263 -7.8737
3 -8.296 -7.9834
4 -8.475 -8.1497
5 -8.6084 -8.2851
6 -8.7217 -8.3666
7 -8.8148 -8.4156
8 -8.8967 -8.464
@ikashnitsky
ikashnitsky / odds-qatar.R
Last active December 3, 2022 12:50
Were there too many sensations in Qatar? What if I bet the same amount against the odds in all the group-stage games?
#===============================================================================
# 2022-12-03 -- misc
# World Cup games odds
# Ilya Kashnitsky, ilya.kashnitsky@gmail.com, @ikashnitsky
#===============================================================================
library(tidyverse)
library(magrittr)
library(rvest)
library(ggrepel)
@ikashnitsky
ikashnitsky / fedified.R
Last active November 19, 2022 21:49
Explore the twitter accounts included in fedified.com -- https://fosstodon.org/@ikashnitsky/109372644538546176
#===============================================================================
# 2022-11-19 -- exploration
# Explore the list from fedified dot com
# Ilya Kashnitsky, ilya.kashnitsky@gmail.com, @ikashnitsky
#===============================================================================
options(scipen = 999)
library(tidyverse)
library(magrittr)
library(rvest)
@ikashnitsky
ikashnitsky / get-all-sjr-data.r
Created September 22, 2018 11:58
Get all SCImago Journal & Country Rank data (script version of sjrdata package)
################################################################################
#
# bibliometrics 2018-09-22
# SJR data -- load and combine all files -- GIST
# Ilya Kashnitsky, ilya.kashnitsky@gmail.com
#
################################################################################
library(tidyverse)
library(janitor)
#===============================================================================
# 2020-11-21 -- twitter
# B census in replies to the joke tweet
# https://twitter.com/rafaelotinoco/status/1329622292507267073
# Ilya Kashnitsky, ilya.kashnitsky@gmail.com
#===============================================================================
# analyse the first surname letter of those replied to the meme
# the prevalence of simila jokes from B people was so obvious
#===============================================================================
# 2021-04-19 -- critique
# Re-analysis of Royal family members longevity
# https://theconversation.com/amp/long-live-the-monarchy-british-royals-tend-to-survive-a-full-three-decades-longer-than-their-subjects-158766
# Ilya Kashnitsky, ilya.kashnitsky@gmail.com, @ikashnitsky
#===============================================================================
library(tidyverse)
library(magrittr)
library(lubridate)
#===============================================================================
# 2021-09-17 -- THE ranking
# Citations component of the ranking
# Ilya Kashnitsky, ilya.kashnitsky@gmail.com, @ikashnitsky
#===============================================================================
library(tidyverse)
library(magrittr)
library(countrycode)
library(sf)
#===============================================================================
# 2022-01-11 -- twitter
# Altmetric top-100 https://altmetric.figshare.com/ndownloader/files/31569431
# Ilya Kashnitsky, ilya.kashnitsky@gmail.com, @ikashnitsky
#===============================================================================
library(tidyverse)
library(magrittr)
library(hrbrthemes)
library(ggdark)
#===============================================================================
# 2022-01-17 -- twitter
# c19 IFR vs normal mortality
# Ilya Kashnitsky, ilya.kashnitsky@gmail.com, @ikashnitsky
#===============================================================================
library(tidyverse)
library(magrittr)
library(hrbrthemes)
library(reticulate)