Skip to contents

Check Object Names

Usage

assert_names(x, expected = NULL)

assert_rownames(x, expected = NULL)

assert_colnames(x, expected = NULL)

Arguments

x

An object to be checked.

expected

An appropriate expected value.

Value

Throws an error, if any, and returns x invisibly otherwise.

Author

N. Frerebeau