Last data update: 2014.03.03

R: Is this in the "sr" class?
is.srR Documentation

Is this in the "sr" class?

Description

Checks if an object is in the class 'sr'

Usage

is.sr(x)

Arguments

x

an object of some kind.

Details

To satisfy the minimum requirements of an S3 class.

Value

a boolean.

Author(s)

Steven E. Pav shabbychef@gmail.com

See Also

sr

Other sr: as.sr, confint.sr, dsr, plambdap, power.sr_test, predint, print.sr, reannualize, se, sr_equality_test, sr_test, sr_unpaired_test, sr_vcov, sr, summary

Examples

rvs <- as.sr(rnorm(253*8),ope=253)
is.sr(rvs)

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(SharpeR)

Attaching package: 'SharpeR'

The following object is masked from 'package:base':

    summary

> png(filename="/home/ddbj/snapshot/RGM3/R_CC/result/SharpeR/is.sr.Rd_%03d_medium.png", width=480, height=480)
> ### Name: is.sr
> ### Title: Is this in the "sr" class?
> ### Aliases: is.sr
> 
> ### ** Examples
> 
> rvs <- as.sr(rnorm(253*8),ope=253)
> is.sr(rvs)
[1] TRUE
> 
> 
> 
> 
> 
> dev.off()
null device 
          1 
>