forked from robjhyndman/CV
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrussell.R
54 lines (41 loc) · 1.13 KB
/
russell.R
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
# Analysis for Russell
# Publications
library(tidyverse)
library(RefManageR)
source("function.R")
rjh <- prepare_bib_report("~/git/CV/rjhpubs.bib")
rjh <- rjh %>%
filter(bibtype=="Article") %>%
mutate(
Rank = as.character(Rank),
Group = recode(Rank,
`A*` = "Group 1",
`A` = "Group 2"
),
Group = if_else(journal == "Journal of the American Statistical Association",
"Group 1+",
Group)
) %>%
select(title,author,year,journal,Rank,Group) %>%
arrange(desc(year), Group)
rjh %>%
group_by(Group) %>%
filter(year >= 2012, year <= 2018) %>%
summarise(count = n())
rjh %>% filter(Group == "Group 1+", year < 2019)
rjh %>% filter(Group == "Group 1", year < 2019)
rjh %>% filter(Group == "Group 2", year < 2019)
rjh %>% filter(!grepl("Group", Group))
# MyPlan Achievements 2019
rjh %>%
filter(year==2019) %>%
arrange(Group) %>%
select(-author, -title)
rjh %>%
filter(year == 2019) %>%
group_by(Group) %>%
summarise(count = n())
# Grants
read_csv("Grant_income.csv") %>%
filter(Start >= 2012) %>%
summarise(Amount = sum(Amount))