Skip to content

Commit

Permalink
refactor(FV): replaced the col name 'day' by 'time' in the dfs genera…
Browse files Browse the repository at this point in the history
…ted by generate_hill_curves and extract_observations
  • Loading branch information
hdescobarh committed Sep 6, 2024
1 parent 054e6ed commit c383e53
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions FV_Lab_germination/Code/germination_curves.R
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ get_hill_points <- function(max_time, a, b, c, y0, time_step) {
},
a = a, b = b, c = c, y0 = y0
)
data.frame(day = xs, germination_percent = ys)
data.frame(time = xs, germination_percent = ys)
}

#' From the output of summarize_fits generate a list of data.frame
Expand Down Expand Up @@ -266,7 +266,7 @@ extract_observations <- function(
for (treatment in levels(fits_summary$Treatment)) {
current_obs <- data.frame(
Treatment = rep(treatment, length(time_intervals)),
day = time_intervals,
time = time_intervals,
germination_percent = unname(t(fits_summary[treatment, mean_keys])[, 1]),
stdError = unname(t(fits_summary[treatment, std_err_keys])[, 1]),
stringsAsFactors = TRUE
Expand Down

0 comments on commit c383e53

Please sign in to comment.