assert_reformat.Rd
Assert the Reformatting Map.
assert_reformat(map)
(list
)
NULL
if the map
object fits the criteria for a mapping list.
my_map <- list(
df1 = list(
char = list(
"A" = c("a", "k"),
"B" = "b"
),
char2 = list(
"A" = c("a", "k"),
"B" = "b"
)
),
df2 = list(
num = list(
"11" = "1",
"22" = NA
)
),
All = list(
fact = list(
"F1" = "f1",
"F2" = "f2"
),
other = list(
"x" = "X"
)
)
)
assert_reformat(my_map)
my_map <- list(
df0 = NULL,
df1 = list(
char = NULL,
char2 = list(
"A" = c("a", "k"),
"B" = "b"
)
)
)
assert_reformat(my_map)