R: BiqQuery field (and fields) class

bq_field {bigrquery} | R Documentation

## BiqQuery field (and fields) class

### Description

`bq_field() and` bq_fields()`create;`as_bq_field()`and`as_bq_fields()' coerce from lists.

### Usage

    bq_field(name, type, mode = "NULLABLE", fields = list())

    bq_fields(x)

    as_bq_field(x)

    as_bq_fields(x)

### Arguments

`name` | Field name
`type` | Field type
`mode` | Field mode
`fields` | For a field of type "record", a list of sub-fields.
`x` | A list of `bg_fields`

### Examples

    bq_field("name", "string")

    as_bq_fields(list(
      list(name = "name", type = "string"),
      bq_field("age", "integer")
    ))

    # as_bq_fields() can also take a data frame
    as_bq_fields(mtcars)

[Package bigrquery version 1.1.0 Index]