number_to_issn: Turn string (length 8) into ISSN

View source: R/clean_data.R

number_to_issnR Documentation

Turn string (length 8) into ISSN

Description

An ISSN is formatted as NNNN-NNNX, where N is a number, and X can be any number or character. If ISSNs are formatted differently, this can give errors when using a public API, so they can be reformatted with this function. A string with a different length will return NA.

Usage

number_to_issn(number)

Arguments

number

string of length 8 (often a number)

Value

ISSN-formatted string.


bvreede/OAmonitor documentation built on Sept. 9, 2023, 8:33 p.m.