populate

0th

Percentile

Populate a list with data from another list

populate copies data from a list (e.g. input by a user) to another list with a similar shape. The second list, called the interface, will generally also contain extra metadata for making API requests, such as names or types.

Usage
populate(input, interface)
Arguments
input

A list with data to copy.

interface

A list of a similar shape to copy data into.

Aliases
  • populate
Examples
# NOT RUN {
# Make an interface with metadata, e.g. type.
interface <- tag_add(list(foo = c(), bar = c()), list(type = "structure"))

# Combine data and the metadata from the interface.
populate(list(foo = 1, bar = 2), interface)

# }
Documentation reproduced from package paws.common, version 0.1.1, License: Apache License (>= 2.0)

Community examples

Looks like there are no examples yet.