lit: Create a Column of literal value

Description Usage Arguments Value Examples

View source: R/columns.R

Description

Create a Column object out of character, numeric, or boolean value

Usage

1
2
3
4
5
lit(.x)

as.Column(.x)

as_Column(.x)

Arguments

.x

a literal value or a Column object. A literal value can be an arbitrary value like a character, string, or boolean value.

Value

a Column object

Examples

1
2
3
4
5
6
7
## Not run: 
# these do the same thing:
as.Column("derpin'")
as_Column("all day")
lit("long")

## End(Not run)

danzafar/tidyspark documentation built on Sept. 30, 2020, 12:19 p.m.