I\'m trying to extract the links from the following webpage http://ipt.humboldt.org.co/ that are of type \"Specimen\". I can get the table from the webpage using the followi
xmlFun<-function(x){ y<-xpathSApply(x,'./a',xmlAttrs) if(length(y)>0){ list(href=y,orig=xmlValue(x)) }else{ xmlValue(x) } } ans<-readHTMLTable(tableNodes[[1]],elFun=xmlFun,stringsAsFactors = FALSE) ans$Name<-lapply(ans$Name,function(x){unlist(eval(parse(text=x)))}) ans$Name[ans$Subtype=='Specimen']