Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

get_graph_time

Get the graph date-time or timezone


Description

Get the time and timezone for a graph object of class dgr_graph.

Usage

get_graph_time(graph)

Arguments

graph

A graph object of class dgr_graph.

Value

A single-length POSIXct vector with the assigned graph time.

Examples

# Create an empty graph and
# set the graph's time; if nothing
# is supplied for the `tz` argument,
# `GMT` is used as the time zone
graph <-
  create_graph() %>%
    set_graph_time(
      time = "2015-10-25 15:23:00")

# Get the graph's time as a POSIXct
# object using `get_graph_time()`
graph %>% get_graph_time()

DiagrammeR

Graph/Network Visualization

v1.0.6.1
MIT + file LICENSE
Authors
Richard Iannone [aut, cre] (<https://orcid.org/0000-0003-3925-190X>)
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.