read_snp: Read Touchstone .sNp file into tibble

View source: R/snp.R

read_snpR Documentation

Read Touchstone .sNp file into tibble

Description

Imports and optionally converts and cleans Touchstone .sNp files

Usage

read_snp(
  ...,
  numeric_format = "DB",
  simplify_param = TRUE,
  clean_names_case = "old_janitor"
)

Arguments

...

Files to read

numeric_format

Output format. Can be "DB" for dB Mag/Angle, "MA" for Mag/Angle, "RI" for Real/Imaginary, or NA for no conversion.

simplify_param

Option to simplify parameter output column - TRUE to convert to Snn format. Not used for files with 10+ parameters.

clean_names_case

Type of character casing to reformat the column names into. Set to NULL for no reformatting, and see clean_names for more details.

Examples

read_snp(rftk_example("dipole.s1p"))
read_snp(rftk_example("dipole.s1p"), numeric_format = "MA")

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