New versions of ABCoptim and googlePublicData on CRAN

November 7, 2017

[This article was first published on Posts on GGVY, and kindly contributed to R-bloggers]. (You can report issue about the content on this page here)
Want to share your content on R-bloggers? click here if you have a blog, or here if you don't.

Finally, after a long wait, the R packages googlePublicData (more than 2 years since the last update!) and ABCoptim (roughly a year since the last update) have new versions on CRAN.

The first just got an update that fixed some nasty bugs that were evident once you upload the data to Google Public Data Explorer, and some other new internal stuff making the code nicer and easier to maintain. The later also got some small updates, a couple of new parameters matching optim, and new methods for printing and plotting the results.

Here is an example of ABCoptim (from the manual)

# Loading the package

# This function has a minimum at (pi,pi)
fun <- function(x) {
  -cos(x[1])*cos(x[2])*exp(-((x[1] - pi)^2 + (x[2] - pi)^2))

# Calling the function!
abc_optim(rep(0,2), fun, lb=-10, ub=10, criter=50)
##  An object of class -abc_answer- (Artificial Bee Colony Optim.):
##  par:
##     x[1]:  3.141593
##     x[2]:  3.141593
##  value:
##           -1.000000
##  counts:
##            208

And here an example of what can you get with googlePublicData

To leave a comment for the author, please follow the link and comment on their blog: Posts on GGVY. offers daily e-mail updates about R news and tutorials about learning R and many other topics. Click here if you're looking to post or find an R/data-science job.
Want to share your content on R-bloggers? click here if you have a blog, or here if you don't.

If you got this far, why not subscribe for updates from the site? Choose your flavor: e-mail, twitter, RSS, or facebook...

Comments are closed.

Search R-bloggers


Never miss an update!
Subscribe to R-bloggers to receive
e-mails with the latest R posts.
(You will not see this message again.)

Click here to close (This popup will not appear again)