Skip to contents

Update a gate cutoff csv with the Coereba_App edits

Usage

Coereba_UpdateGates(Clicks, Old, export = TRUE, outpath, fileName)

Arguments

Clicks

A path to a .csv file or a folder containing only the Click .csv files.

Old

File path to the CSV containing the original Estimated Gate Cutoffs

export

Whether to export the updated .csv, default is TRUE

outpath

File path to save new .csv file at.

fileName

Desired name for the updated .csv file

Value

An updated .csv file to the new location, and a data.frame

Examples


File_Location <- system.file("extdata", package = "Coereba")
TheOldCSV <- file.path(File_Location, "GateCutoffsForNKs.csv")
TheClickInfo <- file.path(File_Location, "ClickDataExample.csv")

UpdatedCSV <- Coereba_UpdateGates(Clicks=TheClickInfo, Old=TheOldCSV,
 export=FALSE, outpath=NULL, fileName="UpdatedCSV")