Skip to content

Instantly share code, notes, and snippets.

@nylen
Created October 17, 2010 05:23
Show Gist options
  • Save nylen/630566 to your computer and use it in GitHub Desktop.
Save nylen/630566 to your computer and use it in GitHub Desktop.
> model = lm(time ~ count_no_fp, data=d)
> model
Call:
lm(formula = time ~ count_no_fp, data = d)
Coefficients:
(Intercept) count_no_fp
1.287e+09 -3.701e+00
> coefs = coef(model)
> coefs
(Intercept) count_no_fp
1.287365e+09 -3.700978e+00
> -coefs[1] / coefs[2]
(Intercept)
347844532
> as.POSIXct(347844532)
Error in as.POSIXct.numeric(347844532) : 'origin' must be supplied
>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment