markNA {PAMscapes} | R Documentation |
Mark NA Values by Time and Frequency
Description
Marks values within a soundscape dataframe as NA according to provided time and (optionally) frequency values
Usage
markNA(x, na, by = NULL)
Arguments
x |
dataframe of soundscape data to mark NAs in |
na |
dataframe listing areas to mark NA. Must have columns |
by |
optional column name in both |
Value
same dataframe as x
but with some values replaced with NA
Author(s)
Taiki Sakai taiki.sakai@noaa.gov
Examples
manta <- checkSoundscapeInput(system.file('extdata/MANTAExampleSmall1.csv', package='PAMscapes'))
naDf <- data.frame(start=min(manta$UTC),
end=max(manta$UTC),
freqMin=100,
freqMax=500)
plotHourlyLevel(manta)
plotHourlyLevel(markNA(manta, na=naDf))
[Package PAMscapes version 0.6.0 Index]