put_in_pos

0th

Percentile

Put specified strings in specified positions in an otherwise empty character vector.

Create a character vector with a set of strings at specified positions in that character vector, with the rest of it taken up by empty strings.

Usage
put_in_pos(strings, positions)
Arguments
strings

A character vector of the strings to put in positions (coerced by as.character if not character already).

positions

The indices of the character vector to be occupied by the elements of strings. Must be the same length as strings or of length 1.

Value

A character vector.

Aliases
  • put_in_pos
Examples
# NOT RUN {
put_in_pos(1:3, c(1, 8, 9))
put_in_pos(c("Apple", "Orange", "County"), c(5, 7, 8))
put_in_pos(1:2, 5)
# }
Documentation reproduced from package filesstrings, version 3.0.0, License: GPL-3

Community examples

Looks like there are no examples yet.