Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Correct some documentation #769

Merged
merged 2 commits into from
Aug 1, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 9 additions & 6 deletions R/aggregate_by_chi_zihao.R
Original file line number Diff line number Diff line change
Expand Up @@ -155,8 +155,13 @@ aggregate_by_chi_zihao <- function(episode_file) {
}


#' select columns ending with some patterns
#' @describeIn select columns based on patterns
#' Select columns according to a pattern
#'
#' @describeIn vars_select Choose variables ending in a given pattern.
#'
#' @param data The data from which to select columns/variables.
#' @param vars The variables / pattern to find, as a character vector
#' @param ignore_case Should case be ignored (Default: FALSE)
vars_end_with <- function(data, vars, ignore_case = FALSE) {
names(data)[stringr::str_ends(
names(data),
Expand All @@ -166,8 +171,7 @@ vars_end_with <- function(data, vars, ignore_case = FALSE) {
)]
}

#' select columns starting with some patterns
#' @describeIn select columns based on patterns
#' @describeIn vars_select Choose variables starting with a given pattern.
vars_start_with <- function(data, vars, ignore_case = FALSE) {
names(data)[stringr::str_starts(
names(data),
Expand All @@ -177,8 +181,7 @@ vars_start_with <- function(data, vars, ignore_case = FALSE) {
)]
}

#' select columns contains some characters
#' @describeIn select columns based on patterns
#' @describeIn vars_select Choose variables which contain a given pattern.
vars_contain <- function(data, vars, ignore_case = FALSE) {
names(data)[stringr::str_detect(
names(data),
Expand Down
2 changes: 1 addition & 1 deletion _targets.R
Original file line number Diff line number Diff line change
Expand Up @@ -562,7 +562,7 @@ list(
data = individual_file,
year = year
)
)#,
) # ,
# tar_target(
# episode_file_dataset,
# arrow::write_dataset(
Expand Down
30 changes: 0 additions & 30 deletions man/select.Rd

This file was deleted.

33 changes: 33 additions & 0 deletions man/vars_select.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.