exampleNVSPL: exampleNVSPL

exampleNVSPLR Documentation

exampleNVSPL

Description

Sample NVSPL data stored as data.frames within a list object.

Usage

data(exampleNVSPL)

Format

An object of class list containing 9 data.frames.

Details

The exampleNVSPL object can be used to experiment with functions that use NVSPL data. See the example code given in nvspl_to_ai.

Examples


# Create an input directory for this example
dir.create('example-input-directory')

# Read in example NVSPL data
data(exampleNVSPL)

# View structure
str(exampleNVSPL, 1)

# Write example NVSPL data to example input directory to mimic NVSPL .txt format
for (i in 1:length(exampleNVSPL)) {
write.table(x = exampleNVSPL[[i]],
            file = paste0('example-input-directory/', names(exampleNVSPL)[i]),
            sep = ',',
            quote = FALSE)
}

# Delete all temporary example files when finished
unlink(x = 'example-input-directory', recursive = TRUE)


nationalparkservice/NSNSDAcoustics documentation built on March 4, 2025, 10:24 p.m.