Returns a tiledb_attr
object associated with the tiledb_array_schema
with a given index
Source: R/ArraySchema.R
attrs-tiledb_array_schema-numeric-method.Rd
The attribute index is defined by the order the attributes were defined in the schema
Usage
# S4 method for class 'tiledb_array_schema,numeric'
attrs(object, idx, ...)
Examples
dom <- tiledb_domain(dims = c(tiledb_dim("d1", c(1L, 10L), type = "INT32")))
sch <- tiledb_array_schema(dom, attrs = c(
tiledb_attr("a1", type = "INT32"),
tiledb_attr("a2", type = "FLOAT64")
))
attrs(sch, 2)
#> tiledb_attr(name="a2", type="FLOAT64", ncells=1, nullable=FALSE)