Last data update: 2014.03.03

R: 'trib.names' returns the names of .csv files in working...
trib.namesR Documentation

trib.names returns the names of .csv files in working directory and stores table values to a global variabla All, filenames to global variabla filenames and returns truncated names of files.

Description

trib.names returns the names of .csv files in working directory and stores table values to a global variabla All, filenames to global variabla filenames and returns truncated names of files.

Usage

trib.names(x, DataFF = TRUE, DEncode = "UTF-8")

Arguments

x

Numeric value length of file name for truncation. Truncated file name is given at output for ease of use.

DataFF

logical scalar, checking whether to use CSV style for Tribometer of Profilometer

DEncode

is a string that specifies file encoding for import

Value

returns truncated file names, also generates list All and filenames vector

Warning

If wrong type is used at DataFF read.csv will have problems

Examples

setwd(paste(path.package("trib"),"/exdata/tribometer",sep=""))

trib.names(2)

setwd(paste(path.package("trib"),"/exdata/profile",sep=""))

trib.names(2,DataFF=FALSE)

Results