Logo ROOT   6.13/01
Reference Guide
Files
R tutorials

Examples showing the R interface.

Files

file  DataFrame.C
  View in nbviewer Open in SWAN
 
file  example.C
  View in nbviewer Open in SWAN Simple example on how to use ROOT-R interface.
 
file  Function.C
  View in nbviewer Open in SWAN
 
file  Functor.C
  View in nbviewer Open in SWAN Example to create class Functor
 
file  GlobalMinimization.C
  View in nbviewer Open in SWAN Example based in http://cran.r-project.org/web/packages/DEoptim/DEoptim.pdf Please install the R package DEoptim before run this example.
 
file  Integration.C
  View in nbviewer Open in SWAN Numerical integration using R passing the function from ROOT
 
file  Interpolation.C
  View in nbviewer Open in SWAN More Information for R interpolation in http://stat.ethz.ch/R-manual/R-patched/library/stats/html/approxfun.html NOTE: this example illustrates an interpolation with random points given from ROOT and procedures made in R's environment.
 
file  Minimization.C
  View in nbviewer Open in SWAN Example based in http://root.cern.ch/root/html/tutorials/fit/NumericalMinimization.C.html http://stat.ethz.ch/R-manual/R-devel/library/stats/html/optim.html
 
file  SimpleFitting.C
  View in nbviewer Open in SWAN Create an exponential fitting The idea is to create a set of numbers x,y with the function x^3 and some noise from ROOT, fit the function to get the exponent (which must be near 3) and plot the points with noise, the known function and the fitted function