writing_double: writing_double

Description Usage Arguments Examples

Description

An internal function called by extract_double_comment.

Usage

1

Arguments

x

Examples

 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
##---- Should be DIRECTLY executable !! ----
##-- ==>  Define data, use random,
##--	or do  help(data=index)  for the standard data sets.

## The function is currently defined as
function (x) 
{
    if (inherits(x@firstRule, "IdenSingleRule")) {
        a1 = NULL
    }
    else {
        b <<- list()
        a1 = writing_single(x@firstRule)
    }
    if (inherits(x@secondRule, "IdenSingleRule")) {
        a2 = NULL
    }
    else {
        b <<- list()
        a2 = writing_single(x@secondRule)
    }
    if (inherits(x, "AddDoubleRule")) {
        a3 = "Take the sum of two previous elements of numeric sequence"
    }
    if (inherits(x, "MultDoubleRule")) {
        a3 = "Multiply two previous elements of numeric sequence"
    }
    if (inherits(x@nextSingle, "IdenSingleRule")) {
        a4 = NULL
    }
    else {
        b <<- list()
        a4 = writing_single(x@nextSingle)
    }
    return(list(a1, a2, a3, a4))
  }

ruleR documentation built on May 2, 2019, 5:49 p.m.