filterData: Filter Root length Measurements

View source: R/filterData.R

filterDataR Documentation

Filter Root length Measurements

Description

A function that takes root measurements selected by the user and adds them to a new output file specified by the user.

Usage

filterData(inputFile, roi = c(), rootLines, rootTreatment, outputFile)

Arguments

inputFile

A string representing the path for the input file containing root measurement data

roi

a vector containing the index of specified root measurements to be exported to the outputFile

rootLines

A string representing the root line the specified roi root measurements parameters are.

rootTreatment

A string representing the root treatment the specified roi root root measurements parameters are.

outputFile

A string representing the path for the output file to which root measurements are added

Value

return is a dataframe which will also be exported to outputFile

Author(s)

Erik Ensminger erik.ensminger@mail.utoronto.ca

References

Steipe B., ABC project (.utility 4.07) A Bioinformatics Course: Applied Bioinformatics Link.

Examples

# Example 1:
# Adding two selected root measurement to output file
## Not run: 
library(plyr)
input <- system.file("extdata", "inputFileFunc1.csv", package = "FastRPA")
roi <- c(2,1,5)
outputFile <- system.file("extdata", "outputFileFunc1.csv", package = "FastRPA")
filterData <- filterData(inputFile = input, roi = roi, rootLines = "ASER.12.32",
                       rootTreatment = "TEX", outputFile = outputFile)

## End(Not run)


ErikEnsminger/FastRPA documentation built on Sept. 29, 2023, 12:35 a.m.