Skip to content

Instantly share code, notes, and snippets.

"Tweet id","Tweet permalink","Tweet text","time","impressions","engagements","engagement rate","retweets","replies","likes","user profile clicks","url clicks","hashtag clicks","detail expands","permalink clicks","app opens","app installs","follows","email tweet","dial phone","media views","media engagements","promoted impressions","promoted engagements","promoted engagement rate","promoted retweets","promoted replies","promoted likes","promoted user profile clicks","promoted url clicks","promoted hashtag clicks","promoted detail expands","promoted permalink clicks","promoted app opens","promoted app installs","promoted follows","promoted email tweet","promoted dial phone","promoted media views","promoted media engagements"
"962563209646391296","https://twitter.com/abiko_ushi/status/962563209646391296","統計の本はいっぱいあるけど、統計モデリングの本って意外とあんまりないと思っていて、In All Likelihood っていうのが読みたいんだけどだれか買ってくれないかな。https://t.co/86JRcDOta7","2018-02-11 05:45 +0000","66.0","6.0","0.09090909090909091","0.0","0.0","0.0","1.0","4.0","0.0","1.
We can make this file beautiful and searchable if this error is corrected: It looks like row 6 should actually have 48 columns, instead of 14 in line 5.
year, 北海道, 青森, 岩手, 宮城, 秋田, 山形, 福島, 茨城, 栃木, 群馬, 埼玉, 千葉, 東京, 神奈川, 新潟, 富山, 石川, 福井, 山梨, 長野, 岐阜, 静岡, 愛知, 三重, 滋賀, 京都, 大阪, 兵庫, 奈良, 和歌山, 鳥取, 島根, 岡山, 広島, 山口, 徳島, 香川, 愛媛, 高知, 福岡, 佐賀, 長崎, 熊本, 大分, 宮崎, 鹿児島, 沖縄
2002,637,605,605,617,605,605,610,647,648,644,678,677,708,706,641,644,645,642,647,646,668,671,681,667,651,677,703,675,647,645,610,609,640,644,637,611,618,611,611,643,605,605,606,606,605,605,604
2003,637,605,605,617,605,606,610,647,648,644,678,677,708,707,641,644,645,642,647,646,668,671,681,667,651,677,703,675,647,645,610,609,640,644,637,611,619,611,611,644,605,605,606,606,605,605,605
2004,638,606,606,619,606,607,611,648,649,645,679,678,710,708,642,644,646,643,648,647,669,673,683,668,652,678,704,676,648,645,611,610,641,645,638,612,620,612,611,645,606,606,607,607,606,606,606
2005,641,608,608,623,608,610,614,651,652,649,682,682,714,712,645,648,649,645,651,650,671,677,688,671,657,682,708,679,652,649,612,612,644,649,642,615,625,614,613,648,608,608,609,610,608,608,608
2006,644,610,610,628,610,613,618,655,657,654,687,687,7
We can make this file beautiful and searchable if this error is corrected: It looks like row 2 should actually have 1 column, instead of 6 in line 1.
Daily Trends from 01-01-2017 to 12-31-2017
日付,クリック数,注文済み商品Amazon.co.jp,注文済み商品マーケットプレイス,注文数合計,コンバージョン
2017-01-01,12,0,1,1,8.33
2017-01-02,13,0,0,0,0.00
2017-01-03,6,0,0,0,0.00
2017-01-04,14,0,0,0,0.00
2017-01-05,3,0,0,0,0.00
2017-01-06,4,0,0,0,0.00
2017-01-07,0,0,0,0,-
2017-01-08,4,0,0,0,0.00
@abikoushi
abikoushi / shitsugyo_and_shugyo_shasu.csv
Created June 15, 2018 22:30
総務省の労働力調査「第12表 年齢階級別就業者数」と「第13表 年齢階級別完全失業者数」(http://www.stat.go.jp/data/roudou/sokuhou/tsuki/index.html
year age shitsugyo sex shugyo
2007 15~24 26 male 286
2008 15~24 24 male 277
2009 15~24 29 male 254
2010 15~24 29 male 244
2011 15~24 25 male 240
2012 15~24 23 male 238
2013 15~24 20 male 241
2014 15~24 18 male 244
2015 15~24 15 male 248
userGender userAgeBracket (direct) anlyznews.com b.hatena.ne.jp bing facebook.com google langstat.hatenablog.com m.facebook.com matome.naver.jp search.fenrir-inc.com search.smt.docomo sp-web.search.auone.jp t.co yahoo
female 18-24 241 0 0 370 0 2546 0 0 13 0 13 0 34 579
female 25-34 370 0 0 236 0 2896 0 0 17 0 24 21 47 687
female 35-44 352 0 0 54 0 1190 0 0 17 0 31 25 36 577
female 45-54 122 0 0 24 0 347 0 0 0 0 0 0 13 190
female 55-64 52 0 0 0 0 135 0 0 0 0 0 0 0 91
female 65+ 30 0 0 0 0 62 0 0 0 0 0 0 0 62
male 18-24 859 0 15 1084 0 9714 0 0 0 0 14 0 328 1265
male 25-34 1107 11 63 583 15 11186 17 28 15 0 20 31 800 1476
male 35-44 791 0 39 226 0 5957 0 25 10 12 24 14 511 1355
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
#include <RcppArmadillo.h>
using namespace Rcpp;
using namespace arma;
// [[Rcpp::depends(RcppArmadillo)]]
rowvec rdirichlet(const vec & alpha){
int K = alpha.n_rows;
rowvec y(K);
for(int k=0;k<K ;k++){
y[k] = R::rgamma(alpha[k],1);