Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

unique

Get the indexes of unique profiles in a SoilProfileCollection


Description

Calculate MD5 hash of each profile in a SoilProfileCollection for the specified variables.

Usage

## S4 method for signature 'SoilProfileCollection'
unique(x, vars)

Arguments

x

a SoilProfileCollection

vars

Variables to consider in uniqueness.

Examples

data(sp5)

# find indices where all specified vars are unique
#  these match the indices of all profiles in sp5
#  therefore, all profiles in sp5 are unique

all(unique(sp5, vars=c("id","sand","silt","clay") == 1:length(sp5)))

aqp

Algorithms for Quantitative Pedology

v1.29
GPL (>= 3)
Authors
Dylan Beaudette [aut, cre], Pierre Roudier [aut, ctb], Andrew Brown [aut, ctb]
Initial release
2021-04-05

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.