Skip to contents

paste list of vector (same length) together. You can use these function to write html paragraph for simple just one row Use-full with graph node and edge attributes.

Usage

pasteDetails(
  namedList,
  include,
  sep.attr = "<br>",
  sep.label = ":",
  show_hidden = F
)

pasteNodeDetails(g, include, ...)

pasteEdgeDetails(g, include, ...)

Arguments

namedList

a named r list

include

a vector of names from much you want to include

sep.attr

this is typically line breaks in between each attribute

sep.label

the speperator between attribute name and attributes

show_hidden

attributes begain with '.' will be pasted into this.

g

igraph object specifically used for graph objects

...

other argument to put into pasteDetails

Value

The return value, if any, from executing the function.

Details

Paste attributes into a rectangular tools

exclusivedly works for pasting

Examples

# example code

# paste normal object
nL = list(
 id = 1,
  object = "Apple",
  category = "Fruit",
  size = 24.22
)
x_html = pasteDetails(nL)
x_paste = pasteDetails(nL, sep.attr = "\n")
cat(x_paste)
#> id : 1
#> object : Apple
#> category : Fruit
#> size : 24.22