Copy Data Files for Example
This command copies several data files to a folder (directory) chosen by the user, so that they can be used for a practice example.
copyExampleFiles(which, folder = getwd())
- Character string name (partially matched)
of one of the datasets installed in
spatstatfor which the original data files are provided. If
whichis missing, a list of available options is printed.
- Character string path name of a folder (directory) in which the files will be placed. Defaults to the current working directory.
The original text files containing data for the selected dataset are copied to the chosen folder.
This is part of an exercise described in Chapter 3 of Baddeley, Rubak and Turner (2015).
Baddeley, A., Rubak, E. and Turner, R. (2015) Analysing Spatial Point Patterns with R. Chapman and Hall/CRC, to appear.