R/RcppExports.R

Defines functions parse_site parse_num

Documented in parse_num parse_site

# Generated by using Rcpp::compileAttributes() -> do not edit by hand
# Generator token: 10BE3573-1514-4C36-9D1C-5A225CD40393

#' Convert string to number
#'
#' M will be converted to -2
#' * (lost) will be converted to -3
#' N will be converted to -1
#'
#' @param x string
#' @return integer
#' @export
#' @useDynLib INORMUS, .registration = TRUE
#' @importFrom Rcpp sourceCpp
#' @import tidyverse
parse_num <- function(x) {
    .Call(`_INORMUS_parse_num`, x)
}

#' Convert id to site location
#'
#' Convert studyid to site location
#'
#' @param id studyid
#' @return string of site location or NA
#' @export
#' @import tidyverse
parse_site <- function(id) {
    .Call(`_INORMUS_parse_site`, id)
}
zongyf02/INORMUS documentation built on Dec. 28, 2021, 8:49 a.m.