Use this function to generate simple code asserstions about a
generate.assertions(dat, max.level.show = 12, digits.compare = 6)
Maximum number of factor levels for which to generate an assertion.
How many decimal digits to include in comparisons of numeric data?
Assertions are generated about the number of rows and columns in the
data.frame, and about each column it contains.
An assertion is generated about the class of the column, and the number
of missing values (
NA). If the column has a
attribute, then as assertion is generated for that as well.
Further assertions depend on the
class of the column.
factors, the number of levels is asserted. If this does
max.level.show then the
asserted as well. For numeric data, the range (rounded to
digits.compare is asserted.
Ben Rich <email@example.com>
1 2 3 4 5 6 7 8
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.