-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #16 from jogaudard/coding
Coding
- Loading branch information
Showing
32 changed files
with
415 additions
and
436 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
#' filter cut data before calculating fluxes | ||
#' @param slope_df dataset containing slopes and cut column | ||
#' @param cut_col column containing cutting information | ||
#' @param keep_filter name in cut_col of data to keep | ||
|
||
flux_cut <- function(slope_df, | ||
cut_col, | ||
keep_filter | ||
) | ||
{ | ||
|
||
if(is.na(((keep_filter)))) { | ||
stop("please provide the keep_filter argument to filter the data to keep") | ||
} | ||
|
||
slope_df <- slope_df |> | ||
rename( | ||
f_cut = all_of(((cut_col))) | ||
) |> | ||
filter(.data$f_cut == ((keep_filter))) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.