arrow_image: Chooses arrow image for table on bulletin front page

View source: R/arrow_image.R

arrow_imageR Documentation

Chooses arrow image for table on bulletin front page

Description

Function to format the correct path to arrow images for bulletin front page.

Usage

arrow_image(x, image_path = "images")

Arguments

x

Direction of arrow (up, down, nochange)

image_path

The path to the directory containing the arrow images. Default is a folder called 'images' in the repo root directory.

Value

Path to image of upwards arrow if x is "up", downwards arrow if x is "down" or a no change arrow if x is "nochange".

Examples

arrow_image("up")


moj-analytical-services/mojrap documentation built on July 30, 2023, 4:43 p.m.