popsCopy {IFC} | R Documentation |
Copy Populations from One File to Another File
Description
Copies populations from a DAF file into a copy of another DAF file. Only creates new file with copied population.
Usage
popsCopy(
from,
into,
write_to,
pops,
use_regex = FALSE,
overwrite = FALSE,
append_name = TRUE,
offset = 0,
endianness = .Platform$endian,
verbose = FALSE,
...
)
Arguments
from |
path to file to copy populations from. |
into |
path to file that will be used as a template to copy population into. Caution, it is mandatory that 'into' contains 'from' starting at 'offset'. |
write_to |
pattern used to export file.
Placeholders, like "%d/%s_fromR.%e", will be substituted: |
pops |
regular expression or vector of desired populations present in 'from'. |
use_regex |
whether to use regex to pick up population into 'from'. Default is FALSE. |
overwrite |
whether to overwrite existing file or not. Default is FALSE.
Note that if TRUE, it will overwrite exported file if path of 'into' and deduced from 'write_to' arguments are different.
Otherwise, you will get an error saying that overwriting source file is not allowed. |
append_name |
whether to append_name basename(from) to exported populations. Default is TRUE. |
offset |
Object number of 1st object of 'from' in 'into'. Default is 0. |
endianness |
The endian-ness ("big" or "little") of the target system for the file. Default is .Platform$endian. |
verbose |
whether to display information (use for debugging purpose). Default is FALSE. |
... |
Other arguments to be passed. |
Details
Populations are exported as tagged populations.
Value
a new file is created containing exported populations.
It invisibly returns full path of exported file.