Learn R Programming

cards (version 0.9.0)

maximum_variable_value: Maximum Value

Description

For each column in the passed data frame, the function returns a named list with the value being the largest/last element after a sort. Character values are ordered in the C locale (via order(method = "radix")), so the result is independent of the session locale and consistent with the ordering used elsewhere in the package. For factors, the last level is returned, and for logical vectors TRUE is returned.

Usage

maximum_variable_value(data)

Value

a named list

Arguments

data

(data.frame)
a data frame

Examples

Run this code
ADSL[c("AGEGR1", "BMIBLGR1")] |> maximum_variable_value()

Run the code above in your browser using DataLab