[R] cannot access the functions in the package

Duncan Murdoch murdoch.duncan at gmail.com
Fri Dec 9 13:27:55 CET 2011

On 11-12-08 1:30 PM, Weizeng Ni wrote:
> hi, I am using the package of "Fslector" which contains a function named
> "information.gain". I want to see the detailed code of this function. the
> result shows
>> information.gainfunction (formula, data)
> {
>      information.gain.body(formula, data, type = "infogain")
> }
> When I then try to see the code of  information.gain.body, it shows
> Error: could not find function "information.gain.body".
> Why cannot I get access to the codes?

You probably need to use Fslector:::information.gain.body, or (even 
better) look at the source for the package, which you should be able to 
get using

download.packages("Fslector", type="source", destdir=<your directory>)

Duncan Murdoch

More information about the R-help mailing list