lxy.exp.shp: Export a LoCoH-xy to shapefile

Description Usage Arguments Details Value See Also

Description

Export a LoCoH-xy object to point shapefile

Usage

1
2
3
lxy.exp.shp(lxy, id = NULL, dir = ".", file.base = "", anv = "all",
  idsSeparate = FALSE, autoName = c("long", "short", "none")[1],
  status = TRUE)

Arguments

lxy

A LoCoH-xy object

id

The name(s) of individuals to export. If NULL all individuals will be exported

dir

The directory where the shapefiles will be placed (use "." for the working directory, and "~" for the home directory)

file.base

The base of the file name without any extension (the script will append to this)

anv

The name of ancillary variables(s) to be exported in the attribute table. Character vector or comma separated string.

idsSeparate

Whether to export the locations for each individual in separate shapefiles. T/F

autoName

The rule for constructing a filename: short (consisting of the id(s) only), long (id + num points), or none

status

Show messages. T/F

Details

Filenames are automatically generated, but the user can specify the directory and a base (file.base). If a shapefile already exists, a unique filename will be constructed using two-digit numeric extension. For shorter filenames, pass autoName="short".

Use the anv argument to specify which ancillary variables (i.e., attribute fields) should be exported. To not export any ancillary variables, pass an empty string.

Only the individual locations and their ancillary values are exported. The nearest neighbor table is not exported.

Value

A character vector of the shapefile(s) created

See Also

lxy.exp.kml, lxy.exp.mov


tlocoh documentation built on May 2, 2019, 5:27 p.m.