zhang chi wrote: > For example: > I install a package like the following: > > R CMD INSTALL ~/kernlab_0.9-5.tar.gz > > I use this package like the following: > > library(kernlab) > rbf <- rbfdot(sigma = > 0.05) > > My questions is how I can use this package in Rpy environment?
# start rpy: from rpy import r # load package: r.library("kernlab") # create object: rbd = r.rbfdot(sigma=0.05) # use R's print method to print it, since its an R object: r.print_(rbd) Gaussian Radial Basis kernel function. Hyperparameter : sigma = 0.05 - basically a package can be loaded with r.library("foo"), and any functions in a package can be run with r.bar(args) in the usual way. Barry ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ rpy-list mailing list rpy-list@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/rpy-list