calculate_volume_filtered: Calculate filtered volumes for nets

Description Usage Arguments Details Value Examples

Description

Recreates vCalculate_Filtered_Volume

Usage

1
2
3
4
5
6
7
8
calculate_filtered_volume(x)

calculate_filtered_volume_tbl(
  net,
  net.station.header,
  amlr.station.header,
  tucker.header.data
)

Arguments

x

a data frame the necessary columns; see Details

net

data frame;

net.station.header

data frame;

amlr.station.header

data frame;

tucker.header.data

data frame;

Details

calculate_filtered_volume takes a joined data frame as the input calculate_filtered_volume_tbl takes the table data frames as inputs

Value

A data frame...

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
calculate_filtered_volume(data.frame(
  net_id = 1:7, net_station_header_id = 1, amlr_station_header_id = 1,
  cruise = "AMLR_test", station = "St1", 
  net_type = c("I", "I", "B", "B", "T", "T", "VRS"),
  net_num = 1:7, 
  final_reading = rep(1000, 7), 
  initial_reading = rep(1, 7),
  depth_fished = as.integer(rep(170, 7)), 
  swept_volume = c(NA, NA, NA, NA, 50, 50, NA), 
  tot_dist = c(NA, NA, NA, NA, 1000, 1000, NA), 
  max_depth = as.integer(c(NA, NA, NA, NA, 179, 179, NA))
))

## Not run: 
  calculate_filtered_volume_tbl(
    oceo_net(net), 
    oceo_net_station_header(net.station.header), 
    oceo_amlr_station_header(amlr.station.header), 
    oceo_tucker_header_data(tucker.header.data)
  )

## End(Not run)

smwoodman/amlrOceo documentation built on Dec. 23, 2021, 3:27 a.m.