Learn R Programming

Rsagacmd (version 0.4.3)

convert_sagaext_r: Ensure that the file extension for the SAGA raster format ends with .sdat for reading or writing SAGA grid objects in R.

Description

This is used because the R raster/terra libraries expect to read and write SAGA grid formats using the '.sdat' file extension, not '.sgrd'.

Usage

convert_sagaext_r(fp)

Value

a character vector with the corrected file extensions to read SAGA sgrd files back into R.

Arguments

fp

file path to raster writing