speccorr: speccorr

Description Usage Arguments Value

View source: R/speccorr.R

Description

Correlations between species. Helper function 'flat_cor_mat' comes from https://rstudio-pubs-static.s3.amazonaws.com/240657_5157ff98e8204c358b2118fa69162e18.html

Usage

1
2
3
4
5
6
7
8
speccorr(
  data_file,
  data_fie2 = NULL,
  need_abbr = FALSE,
  state = NULL,
  type = "pearson",
  pVal = 0.05
)

Arguments

data_file

Name of .csv file with data. No defaults.

need_abbr

Boolean. Whether species names should be abbreviated. Default to FALSE.

state

Character. "g" - generative, "v" - vegetative, "v+j" - vegetative and juvenile. Which states should be selected. If NULL, all shoots will be selected. Dafault to NULL. @param type Type of correlation coefficient ("pearson" or "spearman"). Default to "pearson".

pVal

Number (0.05, 0.01 or less). p.value of corr.test for species to be taken into consideration. Default to 0.05.

data_file_2

Name of second .csv file to be united with the first one. It must be checked, that the data are from the SAME period. Default to NULL

Value

Data frame with correlation coefficients and their p.values between species


daria71sukhova/teberda.tools documentation built on May 15, 2021, 10:20 p.m.