Search code examples
routliersanomaly-detectionr-forge

Isolation Forest in R


I'm currently working on identifying outliers in my data set using the IsolationForest method in R. The execution of the existing project on https://r-forge.r-project.org/R/?group_id=479 failed, it displays:

RTver <- read.dcf(file=system.file("DESCRIPTION", package=pkgname), fields="Version") 
Error in system.file("DESCRIPTION", package = pkgname) : object 'pkgname' not found

Thanks in advance for the help!


Solution

  • You haven't specified package; pkgname is just a placeholder.

    Not sure why you want to extract the version number from the Debian Control File (DCF), but for package IsolationForest the command would be (provided you have installed IsolationForest)

    RTver <- read.dcf(
        file = system.file("DESCRIPTION", package = "IsolationForest"), 
        fields = "Version");
    RTver;
    #     Version
    #[1,] "0.0-26"