assert_logical_named: Assert Logical Value in Column
Description
This function asserts that the values in a specified column of a data frame are logical.
It uses the checkmate::assert_logical function to perform the assertion.
# Create a data framedf <- data.frame(a = c(TRUE, FALSE, TRUE, FALSE), b = c(1, 2, 3, 4))
# Assert that the values in column "a" are logicalassert_logical_named("a", df)