Displaying 20 results from an estimated 1000 matches similar to: "Command that is conditional upon file retrieval: is it possible?"
2009 Oct 15
1
Removing Embedded Null characters from text/html
Hi,
I'm trying to download some data from the web and am running into
problems with 'embedded null' characters. These seem to indicate to R
that it should stop processing the page so I'd like to remove them.
I've been looking around and can't seem to identify exactly what the
character is and consequently how to remove it.
# THE CODE WORKS ON THIS PAGE
library(RCurl)
2009 Jun 02
1
Problem downloading webpages using batchfiles and RCurl from command line in Vista Basic - couldn't connect to host
Dear all,
I am having a problem downloading webpages through R when i run it in
the DOS window under Windows Vista Basic. I have downloaded the
batchfiles from http://code.google.com/p/batchfiles/ and have
successfully set the PATH.
I open up 'Command Prompt' in Vista and type (after the C:\...>
stuff):
### START ###
C:\Users\Karen>Rscript -e "library(RCurl);
2010 Apr 20
2
having more than one plot in one figure
Hi All,
I have been trying to plot multiple line plots with different colors on one
figure. in my example below I was able to plot cat vs num1 as a dot plot
connected with lines but was not able to do that for cat vs num2 and I do
not know how to add the third plot cat vs num3. below is my code
df <- data.frame(cat=1:10, num1=rnorm(10), num2=rnorm(10), num3=rnorm(10))
plot(df$num1,
2013 Apr 09
1
(no subject)
Hi
I would like to normalize my data by one of the variables in long format.
My data is like this:
>
t1<-data.frame(id=rep(1:3,rep(3,3)),dt=rep(1:3,rep(9,3)),var=c('num1','num2','norm'),value=rnorm(27))
> t1
id dt var value
1 1 1 num1 -1.83276256
2 1 1 num2 1.57034303
3 1 1 norm 0.60008563
4 2 1 num1 -0.96893477
5 2 1 num2 0.30423346
6
2008 Aug 27
1
RCurl: using netrc with curlPerform
Hello,
I am having trouble getting the curlPerform function to authenticate
using the .netrc file. From the documentation I've read it
certainly seems as though this function should be able to authenticate
via the .netrc file.
The example I am using here comes from the "R as a Web Client- the RCurl
package" paper and demonstrates using the .netrc file to access the
2010 Sep 16
2
FTP Download
Hi,
I have problems downloading complete folders via ftp with R. Single files
work fine.
I tried Rcurl, but it does not work.
This is my code:
url =
"ftp://disc2.nascom.nasa.gov/data/TRMM/Gridded/Derived_Products/3B42_V6/Daily/2009/"
filenames = getURL(url, ftp.use.epsv = FALSE, ftplistonly = TRUE, crlf =
TRUE)
filenames = paste(url, strsplit(filenames, "\r*\n")[[1]], sep =
2013 Jul 23
2
downloading web content
Hello,
I am trying to use R to download a bunch of .csv files such as:
http://biocache.ala.org.au/ws/occurrences/download?q=Banksia+ericifolia
I have tried the following and neither work:
a<- getURL("
http://biocache.ala.org.au/ws/occurrences/download?q=Banksia+ericifolia")
Error in curlPerform(curl = curl, .opts = opts, .encoding = .encoding) :
embedded nul in string:
and
2015 Apr 30
2
búsqueda y sustitución masiva
Hola a tod en s, explico lo que estoy intentando hacer...
Tengo un listado de url comprimidas de twitter, entre las cuales hay muchas
repetidas, por lo que el número de registros llega a más de 15K.
Por otro lado tengo otra lista de esas url únicas con su equivalente ya
descomprimido llegando a un registro de 900.
El problema que tengo es que estoy intentando hacer un loop para hacer la
2005 Sep 05
2
USING TWO ACCOUNTS WITH BROADVOICE
Hi,
I have two accounts with broadvoice.
Now, I want to be able to distinguish between them.
I though that this would be simple by adding "/EXTEN" at the end of the
register statement. For example:
register => num1:pass@sip.broadvoice.com/1000
Unfortunately, this is not working.
When I call into my box I hear busy tone.
My config looks like this:
[root@voip asterisk]# cat sip.conf
2010 Mar 07
8
Parsing XML file with no style info with Hpricot
Hello,
I''ve been trying for hours to parse an XML using Hpricot. Usually it''s
not a problem. Here''s my simple code:
#This works and outputs the proper xml data
@url1 = ''http://www.sportingnews.com/stories/sportingnews/MLB/rss.xml''
@page1 = Hpricot(open(@url1))
<%= @page 1 %>
#This does not work, and I''m scratching my head
@url1 =
2006 Feb 09
1
List Conversion
Hello,
I have a list (mode and class are list) in R that is many elements long and of the form:
>length(list)
[1] 5778
>list[1:4]
$ID1
[1] "num1"
$ID2
[1] "num2" "num3"
$ID3
[1] "num4"
$ID4
[1] NA
I'd like to convert the $ID2 value to be in one element rather than in two.?? It shows up as c(\"num2\", \"num3\") if I try to use
2011 Feb 28
3
Problems using unique function and !duplicated
Hi, I am trying to simultaneously remove duplicate variables from two or more
variables in a small R data.frame. I am trying to reproduce the SAS
statements from a Proc Sort with Nodupkey for those familiar with SAS.
Here's my example data :
test <- read.csv("test.csv", sep=",", as.is=TRUE)
> test
date var1 var2 num1 num2
1 28/01/11 a 1 213 71
2
2018 Mar 11
2
Your browser do not suport oracle bi presentation services
Hi dear R users:
I'm trying the following code to download an information from the web.
url1 <-
2010 Feb 01
1
How to repeat "for" function?
Dear Users,
I have one problem here, I tried many time and even read a few notes on
writing function but still.....
Can anyone help me on how to simplify Part B (please refer the programming
below), so that I don't have to repeat the calculation of "num" and "r" ?
Thank you very much..every help is very much appreciated...
## Part A
n=1400
m=matrix(c(0,0,0,0),4,1)
2008 Aug 12
1
Problem with using read.csv with web address
Hello,
I have a problem with using read.csv(). I want to read a table from the ONS
neighborhood statistics website which has an address:
2004 Aug 06
1
Icecast server YP Woes... take 2
I am having problem with icecast2/winamp oddcast dsp/darkice being listed on
dir.xiph.org and dir.oddsock.org. Now I've scanned the mailing list and
found that there was a previous issue, however if I use icecast on Windows
XP it works fine, but not from Fedora Core 1. I've made sure to check my
config files multiple times and looked at the error logs but I still can't
figure
2018 Mar 11
0
Your browser do not suport oracle bi presentation services
On Sun, Mar 11, 2018 at 09:12:56AM -0500, KENNETH ROY CABRERA TORRES wrote:
> Hi dear R users:
>
> I'm trying the following code to download an information from the web.
>
> url1 <-
2009 Jan 19
3
download/retain text file structure with RCurl/getURL()
Dear list,
I'm trying to download a text file directly from the internet using the RCurl package and the command getURL. Duncan Lang graciously helped me solve the first step in this problem using the following command:
#################
txtfile <- getURL('ftp://ftp.wcc.nrcs.usda.gov/data/snow/snow_course/table/history/idaho/13e19.txt',
ftp.use.epsv = FALSE)
#################
2011 Feb 16
1
confused by lapply
Description:
'lapply' returns a list of the same length as 'X', each element of
which is the result of applying 'FUN' to the corresponding element
of 'X'.
I expect that when I do
> lapply(vec,f)
f would be called _once_ for each component of vec.
this is not what I see:
parse.num <- function (s) {
cat("parse.num1\n"); str(s)
s
2004 Aug 06
6
Runaway icecast again (more YP issues)
Hi:
The sysadmin on the system where the icecast server I more or less
administer runs sent me an E-mail today saying that icecast had pushed up
the system load to over 8 and that he had to kill it off. Some discussion
and examination of the log files suggest that there's a problem with
removing streams from the YP server.
The main source on our server is on a machine that's used for