I'm downloading data from the web but then don't know how to change it to a dataframe or anything useful. Does anyone have any suggestions? Here is the code:
library(RCurl)
myfile = getURL(http://www.stat.ufl.edu/~winner/data/lister_ul.dat,
ssl.verifyhost=FALSE, ssl.verifypeer=FALSE)
If I use this:
A = read.csv(textConnection(myfile), header = F)
then R understands this:
c("1 1 1")
as the first row and not this:
c(1, 1, 1).
This doesn't work b/c I need to use
colnames(A) = c("col1", "col2", "col3")
and can't find a workaround that doesn't involve some tedious work using
unlist(strsplit(A))
Ughh!!
Any suggestions would be appreciated. Or maybe I'll write my own tedious function, if necessary.
gwynn