Man pages for StatisticsNZ/er.helpers
Helper functions commonly used in Environmental Reporting at Stats NZ

a4_height_mmA4 useable height.
a4_width_mmA4 useable width.
add_unused_levelsAdd a row for each unused factor level to ensure plotly...
aggregate_with_criteriaCalculate an aggregated value taking into account certain...
all_columns_to_snakecaseMake all columns of a data frame snakecase.
are_all_the_sameAre all values on x the same?
calc_annual_anomalyCalculate annual anomaly
check_aws_accessCheck if aws credentials have been configured and attempt...
er.helpers-deprecatedDeprecated functions in package 'er.helpers'.
get_bucket_version_dfList bucket contents with versions
get_likelihood_categoryGet likelihood category for a p-value
get_likelihood_termsTranslate likely-unlikely to a specified term scale
get_metadataRetrieve metadata from an object in the data lake. This...
get_reference_precipitationCalculate reference precipitation for a reference...
get_seasonGet the season of a date-time
get_versions_listGet object versions from an aws s3 bucket recursively
gridify_mb_dataGridify meshblock data
in_intervalWether a value is within a specified interval
ipcc_likelihood_scaleIPCC likelihood scale
launch_shiny_in_backgroundLaunch a shiny app in the background
linear_modelLinear model for trend analysis
mann_kendallMann-Kendall Trend Test
metadata_to_tableMetadata to table
mfe_datalake_bucketMfE Default bucket
nzNew Zealand coastline.
nz_grid_hex_346Hexagonal grid sf object with hexagons of 346km2.
nz_regionNew Zealand coastline intersected with regional bourndaries.
order_likelihood_levelsOrders the levels of a likelihood category factor
order_season_levelsOrder season levels
pal_ea19Colour palette for a graph with a nominal categorical...
pal_ea19_alpha2Colour palette for a graph that compares a current year to 1...
pal_ea19_nztcs_cColour palette for a NZTCS category graph.
pal_ea19_trend2Colour palette for a graph of a ordinal categorical trend...
pal_ea19_trend3Colour palette for a graph of a ordinal categorical trend...
pal_ea19_trend5Colour palette for a graph of a ordinal categorical trend...
pal_point_set1Colour palette for categorical variables for points on a map...
pal_point_trend2Colour palette for a map of a ordinal categorical trend...
pal_point_trend3Colour palette for a map of a ordinal categorical trend...
pal_point_trend5Colour palette for a map of a ordinal categorical trend...
pal_snzColour palette for a graph with a nominal categorical...
pal_snz_alpha2Colour palette for a graph that compares a current year to 1...
pal_snz_nztcs_cColour palette for a NZTCS category graph.
pal_snz_nztcs_sColour palette for a NZTCS subcategory graph.
pal_snz_trend2Colour palette for a graph of a ordinal categorical trend...
pal_snz_trend3Colour palette for a graph of a ordinal categorical trend...
pal_snz_trend5Colour palette for a graph of a ordinal categorical trend...
pipePipe operator
precipitation_above_referenceGet proportion of rainfall above reference
prepare_patternPrepare a pattern for look in the data lake and use with...
prettify_rangeMakes it easy to get the period for printing or visualisation
read_csv_datalakeRead a CSV file stored in an AWS S3 bucket.
read_excel_datalakeRead a excel file stored in an AWS S3 bucket.
read_from_datalakeRead any type file stored in an AWS S3 bucket.
rearrange_geometriesrearrange_geometries
roundround
round2Round2
round_preserve_sumRound preserving sum
sankey_build_dataPrepare data to be input into the networkD3 sankeyNetwork...
search_datalakeSearch for keys in the data lake
sen_slopeSen's slope
setup_datalake_accessSet up access to the data lake programatically.
shiny_templateshiny_template
signed_sqrt_transSigned square root ggplot scale transformation.
simplify_likelihood_levelsSimplify likelihood levels
standardise_seasonStandarise season names
statsnz_likelihood_scaleStats NZ likelihood scale
table_to_metadataTable to metadata Adds attributes to df object and returns...
tidyevalTidy eval helpers
version_list_as_dfCoverts list with object version metadata to a data frame
write_rds_datalakeWrite an RDS file to the lake. .RDS so the attributes can be...
StatisticsNZ/er.helpers documentation built on Oct. 2, 2023, 7:24 a.m.