get_column_names: S-Parameter Column Names

View source: R/snp.R

get_column_namesR Documentation

S-Parameter Column Names

Description

Outputs the columns names of a .sNp file based on parameter, numeric format, and the number of S-parameters.

Usage

get_column_names(
  parameter = "S",
  numeric_format,
  num_parameters,
  in_matrix_format = FALSE
)

Arguments

parameter

Type of parameter file (valid options = S, Y, Z)

numeric_format

Numeric format used (valid options = MA, DB, RI)

num_parameters

Number of parameters

in_matrix_format

For 2-parameter files only - whether the file is in matrix format or not (i.e. whether it should flip S21/S12)

Examples

rftk:::get_column_names("S", "MA", 2)
# output: "Frequency" "S11_Mag"   "S11_Ang"   "S21_Mag"   "S21_Ang"   "S12_Mag"   "S12_Ang"
#  "S22_Mag"   "S22_Ang"

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