R/qgis_basicstatisticsforfields.R
qgis_basicstatisticsforfields.Rd
QGIS Algorithm provided by QGIS (native c++) Basic statistics for fields (native:basicstatisticsforfields). Generates basic statistics from the analysis of a values in a field in the attribute table of a vector layer. Numeric, date, time and string fields are supported. The statistics returned will depend on the field type.
qgis_basicstatisticsforfields(
INPUT_LAYER = qgisprocess:::qgis_default_value(),
FIELD_NAME = qgisprocess:::qgis_default_value(),
OUTPUT = qgisprocess:::qgis_default_value(),
OUTPUT_HTML_FILE = qgisprocess:::qgis_default_value(),
...,
.complete_output = .complete_output_option(),
.quiet = .quiet_option(),
.messages = .message_option()
)
source
- Input layer. Path to a vector layer.
field
- Field to calculate statistics on. The name of an existing field. ; delimited list of existing field names.
sink
- Statistics. Path for new vector layer.
fileDestination
- Statistics report. Path for new file.
further parameters passed to qgisprocess::qgis_run_algorithm()
logical specifying if complete out of qgisprocess::qgis_run_algorithm()
should be used (TRUE
) or first output (most likely the main) should read (FALSE
). Default value is TRUE
.
logical specifying if parameter .quiet
for qgisprocess::qgis_run_algorithm()
Default value is TRUE
.
logical specifying if messages from qgisprocess::qgis_run_algorithm()
should be printed (TRUE
) or not (FALSE
). Default value is FALSE
.
COUNT - outputNumber - Count
CV - outputNumber - Coefficient of Variation
EMPTY - outputNumber - Number of empty (null) values
FILLED - outputNumber - Number of non-empty values
FIRSTQUARTILE - outputNumber - First quartile
IQR - outputNumber - Interquartile Range (IQR)
MAJORITY - outputNumber - Majority (most frequently occurring value)
MAX - outputNumber - Maximum value
MAX_LENGTH - outputNumber - Maximum length
MEAN - outputNumber - Mean value
MEAN_LENGTH - outputNumber - Mean length
MEDIAN - outputNumber - Median
MIN - outputNumber - Minimum value
MINORITY - outputNumber - Minority (rarest occurring value)
MIN_LENGTH - outputNumber - Minimum length
OUTPUT - outputVector - Statistics
OUTPUT_HTML_FILE - outputHtml - Statistics report
RANGE - outputNumber - Range
STD_DEV - outputNumber - Standard deviation
SUM - outputNumber - Sum
THIRDQUARTILE - outputNumber - Third quartile
UNIQUE - outputNumber - Number of unique values