Commit 775b9a03 authored by Jean-Marie Lepioufle's avatar Jean-Marie Lepioufle

first commit

parents
Package: river
Type: Package
Version: 0.0.1
Authors@R: c(person("Jean-Marie", "Lepioufle", , "jml@nilu.no", role=c("aut","cre")))
Title: river
Description: Norwegian rivers converted into sf format.
Depends:
R (>= 3.4.4)
VignetteBuilder: knitr
License: GPL-3
Encoding: UTF-8
LazyData: false
RoxygenNote: 6.1.1
# Generated by roxygen2: do not edit by hand
#' Norwegian rivers
#'
#' river shapefile convert into R format.
#' The original dataset is available at http://nedlasting.nve.no/gis/
#'
#' @docType data
#' @name river_norway
#' @format A rda file
#' @keywords datasets
#' @references the Norwegian Water Resources and Energy Directorate (NVE)
#' @source \href{http://www.nve.no}{NVE}
NULL
# river
## Description
The package gathers river shapefiles converted into sf spatial object.
All the data comes from [NVE](https://nve.no) at this [link](http://nedlasting.nve.no/gis/).
This is **not** an official package built by NVE.
Sofar only Norwegian rivers are included in this dataset.
## Attribution
1. Copyright NVE
2. Source [NVE](https://nve.no)
3. License Statement: This data is published under the Norwegian license for Public Data [NLOD](https://data.norge.no/nlod/no).
4. Disclaimer: NVE fraskriver seg ansvar for skade som skyldes feil i data og feil bruk av data..
5. The dataset is not the official dataset and got some changes: i) the structure and the format of the data have been adapted to be read by the R-package [sf](https://github.com/r-spatial/sf), ii) the dataset respect the UTF-8 format, iii) all the other values have been kept as they were.
## Installation
```R
#devtools::install_github("r-lib/devtools")
library("devtools")
devtools::install_git("https://git.nilu.no/rgis/river.git")
```
# install.packages("devtools")
devtools::install_github("jeanmarie-eu/river")
install.packages("sf")
install.packages("sp")
library(river)
library(sf)
data(river_norway)
river_norway <- st_as_sf(river_norway)
save(river_norway,file="river_norway.rda",compress="xz")
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/river_norway.R
\docType{data}
\name{river_norway}
\alias{river_norway}
\title{Norwegian rivers}
\format{A rda file}
\source{
\href{http://www.nve.no}{NVE}
}
\description{
river shapefile convert into R format.
The original dataset is available at http://nedlasting.nve.no/gis/
}
\references{
the Norwegian Water Resources and Energy Directorate (NVE)
}
\keyword{datasets}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment