seq.units | R Documentation |

seq method for units objects

```
## S3 method for class 'units'
seq(from, to, by = ((to - from)/(length.out - 1)),
length.out = NULL, along.with = NULL, ...)
```

`from` |
see seq |

`to` |
see seq |

`by` |
see seq |

`length.out` |
see seq |

`along.with` |
see seq |

`...` |
see seq |

arguments with units are converted to have units of the first argument (which is either `from`

or `to`

)

```
seq(to = set_units(10, m), by = set_units(1, m), length.out = 5)
seq(set_units(10, m), by = set_units(1, m), length.out = 5)
seq(set_units(10, m), set_units(19, m))
seq(set_units(10, m), set_units(.1, km), set_units(10000, mm))
```

units documentation built on Sept. 14, 2023, 1:06 a.m.

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.