All functions

a4_height_mm

A4 useable height.

a4_width_mm

A4 useable width.

add_unused_levels()

Add a row for each unused factor level to ensure plotly displays all levels in the legend.

aggregate_with_criteria() mean_with_criteria() min_with_criteria() max_with_criteria() sum_with_criteria()

Calculate an aggregated value taking into account certain exclusion cirteria

all_columns_to_snakecase()

Make all columns of a data frame snakecase.

are_all_the_same()

Are all values on x the same?

calc_annual_anomaly()

Calculate annual anomaly

check_aws_access()

Check if aws credentials have been configured and attempt default configuration otherwise

get_bucket_version_df()

List bucket contents with versions

get_likelihood_category()

Get likelihood category for a p-value

get_likelihood_terms()

Translate likely-unlikely to a specified term scale

get_metadata()

Retrieve metadata from an object in the data lake. This function is designed to retrieve the attribute information that is attatched to .RDS file types in the write_to_datalake() function.

get_reference_precipitation()

Calculate reference precipitation for a reference period/climate normal

get_season()

Get the season of a date-time

get_versions_list()

Get object versions from an aws s3 bucket recursively

gridify_mb_data()

Gridify meshblock data

in_interval()

Wether a value is within a specified interval

ipcc_likelihood_scale

IPCC likelihood scale

launch_shiny_in_background()

Launch a shiny app in the background

linear_model()

Linear model for trend analysis

mann_kendall()

Mann-Kendall Trend Test

mfe_datalake_bucket

MfE Default bucket

nz

New Zealand coastline.

nz_grid_hex_346 nz_grid_hex_346

Hexagonal grid sf object with hexagons of 346km2.

nz_region

New Zealand coastline intersected with regional bourndaries.

order_likelihood_levels()

Orders the levels of a likelihood category factor

order_season_levels()

Order season levels

pal_ea19

Colour palette for a graph with a nominal categorical variable.

pal_ea19_alpha2

Colour palette for a graph that compares a current year to 1 past year.

pal_ea19_nztcs_c

Colour palette for a NZTCS category graph.

pal_ea19_trend2

Colour palette for a graph of a ordinal categorical trend variable with 2 values.

pal_ea19_trend3

Colour palette for a graph of a ordinal categorical trend variable with 3 values.

pal_ea19_trend5

Colour palette for a graph of a ordinal categorical trend variable with 5 values.

pal_point_set1

Colour palette for categorical variables for points on a map etc.

pal_point_trend2

Colour palette for a map of a ordinal categorical trend variable with 2 values.

pal_point_trend3

Colour palette for a map of a ordinal categorical trend variable with 3 values.

pal_point_trend5

Colour palette for a map of a ordinal categorical trend variable with 5 values.

pal_snz

Colour palette for a graph with a nominal categorical variable.

pal_snz_alpha2

Colour palette for a graph that compares a current year to 1 past year.

pal_snz_nztcs_c

Colour palette for a NZTCS category graph.

pal_snz_nztcs_s

Colour palette for a NZTCS subcategory graph.

pal_snz_trend2

Colour palette for a graph of a ordinal categorical trend variable with 2 values.

pal_snz_trend3

Colour palette for a graph of a ordinal categorical trend variable with 3 values.

pal_snz_trend5

Colour palette for a graph of a ordinal categorical trend variable with 5 values.

precipitation_above_reference()

Get proportion of rainfall above reference

prettify_range()

Makes it easy to get the period for printing or visualisation

read_csv_datalake()

Read a CSV file stored in an AWS S3 bucket.

read_excel_datalake()

Read a excel file stored in an AWS S3 bucket.

read_from_datalake()

Read any type file stored in an AWS S3 bucket.

round2()

Round2

round_preserve_sum()

Round preserving sum

sankey_build_data()

Prepare data to be input into the networkD3 sankeyNetwork function.

search_datalake()

Search for keys in the data lake

sen_slope()

Sen's slope

setup_datalake_access()

Set up access to the data lake programatically.

shiny_template()

shiny_template

signed_sqrt_trans() signed_sqrt_trans()

Signed square root ggplot scale transformation.

simplify_likelihood_levels()

Simplify likelihood levels

standardise_season()

Standarise season names

statsnz_likelihood_scale

Stats NZ likelihood scale

version_list_as_df()

Coverts list with object version metadata to a data frame

write_csv_datalake()

Write a CSV file as an object in an AWS S3 bucket.

write_rds_datalake()

Write an RDS file to the lake. .RDS so the attributes can be saved as metadata. Basic attributes are applied below But you can add your own using attr(). V The function first writes the file to a temp directory therefore, it avoids the unintended consequences of saving the file in the disk.