percentNA: Percent of NA values

Description Usage Arguments Author(s) Examples

View source: R/percentNA.r View source: R/functions.r

Description

Gives a percent of NA values for a specific column in a data frame

Usage

1

Arguments

var

The variable to calculate the percentage of NAs

Author(s)

Georgios Xenakis

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
## Load the data
data(fluxes)

## Calculate percentage of NAs in the CO2 flux before cleaning data
percentNA(fluxes$co2_flux)

## Clean data
fluxes=cleanFluxes(fluxes,sdCor=TRUE,sdTimes=3,timesList=3,distCor=TRUE,
                   thresholdList=list(H=c(-100,1000),LE=c(-100,1000)))	

## Calculate percentage of NAs after cleaning
percentNA(fluxes$co2_flux)

FREddyPro documentation built on May 29, 2017, 7:22 p.m.