retentionmort_figure {retmort}R Documentation

Generate a .html markdown file of preliminary figures pertaining from either the retenionmort() or retentionmort_generation() function.

Description

By inputing the datacomp dataframe, this function will save a markdown file in the working directory named retentionmort.htmlthat provides helpful information on the error associated with the number of recaptured individuals compared to the expected number provided by the model. Some figures will be less applicable for the field data application using the retentionmort() function due to a low sample size, specifically figures 5 and 6.

Usage

retentionmort_figure(datacomp)

Arguments

datacomp

The file generated from either the retentionmort() or retentionmort_generation() functions.

Value

This function will return one markdown file named retentionmort.html in your current working directory listing some helpful information for analyzing model data generated from the retentionmort() or retentionmort_generation() functions

Examples


#Using retentionmort_generation() to produce multiple iterations of data to
#run the model through
   
   datacomp = retentionmort_generation()
   Rmark = file.path(tempdir(),retentionmort_figure(datacomp))
   unlink("retentionmort.Rmd")
   unlink("retentionmort.html")
   

#Creating a dataset with test_dataset_retentionmort() and running the
#retentionmort() function
   ret_env <- new.env()
   data<- test_dataset_retentionmort()
   list2env(data, envir = ret_env)
   datacomp = retentionmort(n_c1=ret_env$n_c1, nT=ret_env$nT,
                TaL=ret_env$TaL, c=ret_env$c, R=ret_env$R, err=ret_env$err)
#Creating the markdown on datacomp
   Rmark = file.path(tempdir(),retentionmort_figure(datacomp))
   unlink("retentionmort.Rmd")
   unlink("retentionmort.html")



[Package retmort version 1.0.0 Index]