mardi 20 février 2018

Web input and result retrieval R

I am developing a routine in R and I came across this issue. I would like to write a code that inputs given data in a website fields and retrieve the results produced.

Let's assume I am looking for insurance quotes on a web comparison website and I have a data frame in which every row is the description of a possible customer. In this data frame there are variables such as age, car model, car year... that will go into the fields on the website.

Once these information have been input, the website will return different quotes from different companies. I would like to store these numbers into a data frame.

More specifically the data frames could look like this

Input:

  age    car car_year
1  20  dodge     2010
2  25   ford     2014
3  43 toyota     2009
4  50    bmw     2013

Output:

  Company1 Company2 Company3
1      200      230      220
2      254      244      256
3      234      264      284
4      500      510      520

Is this something that is even feasible in R or I should look for other languages? If it could be done, what packages shall I use?

Thank you very much for your help, Marco




Aucun commentaire:

Enregistrer un commentaire