Skip to content

Commit 5a9b022

Browse files
committed
working app
1 parent 97e3872 commit 5a9b022

10 files changed

Lines changed: 761 additions & 86 deletions

File tree

AssumptionPlotter/NAMESPACE

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# Generated by roxygen2: do not edit by hand
22

33
export(data_log_plot)
4+
export(edit_df)
45
export(run_plotter)
56
export(simulate_logistic)
67
import(DT)

AssumptionPlotter/R/edit_datasets.R

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,17 @@
1111
#' @param variables A vector containing the names of all columns to be analysed. Each variable must be within quotation marks.
1212
#' @import dplyr
1313
#' @returns Creates a data file in the data folder of the package.
14+
#' @export
1415
#' @examples
1516
#' \dontrun{
16-
#' read_openESM_data("0022_menghini_ts", "https://zenodo.org/records/17347538/files/0022_menghini_ts.tsv?download=1")
17+
#'
18+
#' "menghini_2023_orig" <- readr::read_tsv("https://zenodo.org/records/17347538/files/0022_menghini_ts.tsv?download=1")
19+
#' names <- colnames(menghini_2023_orig)[c(9:17,22:28)]
20+
#' menghini <- edit_df(df = menghini_2023_orig, id_col = 1, day_col = 3, exp_day = 3, beep_col = 5, exp_beep = 7, variables = names)
21+
#' menghini_2023 <- menghini[[1]]
22+
#' usethis::use_data(menghini_2023)
23+
#' missing_menghini_2023 <- menghini[[2]]
24+
#' usethis::use_data(missing_menghini_2023)
1725
#' }
1826

1927
edit_df <- function(df, id_col, day_col, exp_day, beep_col, exp_beep, variables){

0 commit comments

Comments
 (0)