# Simple key/values
gadget_file("age", components = list(
list(length = 5, age = 1:5)))
# Multiple components
gadget_file("likelihood", components = list(
list(),
component = structure(list(type = "penalty"), preamble = list("comment")),
component = structure(list(type = "penalty"), preamble = list("", "another comment"))))
# Data
gadget_file("agelen", components = list(
list(stocknames = "cod")), data = data.frame(
area = c(102, 103),
number = c(2345, 5023)))
Run the code above in your browser using DataLab