powered by
merge the result from bugs function
# S4 method for data.frame mergeBugsData( x, bugsSummary, by.x = NULL, newcol = "mean", ... ) # S4 method for SpatialPolygonsDataFrame mergeBugsData( x, bugsSummary, by.x = NULL, newcol = "mean", ... )
spatial polygon object i.e population data set (popdata)
posterior distribution result from summaryChain function
the common term from the spatial polygon object and the bugs function result
the summary statistic that to be merged back to the data frame
additional arguments
# NOT RUN { if(require('diseasemapping')){ data('popdata') newdata = c("3560102"=2, "3560104"=3) popdatatry = mergeBugsData(popdata, newdata, by.x="CSDUID") } # }
Run the code above in your browser using DataLab