# NOT RUN {
trip1 <- data.frame(
eunr_id = "my_boat", loa = 2000, gt = 70, kw = 400,
trip_id = "trip1",
# 4 day trip
depdate = "20140718", deptime = "0615", retdate = "20140721", rettime = "1615",
# Only fish on 2 of those
fishdate = c("20140719", "20140719", "20140719", "20140719", "20140720",
"20140720", "20140720"),
gear = c("OTB","OTB","OTB","GN","OTB","GN","FPO"), gear_mesh_size = c(80,80,80,50,80,50,0),
fishing_area = "27.4.B",
economic_zone = "EU",
rectangle = c("39F0","40F0","41F0","41F0","41F0","41F0","41F0"),
stringsAsFactors = FALSE
)
fd <- calc_fishing_days_trip(trip1)
# }
Run the code above in your browser using DataLab