FD {CoastlineFD}R Documentation

FD

Description

Calculation of the fractal dimension of a coastline using both methods

Usage

FD(DinputPath, BinputPath, netPath, outputPath, year, r, pearsonValue, writeF, showF)

Arguments

DinputPath

All density coastline files path

BinputPath

All origin coastline files path

netPath

All fishnet files path

outputPath

All results will be exported here

year

R vector object, which represent your study time

r

R vector object, which represent your study scale

pearsonValue

The Pearson coefficient of your input data

writeF

Exporting Function's result

showF

Drawing Function's result

Value

An .xlsx file containing the results of the coastline fractal dimension

Examples


DinputPath = list.files(system.file('extdata', package = 'CoastlineFD'),full.names = TRUE)[2]
BinputPath = list.files(system.file('extdata', package = 'CoastlineFD'),full.names = TRUE)[1]
netPath = list.files(system.file('extdata', package = 'CoastlineFD'),full.names = TRUE)[3]
outputPath = paste0(system.file('extdata', package = 'CoastlineFD'), "/FD1985_1986.xlsx")

FD(
  DinputPath,
  BinputPath,
  netPath,
  outputPath,
  c(1985:1986),
  c(300, 600, 900, 1000, 1050, 1100),
  0.00,
  FALSE,
  TRUE
)


[Package CoastlineFD version 1.1.2 Index]