-
created
save_okplan
to save the selection information in a standard format. -
write_ok_selection_list
now acceptsdata.frame
,list
and csv-file as input to the argumentcolumn_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.
- Updated internal dependencies. It is now dependent on R v4.1.0 and NVIpjsr.
- Created
get_holiday
to get the "non-workdays" or "workdays" within one year.
- Fixed several bugs in
get_tested_herds
.
-
The argument
year
inget_tested_herds
now accepts more than one year as input. -
write_ok_selection_list
now accepts the argumentcolumn
which will be passed toappend_sum_line
.
- Updated help section in README
-
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 tocolumn_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 argumentadd_worksheet
that makes it possible to add a new worksheet to an existing workbook. -
adjust_samples_to_budget
includes the argumentgroup
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.
- README updated with improved installation guide.
- Renamed to
check_ok_selection
fromcheck_OK_selection
.check_OK_selection
is deprecated.
- Fixed problems with package dependencies during installation.
adjust_samples_to_budget
generates the new column 'adjusted_sample' also when initial sample is correct
- Included package level documentation.
-
style_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 usesNVIdb::standardize_columns
to select, format and style columns.
- extended
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.
- Included reference to
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.
- Renamed to
append_date_generated_line
frominclude_generated_date
.
- Included a preliminary version of control_OK_selection for control of standard files with OK selection data.
- included argument
checking
based on checkmate
-
include_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 toNVIdb::standardize_columns