Description Usage Arguments Value Examples

Calculate beta coefficients for a straight line connecting two points. This function is used to calculate strength of attack with distance redcution.

1 | ```
linear_model(a, b)
``` |

`a` |
first point - numeric vector of length of 2 |

`b` |
second point - numeric vector of length of 2 |

Beta coefficients for line which connects points a and b

1 | ```
linear_model(a = c(0, 10), b = c(10, 1))
``` |

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.