toString.CGdata {ECG}R Documentation

Converts a CGdata object into a string description

Description

Converts a CGdata object into a string description for displaying purposes.

Usage

## S3 method for class 'CGdata'
toString(x, signifDigits=x$input$signifDigits, alpha=x$input$alpha, verbose=FALSE, ...)

Arguments

x

a CGdata object

signifDigits

a numeric value for the number of significant digits.

alpha

a probability value taken as the significance level for building a symmetric confidence interval assuming a t distribution for
x$frame$used.data.points-1 degrees of freedom.

verbose

a boolean, if FALSE the description of the form
(value, expanded uncertainty) is provided. if TRUE the description is complemented providing:
the estimated coverage factor,
the estimated degrees of freedom,
the estimated coverage probability.

...

additional parameters

Value

a string description of the CGdata object.

Author(s)

H. Gasca-Aragon

Examples

require(ECG)
N<- 1000
d0<- 1-sin(seq(1:(5/2*N))/N*pi-pi*3/4)
set.seed(12345)
d1<- d0+rnorm(5/2*N, 0, 0.01)
dat<- data.frame(x=1:length(d1), 
	y=100*(d1-min(d1))/(max(d1)-min(d1)))

CGres<- CGdata(dat)
str.res <- toString(CGres)
print(nchar(str.res))
print(str.res)

[Package ECG version 0.5.2 Index]