Learn R Programming

trib (version 1.2.0)

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

Description

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

Usage

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 nothingSet 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 Time Distance Laps
You can check example datasets at package files exdata/tribometer

Examples

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

trib.FF(2,100)

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

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

Run the code above in your browser using DataLab