Re: [R] grep txt file names from html

2012-10-31 Thread chuck.01
Sorry Sarah. I want to store them as a vector for use later. so, similar to this: links <- c("http://www.epa.gov/emap/html/data/surfwatr/data/mastreams/9396/benthic/benmet.txt";, "http://www.epa.gov/emap/html/data/surfwatr/data/mastreams/9396/location/watchr.txt";, "http://www.epa.gov/emap/htm

Re: [R] grep txt file names from html

2012-10-31 Thread David Winsemius
On Oct 31, 2012, at 9:56 AM, chuck.01 wrote: > Sorry, I know I should read a little 1st about this, but I am actually just > helping somebody really quick and need help too. > > I want to grep all of the names of the .txt files mentioned on this html web > page: > > http://www.epa.gov/emap/rem

Re: [R] grep txt file names from html

2012-10-31 Thread Sarah Goslee
they're all of the form http.*txt but the best way to "grep" them (by which I assume you mean extract the file names from the page source) depends on what you plan to do with them, and what sort of output you expect. It isn't even clear whether you plan to do this in R. Sarah On Wed, Oct 31,

[R] grep txt file names from html

2012-10-31 Thread chuck.01
Sorry, I know I should read a little 1st about this, but I am actually just helping somebody really quick and need help too. I want to grep all of the names of the .txt files mentioned on this html web page: http://www.epa.gov/emap/remap/html/three/data/index.html Thanks ahead of time. -- Vi