Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Barry Rowlingson
hexes
Commits
4f900492
Commit
4f900492
authored
Oct 27, 2020
by
Barry Rowlingson
Browse files
readme for data
parent
fac8b6b8
Changes
1
Hide whitespace changes
Inline
Side-by-side
README_data.md
0 → 100644
View file @
4f900492
Data Description
================
Geopackages here contain:
*
Tables called
`level_N`
where
`N`
is the Uber H3 Hex resolution. These
are geopackage polygon layers.
These can be read with
`sf::st_read`
:
```
u1 = st_read("./hexes/inst/data/uk_hex_1_6.gpkg","level_1")
```
*
Tables called
`adjlevel_N`
where
`N`
is the Uber H3 Hex resolution. These
have two columns,
`i`
and
`j`
, showing adjacency between row
`i`
and
row
`j`
in the corresponding
`level_N`
table. There are no self-adjacencies
in this table, and hexes that have no neighbours do not appear.
These can be read with the
`DBI`
and
`RSQLite`
packages:
```
> con = dbConnect(SQLite(), "./hexes/inst/data/uk_hex_1_6.gpkg")
> adj1 = dbReadTable(con,"adjlevel_1")
> dim(adj1)
[1] 14 2
```
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment