Ring lattice graph

Takes a numeric vector and maps it into a finite length sequence

1 | ```
round_to_seq(x, nlevels = 20, as_factor = FALSE)
``` |

`x` |
A numeric or integer vector. |

`nlevels` |
Integer scalar. Length of the sequence to be map onto. |

`as_factor` |
Logical scalar. When |

A vector of length `length(x)`

with values mapped to a sequence
with `nlevels`

unique valuess

Used in `diffmap`

and `plot_diffnet2`

1 2 3 | ```
x <- rnorm(100)
w <- data.frame(as.integer(round_to_seq(x, as_factor = TRUE)),x)
plot(w,x)
``` |

Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.