Displaying 1 result from an estimated 1 matches for "nanim".
Did you mean:
tanim
2017 Dec 14
0
multiple instances of predictor variable per model
...;s a little mock data set for 3 surveys - 2 have a single ship, and 1
has two ships. Note that each survey is only done once, so if there are 2
ships (or more), the number of animals (and all other survey-related info)
is just copied over on another line
df <- data.frame(Survey = c(1, 1, 2, 3), NAnimals = c(10, 10, 1, 0),
Vessel = c("A", "B", "C", "D"), VesselLength = c(20, 50, 40, 70),
VesselSpeed = c(10, 5, 4, 5), Direction = c("West", "East", "West", "West"))
Disclaimer: this is a crosspost from here (
https://s...