View source: R/utils-heatmap-extract-sample-size.R
heatmap_extract_sample_size | R Documentation |
ret_mask
is TRUE
Extract the sample size data frame, or a data frame of logical values
for presence/absence of sample sizes if ret_mask
is TRUE
heatmap_extract_sample_size(
sample_size_df = NULL,
wa = NULL,
ret_mask = FALSE,
...
)
sample_size_df |
A data frame where ages are columns (and start with the letter 'a'). If the values are zero, the weight-at-age was extrapolated/interpolated. If there is a value, the weight-at-age is data |
wa |
A weight-at-age data frame as created by |
ret_mask |
Logical. If |
... |
Absorb arguments meant for other functions |
A data frame containing years (yr
) column and columns for age,
represented as numbers (no text appended to them). If ret_mask
is
TRUE
then each cell is either TRUE
or FALSE
representing presence
or absence of samples for that year/age combination.The dimensions of the
returned data frame will be identical to the dimensions of wa
.
If ret_mask
is FALSE
, the data frame returned will be the same
dimensions as wa
plus two more rows and one more column. The two rows
are one row containing the year and all NA
s (a blank row for the table)
and a row of the column totals, The extra column contains the row sums
Set the first and second elements to NA
so that nothing appears in
row sums column for the first two cells
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.