mynewf4: A constructor function that uses map function in Purrr for...

Description Usage Arguments Details Value See Also Examples

View source: R/myttest.R

Description

This is an example of what can be done with S3 OOP

Usage

1
mynewf4(x, y, paired = FALSE, alpha = 0.05)

Arguments

x

vector of data

y

vector of data

paired

TRUE or FALSE, FALSE by default

alpha

alpha level between 0,1

Details

The constructor function makes a list that can be worked and further processed with an appropriate method(s) Returns either to accept or reject the null hypothesis with alpha = 0.05

Value

list containing the data, acceptance/rejection of Null hypothesis, and t test object

See Also

t.test for more information about t tests

Examples

1
myttest(x=rnorm(30,10,12), y=rnorm(40, 7, 10))

ctstrick61/s3oopcs documentation built on Dec. 19, 2021, 7:03 p.m.