-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path_targets.R
44 lines (41 loc) · 936 Bytes
/
_targets.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
library(targets)
tar_option_set(
packages = c("nflreadr","tibble","dplyr","labelled")
)
tar_source(files = c(
'R/tar_fcns.R'
))
list(
tar_target(
name = qb_sa_data,
command = get_season_data('avg','passing','QB')
),
tar_target(
name = wr_sa_data,
command = get_season_data('avg','receiving',"WR")
),
tar_target(
name = te_sa_data,
command = get_season_data('avg','receiving',"TE")
),
tar_target(
name = rb_sa_data,
command = get_season_data('avg','rushing',"RB")
),
tar_target(
name = qb_sw_data,
command = get_season_data('wide','passing','QB')
),
tar_target(
name = wr_sw_data,
command = get_season_data('wide','receiving','WR')
),
tar_target(
name = te_sw_data,
command = get_season_data('wide','receiving','TE')
),
tar_target(
name = rb_sw_data,
command = get_season_data('wide','rushing',"RB")
)
)