afmReadVeeco: Read Bruke Nanoscope Veeco ascii file

Description Usage Arguments Value Examples

View source: R/afmReadVeeco.R

Description

Read an ascii Veeco file.

Reads an ascii Veeco file with one or two segments.

Usage

1
afmReadVeeco(filename, path = "")

Arguments

filename

String with the name of the jpk file.

path

Path to the folder where the file is.

Value

A list containing a field 'data' which is a data frame

Examples

1
2
data <- afmReadVeeco("veeco_file.txt.gz",path = path.package("afmToolkit"))
str(data)

Example output

Loading required package: ggplot2
Veeco file veeco_file.txt.gz loaded.
List of 2
 $ data  :'data.frame':	13312 obs. of  4 variables:
  ..$ Time   : num [1:13312] 0 0.000173 0.000346 0.000519 0.000692 ...
  ..$ Z      : num [1:13312] 5.4e-07 5.4e-07 5.4e-07 5.4e-07 5.4e-07 ...
  ..$ Force  : num [1:13312] -1.82e-09 -1.82e-09 -1.82e-09 -1.80e-09 -1.85e-09 ...
  ..$ Segment: Factor w/ 2 levels "approach","retract": 1 1 1 1 1 1 1 1 1 1 ...
 $ params:List of 2
  ..$ SpringConstant: num 0.0744
  ..$ curvename     : chr "veeco_file.txt.gz"
 - attr(*, "class")= chr "afmdata"

afmToolkit documentation built on May 1, 2019, 9:20 p.m.