search for: tmptmprarg

Displaying 1 result from an estimated 1 matches for "tmptmprarg".

2012 Mar 06
1
sourcearg function is there a better way already built into R
...n have inconsistent names of files and variables within those files so I wrote this sourcearg function to facilitate handling file and variable names as both character and R names. The source of the function is given below sourcearg=function(arg){ su=sprintf("%s\n",arg) sink("TMPTMPRarg") printf("%s\n",arg) # printf = cat(sprintf(....)) sink() source("TMPTMPRarg") return(su) } A trival invocation is given below but the next time I get data the names of assays might be Mg,MN,and Fe asyl=c("MG","MN") for(asy in asyl){ j=read....