In my example, vlist is populated from the levels of the var dimension. The list of variables from which the count, mean, and sd values are computed by table. See help for collect levelsof.
There is an entire manual devoted to collect, including examples using table; e.g. [Tables] Example 3 Table of comparative summary statistics.
However, I would start with the "Classic Table 1" examples in [R] table summary.
There is an entire manual devoted to collect, including examples using table; e.g. [Tables] Example 3 Table of comparative summary statistics.
However, I would start with the "Classic Table 1" examples in [R] table summary.
Comment