Learn R Programming

SWMPrExtension (version 0.3.12)

create_sk_flextable_list: Create a List of Flextable Objects

Description

Create a list of flextable objects to display Seasonal Kendall results in the NERRS reserve level template

Usage

create_sk_flextable_list(sk_result, stations, param, font_sz_stn = 6,
  font_sz_result = 12, font_sz_head = 6, ht_head = 0.28,
  ht_body = 0.202)

Arguments

sk_result

a data.frame of reformatted results from sk_seasonal

stations

chr, vector of stations to be displayed

param

chr, vector of parameters to be displayed

font_sz_stn

int, specify the font size of displayed station names

font_sz_result

int, specify the font size of the displayed results

font_sz_head

int, specify the font size of the table header row

ht_head

num, specify the cell height of the table body rows. Units for this parameter are in inches.

ht_body

num, specify the cell height of the table header row. Units for this parameter are in inches.

Value

Returns a list of flextable objects

Details

This function is intended for internal use with the NERRS reserve level reporting scripts. Using the results from the reserve level trend analysis, create_sk_flextable_list creates a list of two flextable objects to be displayed in the NERRS reserve level template. The first flextable in the list contains the two-letter station IDs for each station and the full location name of each station. The second table lists the seasonal kendall results and the names of the parameters of interest.