Learn R Programming

exams.forge (version 1.0.10)

print.equations: print.equations

Description

Prints an equations object with equations and variables. Internally, a data frame is generated, created and printed.

Usage

# S3 method for equations
print(x, ...)

Value

The data frame invisibly generated.

Arguments

x

an object used to select a method.

...

further arguments passed to or from other methods.

Examples

Run this code
# The equations describe the formulae for an confidence interval of the mean
e <- equations(o~x+c*s/sqrt(n), "v_o=\\bar{x}+c\\cdot\\frac{s^2}{n}", 
               u~x-c*s/sqrt(n), "v_u=\\bar{x}-c\\cdot\\frac{s^2}{n}", 
               e~c*s/sqrt(n),   "e  =c\\cdot\\frac{s^2}{\\sqrt{n}}",
               l~2*e,           "l  =2\\cdot e"                   
               )
print(e)

Run the code above in your browser using DataLab