Description Usage Arguments Details Value Note Author(s) References See Also
Creates the dissimilarity object between either a modern dataset and itself or a modern and fossil dataset. This list object contains matrices and parameters that are used in both optimizations of critical choices as well as environmental reconstructions.
1 |
inFossil |
Dataframe: Fossil (or Modern) Calibration Dataset: a file containing field names in the first row of the fossil/modern calibration dataset where each subsequent row containing a site/row identifier (Sample ID), coordinates in either a planar/projected x,y system or as Longitude and Latitude in decimal degrees, dd, and taxon counts followed by the modern environmental variables (Mod.Env 1,Mod.Env n) that will be used for modern training and/or paleoenvironmental reconstruction. The final and optional field would contain, for each row, a nominal code representing the biological zone to which each row/site belongs. |
inModern |
Dataframe: Modern Calibration Dataset: a file containing field names in the first row of the modern calibration dataset where each subsequent row containing a site/row identifier (Sample ID), coordinates in either a planar/projected x,y system or as Longitude and Latitude in decimal degrees, dd, and taxon counts followed by the modern environmental variables (Mod.Env 1,Mod.Env n) that will be used for modern training and/or paleoenvironmental reconstruction. The final and optional field would contain, for each row, a nominal code representing the biological zone to which each row/site belongs. |
llMod |
Vector: with two items, the number of the column containing the x-coordinate for each sample and the number of the column containing the y-coordinate for each sample within the inModern dataset. |
modTaxa |
Vector: with two items, the number of the column containing the first taxon for analysis for each sample and the number of the column containing the last taxon for each sample within the inModern dataset. |
llFoss |
Vector: see argument llMod above for explanation but with reference to the inFossil argument |
fosTaxa |
Vector: see argument modTaxa above for explanation but with reference to the inFossil argument |
numAnalogs |
Numeric: a single number > 1 that specifies the number of modern analogs to use in the reconstruction. |
counts |
Logical: True (default) then the program assumes that your inFossil AND inModern datasets are taxon counts and so will automatically convert them to proportions. |
sitenames |
The column with the sample site names within the inFossil dataset. |
dist.method |
the distance method used |
When count = True, the default, the program will automatically attempt to convert the taxon counts to proportions. If there are all zero counts for one or more rows in the inModern or inFossil datasets the program will terminate. It is a good idea to use rowSums() function on the columns of the datasets before using mat.dissim to ensure that there are no zero-count sample sites.
LIST with the following components:
x |
Vector: x-coordinates of fossil sample sites. |
y |
Vector: y-coordinates of fossil sample sites. |
sqdist |
Matrix: with n rows, each containing m dissimilarity values in m columns. The first row is the best analog for each inFossil sample, the second row is the 2nd best analog, etc...The number of rows n is equal to the number of analogs specified by the argument numAnalogs. The number of columns, m, are equal to the number of sample sites (rows) of the inFossil argument. |
position |
Matrix: with n rows, each containing m values in m columns. Each value specifies the row number within the inModern dataframe argument that is the sample site's analog. The number of rows n is equal to the number of analogs specified by the argument numAnalogs. The number of columns, m, are equal to the number of sample sites (rows) of the inFossil argument. The order is the same as the above sqdist component. |
distance |
Matrix: with n rows, each containing m geographic distance values in m columns. The number of rows n is equal to the number of analogs specified by the argument numAnalogs. The number of columns, m, are equal to the number of sample sites (rows) of the inFossil argument. The order is the same as the above sqdist component. |
direction |
Matrix: with n rows, each containing m azimuth's to the corresponding analog in m columns. The number of rows n is equal to the number of analogs specified by the argument numAnalogs. The number of columns, m, are equal to the number of sample sites (rows) of the inFossil argument. The order is the same as the above sqdist component. |
xcomponent |
Matrix: with n rows, each containing m x component distances for creation of a vector with the ycomponent component in m columns. The number of rows n is equal to the number of analogs specified by the argument numAnalogs. The number of columns, m, are equal to the number of sample sites (rows) of the inFossil argument. The order is the same as the above sqdist component. |
ycomponent |
Matrix: with n rows, each containing m y component distances for creation of a vector with the xcomponent component in m columns. The number of rows n is equal to the number of analogs specified by the argument numAnalogs. The number of columns, m, are equal to the number of sample sites (rows) of the inFossil argument. The order is the same as the above sqdist component. |
inModern |
Name of the inModern dataset used. |
inFossil |
Name of the inFossil dataset used. |
llmod |
The vector specifying the value assigned to the argument llMod. |
modTaxa |
The vector specifying the value assigned to the argument modTaxa. |
counts |
The value of the counts argument. |
Utilizes MATTOOLS functions: "great.circle.distance.f","spherical.direction.f","euclidean.distance.f","euclidean.direction.f","euclidean.compx.f","euclidean.compy.f"
Professor Michael Sawada
SAWADA, M. 2006. An open-source implementation of the modern analog technique (MAT) within the R computing environment. Computers and Geosciences, Vol 32(6):818-833, DOI information: 10.1016/j.cageo.2005.10.008
See Also as euclidean.compx.f
, euclidean.compy.f
,euclidean.direction.f
,great.circle.distance.f
,euclidean.distance.f
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.