Learn R Programming

UPMASK (version 1.2)

performCuts: Perform cuts in the data

Description

performCuts will perform cuts in the data. This function is provided as a place holder, and it is empty, but it is called by UPMASK, so if the user needs to perform cuts in the data for the UPMASK analysis, this function should be tailored.

Usage

performCuts(originalData)

Arguments

originalData

a data frame to use as the baseline

Value

A data frame.

Examples

Run this code
# NOT RUN {
# Create a simple data set with the values and errors
toyDataDF <- data.frame(x=runif(10, 0, 10), dx=rep(0.2, 10), y=runif(10, 0, 10), 
                        dy=rep(0.1, 10))

# Call the function to perform cuts
newToyDataDF <- performCuts(toyDataDF)

# Clean the environment
rm(list=c("toyDataDF", "newToyDataDF"))
 
# }

Run the code above in your browser using DataLab