Package 'haahka'

Title: Haahka bird migration browser
Description: Bird Migration browser.
Authors: William Morris & Joona Lehtomaki
Maintainer: William K. Morris <[email protected]>
License: MIT + file LICENSE
Version: 0.7.19.9000
Built: 2024-10-27 06:05:09 UTC
Source: https://github.com/luomus/haahka

Help Index


Get languages

Description

Return full language names instead of a language code.

Usage

get_languages(x)

Arguments

x

Language shortcode.


Get months

Description

Get month names in a given language.

Usage

get_months(lang = "en", format)

Arguments

lang

Language shortcode.

format

Format.


Get species names

Description

Get species common names in a locale.

Usage

get_species_names(lang, sp_data)

Arguments

lang

Language shortcode.

sp_data

Species names.


Get record value

Description

Get record value for a species.

Usage

get_value(season, type, value, records, and = "and")

Arguments

season

Character. "Spring" or "Autumn".

type

Character. Migration "Migr" or "Local".

value

Character. "date_string" or "Sum".

records

Records table.

and

Character. "and" string.


Get taxa

Description

Get taxon metadata.

Usage

haahka_taxa()

Make date label

Description

Create a date label.

Usage

make_date_label(x, lang)

Arguments

x

Date.

lang

Language shortcode.


Parse description

Description

Parse description text.

Usage

parse_description(text, lang)

Arguments

text

Description text.

lang

Language shortcode.


Calculate a tiled average (non-overlapping windows) for yearly observations.

Description

An average is calculated over a specified window and assigned to the day in the middle of the window.

Usage

tile_observations(x, value)

Arguments

x

A data.frame.

value

String name of the variable containing numeric observation values.

Value

A data.frame with dates and corresponding (rounded) averages.