powered by
Reads a data table containing densities to be used for hydraulic sorting corrections (minsorting and srd functions)
read.densities( fname, sep = ",", dec = ".", header = TRUE, check.names = FALSE, ... )
a vector with mineral and rock densities
a string with the path to the .csv file
the field separator character. Values on each line of the file are separated by this character.
the character used in the file for decimal points.
a logical value indicating whether the file contains the names of the variables as its first line.
logical. If TRUE then the names of the variables in the frame are checked to ensure that they are syntactically variable names.
TRUE
optional arguments to the built-in read.table function
read.table
data(Namib,densities) N8 <- subset(Namib$HM,select="N8") distribution <- minsorting(N8,densities,phi=2,sigmaphi=1,medium="air",by=0.05) plot(distribution)
Run the code above in your browser using DataLab