code-recipe
coding tips
Thursday, May 9, 2013
try in a loop #R
If you know there could be and error use try
if it is in a loop and you need to keep going, next!
m <- try(read.table(f, head=FALSE, sep="\t"))
if(class(m) == "try-error") next
No comments:
Post a Comment
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment