Nothing
      #' @title Convert to a Measure
#'
#' @description
#' Convert object to a [Measure] or a list of [Measure].
#'
#' @inheritParams as_task
#' @param task_type (`character(1)`)\cr
#'   Used if `x` is `NULL` to construct a default measure for the respective task type.
#'   The default measures are stored in [`mlr_reflections$default_measures`][mlr_reflections].
#'
#' @return [Measure].
#' @export
as_measure = function(x, task_type = NULL, clone = FALSE, ...) { # nolint
  UseMethod("as_measure")
}
#' @export
#' @rdname as_measure
as_measure.NULL = function(x, task_type = NULL, clone = FALSE, ...) { # nolint
  assert_empty_ellipsis(...)
  default_measures(task_type)[[1L]]
}
#' @export
#' @rdname as_measure
as_measure.Measure = function(x, task_type = NULL, clone = FALSE, ...) { # nolint
  assert_empty_ellipsis(...)
  if (isTRUE(clone)) x$clone() else x
}
#' @export
#' @rdname as_measure
as_measures = function(x, task_type = NULL, clone = FALSE, ...) { # nolint
  UseMethod("as_measures")
}
#' @export
#' @rdname as_measure
as_measures.default = function(x, task_type = NULL, clone = FALSE, ...) { # nolint
  list(as_measure(x, task_type = task_type, clone = clone, ...))
}
#' @export
#' @rdname as_measure
as_measures.NULL = function(x, task_type = NULL, clone = FALSE, ...) { # nolint
  default_measures(task_type)
}
#' @export
#' @rdname as_measure
as_measures.list = function(x, task_type = NULL, clone = FALSE, ...) { # nolint
  lapply(x, as_measure, task_type = NULL, clone = clone, ...)
}
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.