Skip to contents

Coerce a dtable's table index to a tibble

Usage

# S3 method for class 'harbour_dtable'
as_tibble(x, ...)

Arguments

x

A harbour_dtable.

...

Unused.

Value

A tibble with one row per table and columns name (chr), n_rows (int), n_columns (int) and n_views (int). Unlike the server path, the row count is real: the rows are in the file.

Examples

tibble::as_tibble(hb_dtable(Samples = data.frame(x = 1)))
#> # A tibble: 1 × 4
#>   name    n_rows n_columns n_views
#>   <chr>    <int>     <int>   <int>
#> 1 Samples      1         1       1