dpload {densitr} | R Documentation |
Load a single density profile measurement file (*.dpa) or a directory of *.dpa files.
Description
Loads either a single .dpa file or a list of .dpa files. If dpa.file is specified, it will load a single file. If dp.directory is specified, it will search for all dpa files in that directory (recursively in all subfolders, can be turned off) and return a list of dp files. It will use pbapply to display progress, if loading a directory.
Usage
dpload(dp.file = NULL, dp.directory = "", recursive = TRUE, name = "file")
Arguments
dp.file |
A path to a single file, including file name. |
dp.directory |
A directory with .dpa files. |
recursive |
Also look for density profiles files in subfolders? |
name |
Either |
Details
NOTE: for now this function only supports loading density profiles created by the Rinntech Resistograph® resistance drilling device (*.dpa). It was tested to work on files produced by R650-RC drill.
Value
A dp
object or a list of dp
objects.
Examples
## load a single file
dpload(system.file("extdata", "00010001.dpa", package = "densitr"))
dp <- dpload(system.file("extdata", "00010001.dpa", package = "densitr"))
## load all files in directory
dp.list <- dpload(dp.directory = system.file("extdata", package = "densitr"))