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
Suggested way of obtaining a list of all functions that accept a data.frame or similar:
exported_functions <- ls("package:scoringutils")
functions_with_data_arg <- character(0) # Initialize an empty character vector to store function names
for (func_name in exported_functions) {
func_args <- formals(get(func_name))
if (!is.null(names(func_args)) && names(func_args)[1] == "data") {
functions_with_data_arg <- c(functions_with_data_arg, func_name)
}
}
Instances like #427 underline that we need to check everything for compatibility with data.frame / data.table
The text was updated successfully, but these errors were encountered: