getStructure-list-method: Get Structure (list)

Description Usage Arguments Value See generic Author(s) References See Also Examples

Description

Get Structure (list)

Usage

1
2
## S4 method for signature 'list'
getStructure(input, extended = TRUE, ...)

Arguments

input

list.

extended

logica.. TRUE: extended structure; FALSE: updated raw structure.

...

Further arguments to be passed to subsequent functions/methods.

Value

See method getStructure-RawObjectStructure.S3-method.

See generic

getStructure

Author(s)

Janko Thyson janko.thyson@rappster.de

References

http://github.com/rappster/listr

See Also

getStructure, getStructure-RawObjectStructure.S3, ObjectStructure.S3, getRawStructure

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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
## Not run: 

##------------------------------------------------------------------------------  
## List
##------------------------------------------------------------------------------  

input <- list(
  x1 = list(x11 = list(x111 = 1, x112 = 1), x12 = list(x121 = 1, x122 = 1)),
  x2 = list(x21 = "x21"),
  x3 = list("x31"),
  x4 = "x4",
  x5 = list(1:3),
  list(list(1, 2), list(3, 4)),
  list(1:3),
  "char 1",
  "char 2",
  letters[1:3],
  c(1,3,5),
  TRUE,
  new.env(),
  data.frame(x = 1:3, y = 1:3)
)

## Default: extended 
getStructure(input)
## Regular
getStructure(input, extended = FALSE)

##------------------------------------------------------------------------------  
## RawObjectStructure.S3
##------------------------------------------------------------------------------  

input <- list(
  x1 = list(x11 = list(x111 = 1, x112 = 1), x12 = list(x121 = 1, x122 = 1)),
  x2 = list(x21 = "x21"),
  x3 = list("x31"),
  x4 = "x4",
  x5 = list(1:3),
  list(list(1, 2), list(3, 4)),
  list(1:3),
  "char 1",
  "char 2",
  letters[1:3],
  c(1,3,5),
  TRUE,
  new.env(),
  data.frame(x = 1:3, y = 1:3)
)
input <- getRawStructure(input)

## Default: extended 
getStructure(input)
## Regular
getStructure(input, extended = FALSE)


## End(Not run)

rappster/listr documentation built on May 26, 2019, 11:21 p.m.