Last data update: 2014.03.03

R: print Method for Class 'Kendall'
print.KendallR Documentation

print Method for Class 'Kendall'

Description

The value of Kendall's tau and its two-sided p-value are displayed.

Usage

## S3 method for class 'Kendall'
print(x, ...)

Arguments

x

output from Kendall, MannKendall or SeasonalMannKendall

...

any additional arguments

Value

NULL

Note

If you want to use the output from Kendall or the other functions, save the result as in res<-Kendall(x,y) and then select from res the value(s) needed.

Author(s)

A.I. McLeod, aimcleod@uwo.ca

See Also

summary.Kendall, Kendall, MannKendall,SeasonalMannKendall, summary.Kendall

Examples

x<-1:10
y<-rnorm(10)
Kendall(x,y)
#is equivalent to
out<-Kendall(x,y)
print(out)

Results


R version 3.3.1 (2016-06-21) -- "Bug in Your Hair"
Copyright (C) 2016 The R Foundation for Statistical Computing
Platform: x86_64-pc-linux-gnu (64-bit)

R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.

R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.

Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.

> library(Kendall)
> png(filename="/home/ddbj/snapshot/RGM3/R_CC/result/Kendall/print.Kendall.Rd_%03d_medium.png", width=480, height=480)
> ### Name: print.Kendall
> ### Title: print Method for Class 'Kendall'
> ### Aliases: print.Kendall
> ### Keywords: nonparametric
> 
> ### ** Examples
> 
> x<-1:10
> y<-rnorm(10)
> Kendall(x,y)
tau = -0.111, 2-sided pvalue =0.72051
> #is equivalent to
> out<-Kendall(x,y)
> print(out)
tau = -0.111, 2-sided pvalue =0.72051
> 
> 
> 
> 
> 
> dev.off()
null device 
          1 
>