Re: [R] Do colClasses in readHTMLTable (XML Package) work?

2010-03-20 Thread Duncan Temple Lang
On 3/17/10 6:52 PM, Marshall Feldman wrote: > Hi, > > I can't get the colClasses option to work in the readHTMLTable function > of the XML package. Here's a code fragment: > > require("XML") > doc <- "http://www.nber.org/cycles/cyclesmain.html"; > table <- getNodeSet(htmlParse(doc

[R] Do colClasses in readHTMLTable (XML Package) work?

2010-03-17 Thread Marshall Feldman
Hi, I can't get the colClasses option to work in the readHTMLTable function of the XML package. Here's a code fragment: require("XML") doc <- "http://www.nber.org/cycles/cyclesmain.html"; table <- getNodeSet(htmlParse(doc),"//table") [[2]]# The main table is the second on