'R packages for symbolic regression

I want to carry out a symbolic regression with R. The rgp package is the most recommended package on the internet but it was removed from CRAN.

https://cran.r-project.org/web/packages/rgp/index.html

Does anybody know some other equivalent packages in R?



Solution 1:[1]

Ok, so you can download rgp from the (unofficial) repository of CRAN at github.com

You should start trying the git tool to do it. This way, once you've installed it, you can clone the repository with:

git clone https://github.com/cran/rgp.git

In the R/ folder of the repository (the local copy that you've downloaded or in the very github website of the rgp package) you should see all functions of the package, as .R files.

Other way to use these functions would be to build (R CMD build) the package, install it (install.packages("builtrepo.tgz",repos=NULL,type="source")) and load (with require or include).

Solution 2:[2]

I had the same problem. Try building the same structure for your register name as in your object. For example if you have this object:

{
   "car":[
      {
         "seat0":"color"
      },
      {
         "seat1":"color"
      }
   ]
}

Then if you want to map trough this and build your table, just do something like this.

{ data.map((item, index) => { 
              return (<TextField id={index} ..and so on.. 
              {...register(`car.seat${index}.color`)} />);
          }) }

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 elcortegano
Solution 2 Felházi Zoli