DataFrame column names assertion
Passes if the DataFrame column names match the given list of strings exactly (order-sensitive).
df (DataFrame): The DataFrame to
check.
names (List): | Vector A list or
vector of expected column name strings.
Expect_pass when names match; Expect_hold
on NA; Expect_stop on errors or mismatch.
assert(expect_colnames(to_dataframe([x: [1], y = [2]]), ["x", "y"]))
expect_fields, expect_has_colnames, expect_ncol, expect_nrow