temperature - using rWBclimate for historical data in R -
i able following code work:
world_dat <- get_ensemble_temp(world,"annualavg",2080,2100)
but change historical , start in 1920,1939 (or earlier). unfortunately keeps saying unused arguments
world_dat2 <- get_historical_temp(world,"annualavg",1920,1939)
i want create world map showing historical temperatures. appreciated. thx!
the reason why "unused argument" error because arguments these 2 functions different:
get_ensemble_temp(locator, type, start, end) get_historical_temp(locator, time_scale)
for "get_historical_temp" function, set time_scale="year", , subset years want. e.g.:
usa_dat <- get_historical_temp("usa", "year") usa_dat_small <- subset(usa_dat, year >= 1920 & year <= 1939, select=c(1:length(usa_dat)))
the outputs of these functions quite different, too. have average , summarize data "get_historical_temp" make them comparable output of "get_ensemble_temp"
also, couldn't first line work argument "world." according docs (http://cran.r-project.org/web/packages/rwbclimate/rwbclimate.pdf) have use vector of country codes in order whole world's data @ once.
Comments
Post a Comment