Learn R Programming

dtrackr (version 0.4.6)

p_set: Set the dtrackr history graph

Description

This is unlikely to be useful to an end user and is called automatically by many of the other functions here. On the off chance you need to copy history metadata from one dataframe to another

Usage

p_set(.data, .graph)

Value

the .data dataframe with the history graph metadata set to the provided value

Arguments

.data

a dataframe which may be grouped

.graph

a history graph list (consisting of nodes, edges, and head) see examples

Examples

Run this code
library(dplyr)
library(dtrackr)
mtcars %>% p_set(iris %>% comment("A comment") %>% p_get()) %>% history()

Run the code above in your browser using DataLab