New versions of ABCoptim and googlePublicData on CRAN

November 7, 2017
By

(This article was first published on Posts on GGVY, and kindly contributed to R-bloggers)

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
library(ABCoptim)

# 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.

R-bloggers.com offers daily e-mail updates about R news and tutorials on topics such as: Data science, Big Data, R jobs, visualization (ggplot2, Boxplots, maps, animation), programming (RStudio, Sweave, LaTeX, SQL, Eclipse, git, hadoop, Web Scraping) statistics (regression, PCA, time series, trading) and more...



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

Sponsors

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)