Returns a list of all tiledb_attr objects associated with the tiledb_array_schema

# S4 method for tiledb_array_schema,ANY
attrs(object, idx, ...)

Arguments

object

tiledb_array_schema

Value

a list of tiledb_attr objects

Examples

ctx <- tiledb_ctx() dom <- tiledb_domain(ctx, dims = c(tiledb_dim(ctx, "d1", c(1L, 10L), type = "INT32"))) sch <- tiledb_array_schema(ctx, dom, attrs = c(tiledb_attr(ctx, "a1", type = "INT32"), tiledb_attr(ctx, "a2", type = "FLOAT64"))) attrs(sch)
#> $a1 #> #> $a2 #>
lapply(attrs(sch), datatype)
#> $a1 #> [1] "INT32" #> #> $a2 #> [1] "FLOAT64" #>