change_snp_numeric_type: Change numeric type of sNp file output

View source: R/snp.R

change_snp_numeric_typeR Documentation

Change numeric type of sNp file output

Description

Changes the provided dataframe output to the specified type

Usage

change_snp_numeric_type(data, format)

Arguments

data

Dataframe to convert

format

Target numeric format (valid options = MA, DB, RI)

Examples

sparam <- data.frame(Frequency = 1:3, dB = -1:-3, Ang = 40:42)
rftk:::change_snp_numeric_type(sparam, "MA")

# # A tibble: 3 x 3
#   Frequency   Mag   Ang
#       <int> <dbl> <int>
# 1         1 0.891    40
# 2         2 0.794    41
# 3         3 0.708    42

aaronmanderson3/rftk documentation built on July 30, 2023, 1:19 p.m.