vec2strI: Convert a line of text representing a vector to a string (for...

View source: R/vec2str.R

vec2strIR Documentation

Convert a line of text representing a vector to a string (for assignment)

Description

Convert a line of text representing a vector to a string (for assignment)

Usage

vec2strI(vec)

Arguments

vec

a line of text to convert

Value

inplace replacement of the line to a string

Examples

## Not run: 
islands_startingWithA <- grep("^A", names(islands), value = TRUE) |> vec2strI(vec = _)
#---
# need a separator or to use alt + enter because ctrl + enter ends on the
# next line and so the range start there, so if the function is there too
# it will act there instead
grep("^A", names(islands), value = TRUE) |> vec2strI(vec = _)

## End(Not run)

salix-d/salix_miscFuns documentation built on Aug. 14, 2024, 7:45 p.m.