afmexperiment {afmToolkit}R Documentation

AFM experiment

Description

This function creates an afmexperiment structure, which is as list (or an array) of elements of afmdata class.

Usage

afmexperiment(data, ID=NULL)

Arguments

data

A variable of afmdata class, or a list of elements of afmdata class.

ID

Character string with the identifier of the data variable or a string array in case data is a list of afmdata variables.

Value

An object of class afmexp.

See Also

afmdata

Examples

dataFolder <- paste(path.package("afmToolkit"), "afmexperiment",sep = "/")
dataFiles <- list.files(dataFolder, pattern = "force", full.names = FALSE)
data <- lapply(dataFiles, afmReadJPK, path = dataFolder)
names(data) <- dataFiles
data <- afmexperiment(data)
plot(data[[1]])

[Package afmToolkit version 0.0.1 Index]