Displaying 1 result from an estimated 1 matches for "sighting_numb".
Did you mean:
sighting_number
2009 Jan 30
2
Subsetting without partial matches
...i){
animals[[i]] = data.frame()
})
# Add observations of each animal to the appropriate frame
donotprint <- apply(Z, 1, function(r){
ind = r[["individual_id"]]
bind = ind # Use different names to confirm that the partial matching
is being done on the left
animals[[bind]]$sighting_number <<-
c(animals[[ind, exact=TRUE]]$sighting_number, r[["sighting_number"]])
animals[[bind]]$date<<-
c(animals[[ind, exact=TRUE]]$date, r[["date"]])
animals[[bind]]$age <<-
c(animals[[ind, exact=TRUE]]$age, r[["age_num"]])
})
-...