Skip to content

Commit 0bcfa84

Browse files
Remove unused internal utilities
1 parent 62238a8 commit 0bcfa84

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

R/utils.R

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -48,24 +48,13 @@ two_cols_match <- function(col1, col2, data) {
4848
all(unlist(data[col1]) == unlist(data[col2]))
4949
}
5050

51-
odd <- function(x) {
52-
x[odd_index(x)]
53-
}
54-
5551
odd_index <- function(x) {
5652
if (length(x) < 1) {
5753
return(NULL)
5854
}
5955
seq(1L, length(x), by = 2)
6056
}
6157

62-
even <- function(x) {
63-
if (length(x) < 2) {
64-
return(NULL)
65-
}
66-
x[even_index(x)]
67-
}
68-
6958
even_index <- function(x) {
7059
seq(2L, length(x), by = 2)
7160
}

0 commit comments

Comments
 (0)