master_func: master_func

Description Usage Arguments Details Examples

View source: R/master_func.R

Description

Runs some functions of ototools.

Usage

1
2
master_func(fish, format = "txt", sep = "\t", basic = NULL,
  catch_day = NULL, dir = getwd(), section = NULL)

Arguments

fish

name of the files to be loaded

format

format of the files to be loaded (either txt or csv); has to be the same for every file, default is txt

sep

the separator used by the files to be loaded; has to be the same for every file, default is tab

basic

a dfr with some basic measurements for the fish analysed

catch_day

name of the column containing the catch day in julian days

dir

path to a folder common to all elements of fish as well as basic

section

which sections to be loaded. Has to be part of the filename!

Details

Uses load_fish + oto_makro + master_tab for a list with n filenames. If basic is given, it will merge basic to the mastertable created by master_tab. If catch_day is given it will add julday in addition to ring_no. Will automatically add the moving average based on the method published by Huessy et al. 2003. Will automatically calculate the otolith radius at increment x.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
#rm(list = ls())
fish <- c("708", "708")
format <- "csv"
sep <- ";"
test <- basic[, names(basic) != "age"]
catch_day <- "catchday"

x <- master_func(fish = fish, format = format, sep = sep,
                 basic = test, catch_day = catch_day, dir = substr(getwd(), 1, 11))
x

x <- master_func(fish = fish, format = format, sep = sep, dir = substr(getwd(), 1, 11))
x

reneplonus/ototools documentation built on May 3, 2019, 4:05 p.m.