Description Usage Arguments Details Value Author(s) See Also Examples
Transposes dist
objects to database list format (where each line represents a similarity value calculated between two plots, so the list has three columns containing information on plot x, plot y and information on similarity/dissimilarity). This might be useful if further database processing is intended. If the given matrix is not of class dist
, the whole matrix is converted. This might be handy if species matrices are to be converted to database format.
1 2 |
obj |
A distance object as it is returned from |
x |
How the second column should be named, standard is that it contains |
y |
How the second column should be named, standard is that it contains |
entry |
How the third column should be named. If there is nothing given, it is named "we" (whatever). Obsolete when |
factorize |
If naming (first two) columns should be given as factors. Defaults to TRUE. |
splist |
Set to TRUE if a species matrix is transformed to a database list format. Automatically removes entries with zero occurrence of the species' and names columns correspondingly (see Value). |
Column x represents the column names of the input matrix. So if you want to reshape a species matrix, x
will be the species names and y
will be the plot names. If it is needed vice versa, you have to change column order. For convenience you can set splist
= TRUE and you will get a species list in database format with columns representing the plot, species and occurrence information. Furthermore zero occurrences are already omitted.
Returns a data.frame
with three columns:
Col1 |
The column names of the input matrix. If it is a |
Col2 |
The row names of the input matrix. Named |
Col3 |
The respective matrix entries. Named |
Gerald Jurasinski
reshape
, data.frame
. It resembles functionality of reshape - which is more flexible (but also more complex).
1 2 3 4 5 6 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.