afmReadJPK: Read Nanowizard JPK ascii file

Description Usage Arguments Value Examples

View source: R/afmReadJPK.R

Description

Read an ascii JPK file.

Reads an ascii JPK file with one to three headers.

Usage

1
2
afmReadJPK(filename, path = "", FColStr = "Vertical", 
ZColStr = "Height (measured & smoothed)", tColStr = "Segment Time")

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.

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'.

Examples

1
2
data <- afmReadJPK("force-save-JPK-3h.txt.gz",path = path.package("afmToolkit"))
str(data)

rbensua/afmToolkit documentation built on Dec. 1, 2020, 2:14 a.m.