afmReadJPK: Read Nanowizard JPK ascii file
Description
Read an ascii JPK file.
Reads an ascii JPK file with one to three headers.
Usage
afmReadJPK(
filename,
path = "",
FColStr = "Vertical",
ZColStr = "Height (measured)",
tColStr = "Segment Time",
silent = FALSE
)
Value
A afmdata structure list containing a field 'data' which is a data frame with
variables Force, Z, Time (if aplicable) and Segment ("approach", "retract" and/or "pause") and
a field 'params' which is a list with the fields 'curvename' and 'SpringConstant'.
Arguments
- filename
String with the name of the jpk file.
- path
Path to the folder where the file is.
- FColStr
String with a pattern identifying the Force column.
- ZColStr
String with a pattern identifying the Z column.
- tColStr
String with a pattern identifying the Time column.
- silent
Logical parameter. If TRUE it suppresses the messages regarding the loading of the JPK file (defaults to FALSE).
Examples
Run this codedata <- afmReadJPK("force-save-JPK-3h.txt.gz",path = path.package("afmToolkit"))
str(data)
Run the code above in your browser using DataLab