loadSpatial: Load Spatial File

Description Usage Arguments Value Examples

View source: R/load.R

Description

Loads a spatial file prepared for actel and appends the Standard.name column. Additionally, performs a series of quality checks on the contents of the target file.

Usage

1
loadSpatial(input = "spatial.csv", section.order = NULL)

Arguments

input

Either a data frame or the name of an input file with spatial data in the actel format.

section.order

A vector containing the order by which sections should be aligned in the results.

Value

A data frame with the spatial information present in 'spatial.csv' and the Standard.name column.

Examples

1
2
3
4
5
6
7
# This function requires the presence of a file with spatial information

# Fetch location of actel's example files
aux <- system.file(package = "actel")[1]

# run loadSpatial on the temporary spatial.csv file
loadSpatial(input = paste0(aux, '/example_spatial.csv'))

actel documentation built on Jan. 6, 2021, 1:07 a.m.