Skip to content

Instantly share code, notes, and snippets.

@mborawi
Last active September 26, 2017 04:15
Show Gist options
  • Select an option

  • Save mborawi/86e7a797dce5f0cc6a8ea35953ec1a04 to your computer and use it in GitHub Desktop.

Select an option

Save mborawi/86e7a797dce5f0cc6a8ea35953ec1a04 to your computer and use it in GitHub Desktop.
x = list('A'=NULL, 'B'=NULL, 'C'=NULL, 'D'=NULL)
y = list('B'=100, 'D'=20)
z = vector('list',length(x))
need z to look like this
z=(null,list(list(search='100')),null, list(list(search='20')))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment