View source: R/discard_unusable.R

discard_unusable | R Documentation |

`discard_unusable`

drops observations that cannot be used
with models that convert columns to log scale, and therefore requiere non-negative
and finite observations.

Consider that some of the functions within this package will drop observations when required and it is not requiered to be run before fitting a model.

```
discard_unusable(data, columns)
```

`data` |
(Type: data.frame) the dataset to be used. |

`columns` |
The columns to be cleaned (e.g. |

The function returns the summary of the estimated gravity model as an
`lm`

-object.

`lm`

, `coeftest`

,
`vcovHC`

```
discard_unusable(gravity_zeros, "flow")
discard_unusable(gravity_zeros, c("flow", "distw"))
```

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.