This function fills out an array of 2 dimensions, adding zeroes (or other values) for extra columns and rows as named in class1 and class2. If a column (or row) is missing, it will be filled with the value given by fill. It is useful for results of table or tapply when some elements had no records.
1 | fill.dimension(dataarray, class1, class2, fill = 0)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.