Skip to content
This repository has been archived by the owner on Oct 17, 2020. It is now read-only.

Fix undefined columns error and update README.md #25

Merged
merged 2 commits into from
Dec 22, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions R/utils.R
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ LongToWideFormat = function(layer) {
#' @author Jussi Jousimo \email{jvj@@iki.fi}
#' @export
wideToLongFormat = function(layer, timeColumnNamePattern = "^time\\d*$",
measurementColumnNamePattern = "^result\\.Measurement",
measurementColumnNamePattern = "^measurement",
variableColumnName = "variable") {
if (missing(layer))
stop("Required argument 'layer' missing.")
Expand All @@ -179,7 +179,7 @@ wideToLongFormat = function(layer, timeColumnNamePattern = "^time\\d*$",
measurement = olddf[,measurementIndex[i]])
newdf <- rbind(newdf, x)
}

coords <- sp::coordinates(layer)
newlayer <- sp::SpatialPointsDataFrame(coords[rep(1:nrow(coords), n),],
data = newdf,
Expand Down
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,10 @@ Install `gdal` / `gdal-devel` packages using your Linux distibution's package
manager. See [here](https://trac.osgeo.org/gdal/wiki/DownloadingGdalBinaries) on
some pointers on where to find suitable binaries.

__Installing GDAL on Ubuntu 16.04:__

Install `gdal-bin` and `libgdal-dev` packages.

__Adding GDAL command line tools to your path__

In Linux, the tools should be found from the path by default after installation.
Expand Down