make_hougan: Make vector 'houganshi'

Description Usage Arguments Value Examples

Description

This function returns vector 'houganshi' to locate the position of target word (e.g. species name) in a Excel rows or columns. To keep correspondence between nubmer of cells and nchar of output string, This function replaces NA and a cell value with multiple characters.

Usage

1

Arguments

str

String vector with NA or multiple characters

Value

Long single string composed of single-word cell and whitespace

Examples

1
2
3
4
5
6
7
8
## Not run: 
  str <- rep(1:10, 10) %>%
    replace(which(. %% 3  == 0), NA) %>%
    replace(which(. %% 5  == 0), "foo") %>%
    as.character()
  make_hougan(str)

## End(Not run)

kikirinrin/gyokaikyor documentation built on May 17, 2019, 8:21 p.m.