popsCopy | R Documentation |
Copies populations from a DAF file into a copy of another DAF file. Only creates new file with copied population.
popsCopy(
from,
into,
write_to,
pops,
use_regex = FALSE,
overwrite = FALSE,
append_name = TRUE,
offset = 0,
endianness = .Platform$endian,
verbose = FALSE,
...
)
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. |
Populations are exported as tagged populations.
a new file is created containing exported populations.
It invisibly returns full path of exported file.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.