powered by
Writes a list of bridge states (each with state and cycle fields) to a CSV file.
state
cycle
save_bridge_states(bridge_states, filename)
Invisible NULL. Side effect: writes a CSV file.
List of lists, each containing state (integer vector) and cycle (integer)
Character, output CSV file path
bs <- list( list(state = 1:5, cycle = 0), list(state = c(2, 1, 3, 4, 5), cycle = 1) ) # save_bridge_states(bs, tempfile(fileext = ".csv"))
Run the code above in your browser using DataLab