Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Helmer Belbo
vsop
Commits
cff92490
Commit
cff92490
authored
Mar 26, 2020
by
Helmer Belbo
Browse files
Better README
parent
126fc344
Changes
1
Hide whitespace changes
Inline
Side-by-side
README.md
View file @
cff92490
...
...
@@ -12,22 +12,41 @@ https://www.ssb.no/statbank/list/skogav
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:
`invisible(
```
r
invisible
(
lapply
(
c
(
"magrittr"
,
"stringr"
,
"dplyr"
,
"tibble"
,
"lubridate"
,
"readxl"
,
"PxWebApiData"
),
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`
library
,
character.only
=
T
))
```
`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`
Install package in R:
```
r
devtools
::
install_git
(
'https://gitlab.nibio.no/hbel/vsop.git'
)
```
`vsop::ssb_skog_omsetning()`
`vsop::t03895()`
`vsop::t06216()`
`vsop::t12750()`
Demo:
```
r
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
```
```
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
()
```
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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