Displaying 3 results from an estimated 3 matches for "pfeiff".
2011 Oct 03
2
read .csv from web from password protected site
I am very new to R and have been struggling trying to read a basic ".csv" file from a password protected site with the following code:
myURL ="http://www.frontierweather.com/degreedays/L15N15PowerRegionAverages_10weeks.txt"
test2=read.table(url(myURL),header=TRUE,sep=",")
A 'data.frame' is returned into the workspace, however it is not the data contained in
2011 Dec 20
2
Quotes inside char string
How do I return a character string with quotes inside string?
For example, what logic do I use if I want to return the following:
Test Score="A"
I tried the following ....
Score<-paste("Test Score=","A",sep='"')
But it returned a "\" inside:
"Test Score=\"A"
Any assistance would be
2011 Dec 20
1
RODBC Error: 'getCharCE' must be called on a CHARSXP
I am trying to connect to an internal database and use the sqlQuery command to reduce and retrieve data using the following code:
channel <-odbcConnect("some_dsn", uid="", pwd="")
txt<-'SELECT Date, Region, Price FROM TableXYZ WHERE Type="Domestic"'
sqlQuery(channel, cat(txt,"\n"),errors=TRUE,)
close(channel)
However, I get the