I am developing an linux kernel module in which I want to evaluate the level of battery power supply. I measured the voltage on the battery during charging. As a result, I received the experimental dependence such as:
10:28:15 7898
10:29:15 7902
10:30:15 7908
10:31:15 7913
10:32:15 7918
10:33:15 7921

Now I need to interpolate the resulting graph with second-degree polynomial.
How can I do this with R programming language?
Use
lmto fit a linear model to data:But you should probably reconsider your quadratic model of this data.