expect_column_types

DataFrame column types assertion

Passes if the specified DataFrame columns match the expected type strings.

Parameters

Returns

Expect_pass when types match; Expect_hold on NA; Expect_stop on mismatch.

Examples

assert(expect_column_types(df, [id: "Int", name = "String"]))

See Also

expect_type, expect_colnames