You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
#' Generate named_list with create_parameters() using values loaded from a CSV file.
68
+
#' Generate named_list with create_parameters() using values loaded from a CSV
69
+
#' file.
70
+
#'
71
+
#' @param csv_path Path to csv file containing the parameters. Should have
72
+
#' columns "unit", "parameter", "type", "mean" and "sd". Missing values should
73
+
#' be marked as "NA".
68
74
#'
69
-
#' @param csv_path Path to csv file containing the parameters. Should have columns "unit", "parameter", "type", "mean" and "sd". Missing values should be marked as "NA".
70
-
#'
71
75
#' @return Named list generated by create_parameters()
72
76
73
77
setup_param_from_csv <- function(csv_path) {
74
78
# Load parameter data from CSV, treating "NA" as missing values
#' Generate named_list with create_parameters() using values loaded from a CSV file.
75
+
#' Generate named_list with create_parameters() using values loaded from a CSV
76
+
#' file.
77
+
#'
78
+
#' @param csv_path Path to csv file containing the parameters. Should have
79
+
#' columns "unit", "parameter", "type", "mean" and "sd". Missing values should
80
+
#' be marked as "NA".
75
81
#'
76
-
#' @param csv_path Path to csv file containing the parameters. Should have columns "unit", "parameter", "type", "mean" and "sd". Missing values should be marked as "NA".
77
-
#'
78
82
#' @return Named list generated by create_parameters()
79
83
80
84
setup_param_from_csv<-function(csv_path) {
81
85
# Load parameter data from CSV, treating "NA" as missing values
82
-
df<- read.csv(csv_path, na.strings="NA")
83
-
86
+
param_data<- read.csv(csv_path, na.strings="NA")
87
+
84
88
# Specify mappings of create_parameters() arguments to their corresponding
0 commit comments