Skip to content
Snippets Groups Projects
Commit cff92490 authored by Helmer Belbo's avatar Helmer Belbo
Browse files

Better README

parent 126fc344
No related branches found
No related tags found
No related merge requests found
...@@ -12,22 +12,41 @@ https://www.ssb.no/statbank/list/skogav ...@@ -12,22 +12,41 @@ https://www.ssb.no/statbank/list/skogav
This package should ease the collection of these data into R. This package should ease the collection of these data into R.
This should install it to R:
`devtools::install_git('https://gitlab.nibio.no/hbel/vsop.git')`
Load dependent packages: Load dependent packages:
`invisible( ```r
invisible(
lapply( c("magrittr","stringr","dplyr","tibble","lubridate","readxl","PxWebApiData"), lapply( c("magrittr","stringr","dplyr","tibble","lubridate","readxl","PxWebApiData"),
library,character.only =T))` library,character.only =T))
```
Demo:
`vsop::regnavn.at.ref.yr(regionstat = vsop::t12750(), ref.yr = 2020 ) -> fylke_priser`
`vsop::regnavn.at.ref.yr(regionstat = vsop::t03895(geolevel = "fylke"), ref.yr = 2020 ) -> fylke_volum`
`vsop::regnavn.at.ref.yr(regionstat = vsop::t03895(geolevel = "kommune"), reg_level = "kommune", ref.yr = 2020 ) -> kommune_volum` Install package in R:
`vsop::regnavn.at.ref.yr(regionstat = vsop::t03794( geolevel = "kommune"), reg_level = "kommune", ref.yr = 2020 ) -> kommune_verdi` ```r
devtools::install_git('https://gitlab.nibio.no/hbel/vsop.git')
```
`vsop::ssb_skog_omsetning()` Demo:
`vsop::t03895()` ```r
`vsop::t06216()` vsop::regnavn.at.ref.yr(regionstat = vsop::t12750(), ref.yr = 2020 ) -> fylke_priser
`vsop::t12750()` vsop::regnavn.at.ref.yr(regionstat = vsop::t03895(geolevel = "fylke"), ref.yr = 2020 ) -> fylke_volum
```
```r
vsop::regnavn.at.ref.yr(
regionstat = vsop::t03895(geolevel = "kommune"),
reg_level = "kommune",
ref.yr = 2020
) -> kommune_volum
vsop::regnavn.at.ref.yr(
regionstat = vsop::t03794( geolevel = "kommune"),
reg_level = "kommune",
ref.yr = 2020
) -> kommune_verdi
```
```r
vsop::ssb_skog_omsetning()
vsop::t03895()
vsop::t06216()
vsop::t12750()
```
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment