afm_extract_param: Extract parameter values from the AFM header

Description Usage Arguments Value

Description

This is a flexible function that will first try to extract the supplied parameter from the header. If the parameter is not found in the header, it will simply return the parameter value that you specified. This allows for addition of parameters that are not included in the nanoscope output, but might be important for a user such as "treatment" "cell#" "material" etc.

Usage

1
afm_extract_param(header, parameter)

Arguments

header

The AFM file header as a character vector.

parameter

The desired parameter. If you are trying to extract a parameter from the header, you must use a character vector that matches exactly (case sensitive) the parameter in the header. ie. "Scan Rate"

Value

If the parameter was found in the header, it will be returned either as numeric or character. If the parameter was not found in the header, it will be returned as supplied and a warning will be triggered


will-r-chase/afmr documentation built on May 9, 2019, 4:11 p.m.