Learn R Programming

tidyspec (version 0.1.0)

check_wn_col: Check the Currently Set Wavenumber Column

Description

This function checks which column has been set as the default wavenumber column. If no column has been set, it prints a message prompting the user to define one.

Usage

check_wn_col(show_val = FALSE)

Value

If `show_val = TRUE`, returns the name of the wavenumber column (character). Otherwise, it only prints a message.

Arguments

show_val

Logical. If `TRUE`, the function returns the name of the current wavenumber column. Default is `FALSE`.

Examples

Run this code
set_spec_wn("Wavenumber")  # Set the wavenumber column
check_wn_col()             # Check which column is set
check_wn_col(show_val = TRUE)  # Check and return the column name

Run the code above in your browser using DataLab