Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

emptyMatrix

Create a Template Distances Matrix


Description

Creates an empty matrix based on the local 'spatial.csv' file and saves it to 'distances.csv' so the user can manually fill it.

Usage

emptyMatrix(input = "spatial.csv")

Arguments

input

Either a data frame with spatial data or the path to the file containing the spatial information.

Details

It is highly recommended to read the vignette regarding distances matrix before running this function. You can find it by running vignette('a-2_distances_matrix', 'actel') or browseVignettes('actel')

Value

An empty matrix with the rows and columns required to operate with the target spatial file.

Examples

# This function requires a file with spatial information

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

# run emptyMatrix on the temporary spatial.csv file
emptyMatrix(paste0(aux, "/example_spatial.csv"))

actel

Acoustic Telemetry Data Analysis

v1.2.1
GPL-3
Authors
Hugo Flávio [aut, cre] (<https://orcid.org/0000-0002-5174-1197>)
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.