math: math

Description Usage Arguments Details Value Communication Examples

Description

Basic math operations, like trig, rounding, exp/logs.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
## S4 method for signature 'shaq'
sqrt(x)

## S4 method for signature 'shaq'
abs(x)

## S4 method for signature 'shaq'
exp(x)

## S4 method for signature 'shaq'
log(x, base = exp(1))

## S4 method for signature 'shaq'
log2(x)

## S4 method for signature 'shaq'
log10(x)

## S4 method for signature 'shaq'
sin(x)

## S4 method for signature 'shaq'
cos(x)

## S4 method for signature 'shaq'
tan(x)

## S4 method for signature 'shaq'
asin(x)

## S4 method for signature 'shaq'
acos(x)

## S4 method for signature 'shaq'
atan(x)

## S4 method for signature 'shaq'
sinh(x)

## S4 method for signature 'shaq'
cosh(x)

## S4 method for signature 'shaq'
tanh(x)

## S4 method for signature 'shaq'
asinh(x)

## S4 method for signature 'shaq'
acosh(x)

## S4 method for signature 'shaq'
atanh(x)

## S4 method for signature 'shaq'
ceiling(x)

## S4 method for signature 'shaq'
floor(x)

## S4 method for signature 'shaq'
trunc(x, ...)

## S4 method for signature 'shaq'
round(x, digits = 0)

Arguments

x

A shaq or a numeric vector.

base

Logarithm base.

...

Additional arguments.

digits

Number of decimal places to use.

Details

In each case, the corresponding base R function is called on the local data.

Value

A shaq.

Communication

Each operation is completely local.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
## Not run: 
library(kazaam)
x = ranshaq(runif, 10, 3)
y = ranshaq(runif, 10, 3)

sqrt(x)
log(y)

finalize()

## End(Not run)

RBigData/kazaam documentation built on Nov. 9, 2021, 9:09 a.m.