R/assignListNodeByCharacter.R

Defines functions assignListNodeByCharacter

assignListNodeByCharacter <-function(x, a, charRef=NULL, split=",")  {
  #charRef should be a single character string with successive names separated by the value of 'split'
  
  refVec <- unlist(strsplit(charRef, split=split))
  
  x[[refVec]] <- a
  return(x)
}
davetgerrard/GenomicLayers documentation built on Jan. 12, 2025, 5:06 p.m.