Learn R Programming

rysgran (version 2.1.0)

class.percent: Weight Percentages of Textural Classes

Description

Calculates the percentage of weight retained on each sieve and its corresponding textural class

Usage

class.percent(data,mode = "both", empty.col = FALSE, lang = "en-US")

Arguments

data
a data matrix with grain size samples
mode
shape of textural classes matrix. mode="total" shows grouped classes of gravel, sand, silt and clay. mode="classes" shows the subclasses like fine sand, coarse silt and medium clay. mode="both" shows both the grouped classes as subclasses. Default is "both"
empty.col
logical. If TRUE empty columns (with zero percent) are displayed. Default is FALSE
lang
language . May be english ("en-US", "en-GR", "eng", "e"), or portuguese ("pt-BR", "pt-PT", "port", "p"). The default is "en-US"

Value

rysgran.ternary function, available in this package

Details

The particle size matrix used in data entry must contain the first line of grain size classes (logarithmic or geometric scale), each following line should contain the weights of a sample. . No header should be used. For further details on the structure of the input table see data examples camargo2001, sed.phi and sed.metric included in this package

See Also

rysgran.ternary , gran.stats

Examples

Run this code
#testing the different modes

library(rysgran)
data(camargo2001)

class.percent(camargo2001, mode="total", empty.col=FALSE, lang="en-US")

class.percent(camargo2001, mode="classes", empty.col=FALSE, lang="en-US")

class.percent(camargo2001, mode="both", empty.col=FALSE, lang="en-US")

Run the code above in your browser using DataLab