created save_okplan
to save the selection information in a standard format.
write_ok_selection_list
now accepts data.frame
, list
and csv-file as input to the argument column_standards
.
OK_column_standards
is updated with column standards used in 2025, i.e. including orgnr in selection lists and generating "ok_ai_art_fjorfe".
created pdf reference manual "OKplan.pdf" as a vignette.
append_sum_line
now doesn't give an error when trying to sum first column and put a pretext in the column to the left.get_holiday
to get the "non-workdays" or "workdays" within one year.get_tested_herds
. The argument year
in get_tested_herds
now accepts more than one year as input.
write_ok_selection_list
now accepts the argument column
which will be passed to append_sum_line
.
Created get_tested_herds
to find herds tested in last year(s) surveillance programmes.
write_ok_selection_list
now accepts a list with column formatting information as input to column_standards
.
Updated translation table for column names to sampling plans.
Improved function help by including links and standardising argument description.
write_ok_selection_list
now includes the argument add_worksheet
that makes it possible to add a new worksheet to an existing workbook.
adjust_samples_to_budget
includes the argument group
so that sample size can be adjusted per group.
check_ok_selection
now calls an R markdown file, generates a html-report with descriptive statistics and displays the report in the browser. The function is renamed (all lower case letters) and includes several new arguments. check_OK_selection
is deprecated.
check_ok_selection
from check_OK_selection
. check_OK_selection
is deprecated.adjust_samples_to_budget
generates the new column 'adjusted_sample' also when initial sample is correctstyle_sum_line
styles the row with sum of samples.
write_ok_selection_list
writes the selection list based on selected data from okplan file and uses NVIdb::standardize_columns
to select, format and style columns.
OK_column_standards
with tables for samples taken at abattoirs and the surveillance in pigs.adjust_sample_number
adjusts the sample numbers per unit up or down to reach the total sample size in accord with the budget.
append_sum_line
appends a line with the sum of samples to the table in Excel.
NVIdb
at GitHub to correct potential problems when installing the package.Updated licence to BSD_3_clause and the copyright holder to Norwegian Veterinary Institute.
Updated documentation and help.
append_date_generated_line
from include_generated_date
.checking
based on checkmateinclude_generated_date
adds two rows in a data frame and includes text with generated date in the first column
make_random
adds a column with random numbers
OK_column_standards
keeps column standards for OK data frames for input to NVIdb::standardize_columns
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.