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
Feret Jean-Baptiste
biodivMapR
Commits
2560bc5a
Commit
2560bc5a
authored
Jul 06, 2019
by
De Boissieu Florian
Browse files
fix bug from changes in functions args
parent
d533a015
Changes
2
Hide whitespace changes
Inline
Side-by-side
R/Lib_Validation_biodivMapR.R
View file @
2560bc5a
...
...
@@ -19,9 +19,9 @@
#' @import tools
#' @export
projection.file
<-
function
(
file
,
type
=
'raster'
){
if
(
T
ype
==
'raster'
){
if
(
t
ype
==
'raster'
){
obj
<-
raster
(
file
)
}
else
if
(
T
ype
==
'vector'
){
}
else
if
(
t
ype
==
'vector'
){
Shp.Path
=
dirname
(
file
)
Shp.Name
=
file_path_sans_ext
(
basename
(
file
))
obj
=
readOGR
(
dsn
=
Shp.Path
,
layer
=
Shp.Name
,
verbose
=
FALSE
)
...
...
examples/example_script.R
View file @
2560bc5a
...
...
@@ -21,7 +21,8 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>
#
# ===============================================================================
library
(
raster
)
library
(
biodivMapR
)
################################################################################
## DEFINE PARAMETERS FOR DATASET TO BE PROCESSED ##
################################################################################
...
...
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