Skip to content
Snippets Groups Projects
Verified Commit f1374638 authored by Gärber, Florian's avatar Gärber, Florian
Browse files

fix: Use R 4 pipes

parent f33e1c42
No related branches found
No related tags found
No related merge requests found
......@@ -61,7 +61,7 @@ to_ChemoSpec <- function(
)
if (checkmate::test_string(groups) || checkmate::test_int(groups)) {
groups <- base::as.factor(base::rep(groups, base::nrow(data)))
groups <- groups |> base::rep(base::nrow(data)) |> base::as.factor()
}
checkmate::assert_factor(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment