Outdated version of the documentation. Find the latest one here.

18.35. R Syntax Summary table for Processing

Module contributed by Matteo Ghetta - funded by Scuola Superiore Sant’Anna

Processing allows a lot of different input and output parameter that can be used in the script body. Here a summary table:

18.35.1. Parámetros de entrada

Parámetros

Ejemplos de sintaxis

Returning objects

Vector

Layer = vector SpatialDataFrame object, default object of rgdal package
vector point Layer = vector point SpatialPointDataFrame object, default object of rgdal package

Vectorial (línea)

Layer = vector line SpatialLineDataFrame object, default object of rgdal package

polígono vector

Layer = vector polygon SpatialPolygonsDataFrame object, default object of rgdal package
multiple vector Layer = multiple vector SpatialDataFrame objects, default object of rgdal package

tabla

Capa = tabla

dataframe conversion from csv, default object of read.csv function

campo

Field = Field Layer name of the Field selected, e.g. "Area"

ráster

Capa= raster

RasterBrick object, default object of raster package
multiple raster Layer = multiple raster RasterBrick objects, default object of raster package

número

N = número

integer or floating number chosen

cadena

S = Cadena

string added in the box
longstring LS = longstring string added in the box, could be longer then the normal string

selección

S = selection first;second;third string of the selected item chosen in the dropdown menu

src

C = src

string of the resulting CRS chosen, in the format: "EPGS:4326"

extensión

E = extensión

Extent object of the raster package, you can extract values as E@xmin

punto

P = punto

when clicked on the map, you have the coordinates of the point

archivo

F = archivo

path of the file chosen, e.g. “/home/matteo/file.txt”

carpeta

F = carpeta

path of the folder chosen, e.g. “/home/matteo/Downloads”

Any of the input could be also OPTIONAL, that means that you have a handy way to tell the script to ignore this parameter.

In order to set an input as optional, you just have to add the string optional before the input, e.g:

##Layer = vector
##Field1 = Field Layer
##Field2 = optional Field Layer

18.35.2. Parámetros de salida

Output parameters take the Input names you gave at the beginning of the script and write the object you want.

Parámetros

Ejemplos de sintaxis

Vector

Salida = vector de salida

ráster

Salida = salida de ráster

tabla

Salida = tabla de salida

archivo

Salida = archivo de salida

Nota

for the plot input type, you can save the plot as png directly from the Processing Result Viewer or you can choose to save the plot directly from the algorithm interface.

18.35.3. Ejemplos

In order to better understand all the input and output parameters, please have a look at the R Syntax chapter.