How can I load a numerical value from a saved file instead of hard coding coefficients?

39 views Asked by At

How to load a number from a save or dump file? Here's my code example so far:

t = lm(cars$dist~cars$speed)# build linear regression and get coefficients. 
car_speed = seq(cars$speed)
D.hat = -17.579 + 3.932 * car_speed 
0

There are 0 answers