Learn R Programming

XPolaris (version 1.0.2)

xsoil: xsoil

Description

Extracting soil data from downloaded images.

Usage

xsoil(ximages_output, localPath = tempdir())

Arguments

ximages_output

A data.frame output from ximages function.

localPath

Path to store the images. Default: tempdir()

Value

It returns a data.frame object and exports a .csv file with the soil data. The .csv file will be save under a new directory (POLARISOut) in the user's machine.

Details

This function must be executed after downloading the images, because it depends on the output from the ximages function.

See Also

xplot,ximages

Examples

Run this code
# NOT RUN {
df_test <- exkansas
df_ximages <- ximages(locations = df_test,
                      variables = c('clay'),
                      statistics = c('mean'),
                      layersdepths = c('0_5'))
df_xsoil <- xsoil(ximages_output = df_ximages)
# }

Run the code above in your browser using DataLab