Learn R Programming

FREddyPro (version 1.0)

cleanSecondVar: Clean a second variable

Description

It cleans a second variable giving another variable so the NA correspond row by row

Usage

cleanSecondVar(x, y, data)

Arguments

x
A character giving the name of the first variable
y
A charcter giving the name of the second variable for which we want values to be removed
data
The data frame

Examples

Run this code
## Load the data
data(fluxes)

## Clean a second variable based on the first
fluxes<-cleanSecondVar(x="H",y="qc_H",data=fluxes)

Run the code above in your browser using DataLab