API4TMZ: Read multiple files exported from Thermec Master-Z tester

View source: R/TMZtester.API.R

API4TMZR Documentation

Read multiple files exported from Thermec Master-Z tester

Description

Read data from multiple files with structurized file names, then generate a summary table. It will also be available for the files from other tester apparatus by correct setting.

Usage

API4TMZ(Cdl, wd, ftype = ".csv", Straincln = 7, Stresscln = 8, startrow = 29)

Arguments

Cdl

An handmade double list to determine selected conditions.

wd

Work directory.

ftype

File type to be read. Defaust setting is ".csv".

Straincln

An integer to specify column for Strain in your data. Default value is 7 means the 7th column contains strain data, in the files exported from Thermec Master-Z tester.

Stresscln

An integer to specify column for Strain in your data. Default value is 8 means the 8th column contains stress data, in the files exported from Thermec Master-Z tester.

startrow

An integer to ignore the prefix rows for testing conditions. Default value is 29.

Value

A matrix-like summary table for all input files.

Examples

variable1 <- c("factor11", "factor12", "factor13")
variable2 <- c("factor21", "factor22")
variable3 <- c("factor31", "factor32", "factor33", "factor34")
conditions <- list(variable1, variable2, variable3)

## Not run: 
SummaryTable <- API4TMZ(conditions, "/Your_Data_Directory/")

## End(Not run)

TPMplt documentation built on June 22, 2024, 12:23 p.m.