as_type: As Type

View source: R/utility_functions.R

as_typeR Documentation

As Type

Description

Convert a vector to a specific type

Usage

as_type(x, type)

Arguments

x

a vector

type

the type to convert the vector to

Details

This function is used to convert a vector to a specific type, for instance where variables need to match types in joins.

Value

a vector of with the values of x and the same type as type


MatthewJWhittle/getarc documentation built on April 22, 2023, 12:16 p.m.