The presentation of the data (see examples) is easier to read
than with the traditional column-wise entry in dtx()
. This could be used
to enter small tables in R, but do not abuse of it!
dtx_rows(...)
dtrm_rows(...)
dtf_rows(...)
dtt_rows(...)
dtbl_rows(...)
A data frame of class data.trame for dtrm_rows()
,
data.frame for dtf_rows()
, data.table for dtt_rows()
,
tibble tbl_df for dtbl_rows()
and the default object with dtx_rows()
.
df <- dtx_rows(
~x, ~y, ~group,
1, 3, "A",
6, 2, "A",
10, 4, "B"
)
df
#> # A data.trame: [3 × 3]
#> x y group
#> <dbl> <dbl> <chr>
#> 1 1 3 A
#> 2 6 2 A
#> 3 10 4 B