Skip to content

Commit

Permalink
Set geometry for coords
Browse files Browse the repository at this point in the history
  • Loading branch information
PhilipMostert committed Jan 22, 2024
1 parent bf45e11 commit 70d19f6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions R/dataSet.R
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ dataSet <- function(datapoints, datanames, coords, proj, pointcovnames,

if (inherits(datapoints[[dat]], 'sf')) {

st_geometry(datapoints[[dat]]) <- 'geometry'
coordsSF <- sf::st_coordinates(datapoints[[dat]])
colnames(coordsSF) <- coords
datapoints[[dat]][, coords] <- coordsSF
Expand Down

0 comments on commit 70d19f6

Please sign in to comment.