| data-frame-predicates | R Documentation |
is_map_df() tests whether an object is the output of a mapper of any
tier, i.e., of a function made by function_map(), function_map_seq(),
or function_map_total_n(), such as grim_map().
is_map_basic_df(), is_map_seq_df(), and is_map_total_n_df() test
for one tier each.
is_map_df(x)
is_map_basic_df(x)
is_map_seq_df(x)
is_map_total_n_df(x)
x |
Object to be tested. |
See vignette("consistency-tests-in-depth") for the three tiers
and the table at its end.
Logical (length 1).
df1 <- pigs1 |>
grim_map(digits_x = 2, items_averaged = 1, data_type = "integer")
df2 <- pigs1 |>
grim_map_seq(digits_x = 2, items_averaged = 1, data_type = "integer")
df3 <- tibble::tribble(
~x1, ~x2, ~n,
3.43, 5.28, 90,
2.97, 4.42, 103
) |>
grim_map_total_n(digits_x = 2, items_averaged = 1, data_type = "integer")
# All three are mapper output:
is_map_df(df1)
is_map_df(df2)
is_map_df(df3)
# Each is the output of one tier:
is_map_basic_df(df1)
is_map_seq_df(df2)
is_map_total_n_df(df3)
is_map_basic_df(df2)
is_map_seq_df(df3)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.