Description Usage Arguments Author(s) Examples
View source: R/functions.r View source: R/percentNA.r
Gives a percent of NA values for a specific column in a data frame
1 |
var |
The variable to calculate the percentage of NAs |
Georgios Xenakis
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.