#> Reformating the example dataset to fit this function
distributions <- cbind('ProxyName'= rep('Taxon1', nrow(reconstr$modelling$distributions[[1]])),
reconstr$modelling$distributions[[1]],
stringsAsFactors = FALSE)
for(tax in names(reconstr$modelling$distributions)[-1]) {
distributions <- rbind(distributions,
cbind('ProxyName'= rep(tax, nrow(reconstr$modelling$distributions[[tax]])),
reconstr$modelling$distributions[[tax]],
stringsAsFactors = FALSE)
)
}
distributions <- distributions[, c(2,1,3:6)]
print(head(distributions))
climate_space <- reconstr$modelling$climate_space
print(head(climate_space))
x <- crest.set_modern_data(distributions, df=crest_ex,
climate = c("bio1", "bio12"))
x <- crest.set_modern_data(distributions, df=crest_ex,
climate_space=climate_space,
climate = c("bio1", "bio12"))
Run the code above in your browser using DataLab