Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

new-vector-along-retired

Create vectors matching the length of a given vector


Description

These functions are deprecated as of rlang 0.3.0 because they are longer to type than the equivalent rep_along() or rep_named() calls without added clarity.

Usage

new_logical_along(x, names = base::names(x))

new_integer_along(x, names = base::names(x))

new_double_along(x, names = base::names(x))

new_character_along(x, names = base::names(x))

new_complex_along(x, names = base::names(x))

new_raw_along(x, names = base::names(x))

new_list_along(x, names = base::names(x))

Arguments

x

A vector.

names

Names for the new vector.


rlang

Functions for Base Types and Core R and 'Tidyverse' Features

v0.4.11
MIT + file LICENSE
Authors
Lionel Henry [aut, cre], Hadley Wickham [aut], mikefc [cph] (Hash implementation based on Mike's xxhashlite), Yann Collet [cph] (Author of the embedded xxHash library), RStudio [cph]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.