Learn R Programming

afmToolkit (version 1.0.0)

afmIndentation: afmIndentation

Description

This function computes the deformation of the sample from the calibrated Force-Distance curve, by substracting Z to the Zero Force Point calculated with afmZeroPointSlope function.

Usage

afmIndentation(afmdata)

Value

Returns a list with one field:

afmdata: An afmdata class in which a Indentation column is added in the data field.

Arguments

afmdata

An afmdata object. It should be a valid afmdata object upon which the Contact Point, the baseline correction and the Zero Force Point must have been calculated first (using functions afmContactPoint(), afmBaselineCorrection()) and afmZeroPointSlope()

Examples

Run this code
data <- afmReadJPK("force-save-JPK-3h.txt.gz", path = path.package("afmToolkit"))
data <- afmContactPoint(data, width = 20, mul1 = 1, mul2 = 20)
data <- afmDetachPoint(data, width = 40, mul1 = 3, mul2 = 40)
data <- afmBaselineCorrection(data)
data <- afmZeroPointSlope(data, segment = "approach")
data <- afmIndentation(data)
head(data$data)

Run the code above in your browser using DataLab