Skip to content

Commit

Permalink
Due to naming conflict changed from within.sample to within_sample
Browse files Browse the repository at this point in the history
  • Loading branch information
VMTdeJong committed Jan 15, 2025
1 parent d3aef8e commit 2406878
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/metapred_utils.R
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ fixed <- function(st.u, k = NULL, ...) {
list(dev = list(st.u[-k]), dev.i = list(indexes[-k]), val = list(st.u[k]), val.i = list(indexes[k]))
}

ws <- within.sample <- function(st.u, ...) { # Necessary for testing recalibration functions.
ws <- within_sample <- function(st.u, ...) { # Necessary for testing recalibration functions.
st.u <- sort(st.u)
if (length(st.u) < 2)
stop("Selecting a validation set is impossible for < 2 data sets.")
Expand Down

0 comments on commit 2406878

Please sign in to comment.