| bq_field {bigrquery} | R Documentation |
bq_field() and bq_fields()create;as_bq_field()andas_bq_fields()'
coerce from lists.
bq_field(name, type, mode = "NULLABLE", fields = list()) bq_fields(x) as_bq_field(x) as_bq_fields(x)
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 |
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)