Seems like rfishbase::fishbase switched to a tibble (rfishbase version 2.99). Running tolower on a column of a data_frame indexed by [,'Genus'] does some strange stuff since tolower takes a vector and [,"Genus"] on a tibble returns a data_frame. Simple fix to just using tolower(rfishbase::fishbase$Genus)/ tolower(rfishbase::fishbase$Species) instead (and using $ is actually a bit faster for data_frames, though doesn't matter much in this context)
Seems like
rfishbase::fishbase
switched to atibble
(rfishbase
version 2.99). Runningtolower
on a column of adata_frame
indexed by [,'Genus'] does some strange stuff sincetolower
takes a vector and [,"Genus"] on a tibble returns adata_frame
. Simple fix to just using tolower(rfishbase::fishbase$Genus)/ tolower(rfishbase::fishbase$Species) instead (and using$
is actually a bit faster fordata_frames
, though doesn't matter much in this context)Created on 2018-10-23 by the reprex package (v0.2.1)