trib.FF: 'trib.FF' gets file name length, filterValue and Friction vs...

Description Usage Arguments Value Warning Examples

View source: R/tribF.R

Description

trib.FF gets file name length, filterValue and Friction vs Distance combined graph and/or single graphs for data

Usage

1
trib.FF(x, filterValue, CombinedGraph = TRUE, SingleGraph = TRUE)

Arguments

x

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

filterValue

Numeric value for setting for rolling average from package zoo

CombinedGraph

logical scalar checking whether to plot combined graph of all data or not

SingleGraph

logical scalar checking whether to plot single graphs of all data or not

Value

Plots Friction vs Distance scatter plots with given filter value if CombinedGraph and or SingleGraph options are set, else will return nothing

Set work directory to file containing example data for Tribometer directory should be

Warning

Before using this function please set your working directory to the directory that contains .csv files from tribometer. File structure should be as follows

Time Distance Laps mu FrictionForce
0,100 0 0,00000 0,18478 0,55435

You can check example datasets at package files exdata/tribometer

Examples

1
2
3
4
5
6
7
setwd(paste(path.package("trib"),"/exdata/tribometer",sep=""))

trib.FF(2,100)

trib.FF(2, 100, CombinedGraph=FALSE)

trib.FF(2, 100, SingleGraph=FALSE)

trib documentation built on May 29, 2017, 3:25 p.m.

Related to trib.FF in trib...