-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathfunctions.R
More file actions
34 lines (29 loc) · 1.06 KB
/
Copy pathfunctions.R
File metadata and controls
34 lines (29 loc) · 1.06 KB
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
library(tinytable)
get_todo_dfs <- function(df) {
# Separate dataframes by Progress value
ids_feature_pkg <- which(df$Scope == 'pkg' & df$Category == 'feature')
ids_todo_pkg <- which(df$Scope == 'pkg' & df$Category == 'todo')
ids_feature_studio <- which(df$Scope == 'studio' & df$Category == 'feature')
ids_todo_studio <- which(df$Scope == 'studio' & df$Category == 'todo')
# Remove unused columns
df$Scope <- NULL
df$Category <- NULL
# Create separate dataframes
df_feature_pkg <- df[ids_feature_pkg, ]
df_todo_pkg <- df[ids_todo_pkg, ]
df_feature_studio <- df[ids_feature_studio, ]
df_todo_studio <- df[ids_todo_studio, ]
# Order feature dataframes by Version
df_feature_pkg <- df_feature_pkg[
order(numeric_version(sub("^v", "", df_feature_pkg$Version))),
]
df_feature_studio <- df_feature_studio[
order(numeric_version(sub("^v", "", df_feature_studio$Version))),
]
return(list(
df_feature_pkg = df_feature_pkg,
df_todo_pkg = df_todo_pkg,
df_feature_studio = df_feature_studio,
df_todo_studio = df_todo_studio
))
}