| t.test | R Documentation |
Performs Student's t-tests for normalized ratio index values.
## S4 method for signature 'Nri' t.test(x, ...)
x |
Object of class |
... |
Arguments to be passed to |
An object of class "data.frame"
Lukas Lehnert & Hanna Meyer
t.test, cor.test,Nri-method, Nri
data(spectral_data)
## Calculate nri-values for WorldView-2-8
spec_WV <- spectralResampling(spectral_data, "WorldView2-8",
response_function = FALSE)
nri_WV <- nri(spec_WV, recursive = TRUE)
## Perform t.tests between nri-values of both sites
season <- SI(spec_WV)$season
ttestres <- t.test(x = nri_WV, y = season, alternative = "two.sided")
ttestres
## Plot p.values of t.tests
plot(ttestres)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.