xnew_seq: Generate New Sequence for 'xnew_data()'

View source: R/xnew-seq.R

xnew_seqR Documentation

Generate New Sequence for xnew_data()

Description

Generate a new sequence of values for a vector.

Usage

xnew_seq(x, ...)

Arguments

x

The object to generate the sequence from.

...

Additional arguments passed to new_seq().

Details

xnew_seq() is a wrapper function on new_seq() for use in xnew_data() to avoid having to repeating the column name.

See Also

new_seq() and xnew_data().

Examples


data <- tibble::tibble(
  a = c(1L, 3L, 4L),
  b = c(4,4.5,6),
  d = c("a", "b", "c"))

xnew_data(data, a, b = new_seq(b, length_out = 3), xnew_seq(d, length_out = 2))

poissonconsulting/newdata documentation built on Jan. 18, 2024, 1:30 a.m.