When I query some traits for particular species I get the following warning:
1: In mean(as.numeric(species_i_data[[1]][, 1])) :
NAs introduced by coercion
2: In mean(as.numeric(species_i_data[[1]][, 1])) :
NAs introduced by coercion
and I get NA values returned when there should be means available (based on the listed sample size):
It looks like there is some kind of NA checking based on the source code for BIEN_trait_mean, but changing the 'mean' function calls to include 'na.rm = TRUE' might resolve this.
When I query some traits for particular species I get the following warning:
1: In mean(as.numeric(species_i_data[[1]][, 1])) : NAs introduced by coercion 2: In mean(as.numeric(species_i_data[[1]][, 1])) : NAs introduced by coercion
and I get NA values returned when there should be means available (based on the listed sample size):
first_species.txt
It looks like there is some kind of NA checking based on the source code for BIEN_trait_mean, but changing the 'mean' function calls to include 'na.rm = TRUE' might resolve this.