is
going on here would be much appreciated.
Best,
Tony Breyal
### Session information ###
sessionInfo() # Windows 7 Pro x64
R version 2.12.1 (2010-12-16)
Platform: x86_64-pc-mingw32/x64 (64-bit)
locale:
[1] LC_COLLATE=English_United Kingdom.1252
[2] LC_CTYPE=English_United Kingdom.1252
[3
the following, when output to the plain text file:
isn't
Thank you again for your time,
Tony Breyal
On 23 June 2010 12:32, Tony B tony.bre...@googlemail.com wrote:
Dear all,
I am aware of the URLdecode(..) function and was wondering if there
was something similar for HTML?
For example, I
Thank you kindly Henrique, that works perfectly for me.
On 24 June 2010 15:25, Henrique Dallazuanna www...@gmail.com wrote:
Try this:
library(XML)
xmlValue(getNodeSet(htmlParse(x, asText = TRUE), //p)[[1]])
On Thu, Jun 24, 2010 at 6:53 AM, Tony Breyal tony.bre...@googlemail.com
wrote
(DirSource(my.path), readerControl = list(reader=readPDF))
There are some limitations to how well the conversions work depending
on the pdf file, but it was so long ago now that I'm afraid I don't
remember the details.
HTH.
Tony Breyal
2009/12/22 zeusu...@lmu.edu:
Hi:
I am very new to R. I just
Dear all,
Lets say I have the following data frame:
set.seed(1)
col1 - c(rep('happy',9), rep('sad', 9))
col2 - rep(c(rep('alpha', 3), rep('beta', 3), rep('gamma', 3)),2)
dates - as.Date(rep(c('2009-10-13', '2009-10-14', '2009-10-15'),6))
score=rnorm(18, 10, 3)
df1-data.frame(col1=col1,
Thank you all for your responses, i have now achieved the desired
output for my own real data using your suggestions. I will also have
to look into this 'plyr' package as i have noticed that it gets
mentioned a lot.
On 21 Oct, 13:33, Karl Ove Hufthammer k...@huftis.org wrote:
In article
Dear all,
Lets say I have the following data frame:
df1 - data.frame(Show=c('Star Trek', 'Babylon 5', 'Dr Who'), Size=c(0.7,
0.0, 0.701), Date=as.Date(c('2007-08-03', '2007-08-03', '2007-08-03'),
format='%Y-%m-%d'))
df2 - data.frame(Show=c('Star Trek', 'Dr Who', 'Torchwood'), Size=c(0.8,
maybe you could modify the following to suit your situation (i use
this xPath expression to get links from google):
?htmlTreeParse
?getNodeSet
library(XML)
link -
://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.
--
Tony Breyal
__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R
On 8 Sep, 09:47, Tony Breyal tony.bre...@googlemail.com wrote:
After further investigation it appears that the problem is specific to
my Vista PC. I am able to get the correct results using R 2.9.2 on a
Window XP 64bit machine. However i do not know why this does not work
on my Vista PC
Sep, 11:57, Tony Breyal tony.bre...@googlemail.com wrote:
UPDATE:
I'm not sure why, but on my Windows XP 64bit machine, I ran the same
code again and this time it is not working even though it worked
previously. This has been done using the Rgui --vanilla command.
x - c(Weekly sales figures
Dear all,
I'm having a problem understanding why a split does not occur with in
the 2nd use of the function strsplit below:
# text strings
txt - c(sales to 23 August 2008 published 29 August,
+ sales to 6 September 2008 published 11 September)
# first use
strsplit(txt, 'published',
Dear all,
Question: How to merge two data frames such that new column are added
in a particular way?
I'm not actually sure how to best articulate my question to be honest,
so i hope showing you what I want to achieve will communicate my
question better.
Lets say I have two data frames:
DF1 -
which uses a similar structure to
google groups? I had a quick browse on the R Wiki
(http://wiki.r-project.org/rwiki/doku.php?id=links:links) but didn't
see a page with this sort of info.
Thank you kindly,
Tony Breyal
__
R-help@r-project.org mailing list
numbers you mentioned so am not sure if
this will help in your situation.
My next challenge is working out how to install R on Ubuntu (will try
this weekend)!
HTH,
Tony Breyal
On 13 June, 01:18, Len Vir len...@gmail.com wrote:
Good Day To You All,
I have installed Ubuntu 9.04 on a Laptop running
...@imail.org
801.408.8111
-Original Message-
From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-
project.org] On Behalf Of Ted Harding
Sent: Wednesday, June 03, 2009 7:56 AM
To: Tony Breyal; r-help@r-project.org
Subject: Re: [R] Regular expression \ String Extraction help
correctly and downloads the webpage.
I need to get this to work because i need to do some web crawls in
batch mode using R.
Any help would be most appreciated. Thank you kindly for your time in
advance,
Tony Breyal
sessionInfo()
R version 2.9.0 (2009-04-17)
i386-pc-mingw32
locale:
LC_COLLATE
, Jun 2, 2009 at 7:09 AM, Tony Breyal tony.bre...@googlemail.com
wrote:
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 fromhttp://code.google.com/p/batchfiles/and have
successfully
I think Rweka implements the C4.5 (revision 8) algorithm, but it calls
it J4.8 (because it's written in Java instead of C, and also the
revision number, and is uses an open source licence, i think).
You might want to look at this paper by Schauerhuber, Zeileis Hornik
called 'Benchmarking
There's a link on the CRAN page for the AMORE package which apears to
have some cool information:
http://wiki.r-project.org/rwiki/doku.php?id=packages:cran:amore
Seems like an interesting package, I hadn't actually heard of it
before your post.
HTH,
Tony
On 27 May, 09:13, Indrajit Sengupta
-12.85845371-12.85849345
[..etc]
### R END ###
Hope that helps a wee bit mate,
Tony Breyal
On 27 May, 15:36, Indrajit Sengupta indra_cali...@yahoo.com wrote:
You are right there is a pdf file which describes the function. But let tell
you where I am coming from.
Just to test
Something like this should work:
z- paste(x,y, sep='')
HTH,
Tony
On 18 May, 12:09, Henning Wildhagen hwildha...@gmx.de wrote:
Dear users,
a very simple question:
Given two vectors x and y
x-as.character(c(A,B,C,D,E,F))
y-as.factor(c(1,2,3,4,5,6))
i want to combine them into a single
Hi Martial,
The rgl package is quite nice for this sort of thing:
# this is the example in ?plot3d
library(rgl)
open3d()
x - sort(rnorm(1000))
y - rnorm(1000)
z - rnorm(1000) + atan2(x,y)
plot3d(x, y, z, col=rainbow(1000))
HTH,
Tony Breyal
On 8 May, 09:25, Martial Sankar martial100
I usually use the ?source function.
so at the top of your test2.R file, you would put a line like:
source('C:\\test1.R')
but with the correct path to where ever you have stored your test1.R
file.
Hope that helps a little,
Tony
On 4 Mar, 10:29, Chang Jia-Ming chang.jiam...@crg.es wrote:
Dear
Hi Deepankar
The code on the following page looks kind of cool, and also seems to
produce something of the type of graph you are after perhaps:
https://r-forge.r-project.org/plugins/scmsvn/viewcvs.php/pkg/rgl/demo/regression.r?rev=702root=rglsortby=dateview=auto
[below is a copy of the code...]
,
Tony Breyal
On 25 Feb, 11:04, Corrado ct...@york.ac.uk wrote:
Dear friends,
I have to use a very large matrix. Something of the sort of
matrix(8,8,n) where n is something numeric of the sort 0.xx
I have not found a way of doing it. I keep getting the error
Error in matrix
Cheers for that information; I've just registered for the useR meeting
in London and then about 10 minutes later got that same bit of spam
too which made me a wee bit suspicious.
On 24 Feb, 13:39, Thomas Lumley tlum...@u.washington.edu wrote:
The same company caused a complaint about a year
Another way is:
subset(df, select=c(var.b, var.c))
though I'd be willing to bet that using %in% is probably faster.[1]
Tony
[1] Unfortuantly I'm skint :-(
On 24 Feb, 20:10, Sean Zhang seane...@gmail.com wrote:
Dear R-helpers:
I am an R novice and would appreciate answer to the following
and there. It just seems
to me that if
my.df2[DrHorrible]
works, then
my.df2[-DrHorrible]
should work too, in the same way that my.df2[-2] would.
Thanks again, always good to learn new and better ways of doing
things,
Tony Breyal
On 23 Feb, 08:41, Prof Brian Ripley rip...@stats.ox.ac.uk wrote
There's loads of packages in the Machine Learning R Task View:
http://cran.r-project.org/web/views/MachineLearning.html
for example: package e1071 (http://cran.r-project.org/web/packages/
e1071/index.html) has a function called svm()
On 23 Feb, 15:16, Meir Preiszler pm...@itamar-medical.com
that helps a little,
Tony Breyal
On 22 Feb, 04:41, miya ontiveros_pal...@yahoo.com wrote:
Hi everyone,
I'm trying to plot some data across time. I have a list of articles, ranks,
date/times, authors, etc. Someone suggested using zoo and someone suggested
using ts. I'm pretty new at this and have been
Hi all,
I was just radomly playing with R and got the following error when
trying to filter a data frame using a string:
Angel - c(7,8,6,9,10)
Buffy - c(8,9,4,9,10)
Firefly - c(9,9,10,10,10)
DrHorrible - c(10,9,9,10,10)
my.df - data.frame(Angel, Buffy, Firefly, DrHorrible)
Wow, i had no idea R was capable of producing graphics like that,
smegging awesome!
On 20 Feb, 19:28, Duncan Murdoch murd...@stats.uwo.ca wrote:
On 2/20/2009 1:55 PM, Duncan Murdoch wrote:
On 2/20/2009 1:46 PM, kapo coulibaly wrote:
Ideally I would want it to look like a rubik cube with
Dear all,
Objective: I am trying to learn about neural networks. I want to see
if i can train an artificial neural network model to discriminate
between spam and nonspam emails.
Problem: I created my own model (example 1 below) and got an error of
about 7.7%. I created the same model using the
help.
Tony
On 18 Feb, 11:40, Tony Breyal tony.bre...@googlemail.com wrote:
Dear all,
Objective: I am trying to learn about neural networks. I want to see
if i can train an artificial neural network model to discriminate
between spam and nonspam emails.
Problem: I created my own model
ahh, didn't see Gabor's solution, that works much better :-)
On 16 Feb, 10:00, Suresh_FSFM suresh.ghals...@gmail.com wrote:
Dear R-Experts,
seek your help.
There are two parts I want to deal with.
1)
I want to create a time interval of say, 30 minutes starting from 00:00:00
hrs
Thus at
Hi Tim,
This is what i usually try and do (see ?file.copy)
## R Start...
src.dir - 'PFO-SBS001\\Redirected\\tonyb\\Desktop\\folderA\\'
dest.dir - 'PFO-SBS001\\Redirected\\tonyb\\Desktop\\folderB\\'
file.names - dir(src.dir)
sapply(file.names, function(x) {
+
Hi Vie,
Something like the following should be fine:
## R Start...
n-1
my.min - 0
my.max - 0.7
runif(n, my.min, my.max)
[1] 0.01145260
## R end.
see ?runif for details. Hope that helps a little,
Tony Breyal
On 9 Feb, 14:40, Vie wxv...@bham.ac.uk wrote:
Hi,
Ive been trying to find
haha, that made me laugh :-)
Here's a cartoon featuring a picture some bloke called R.A. Fisher...
http://www.phdcomics.com/comics/archive.php?comicid=905
On 4 Feb, 15:44, Warren Young war...@etr-usa.com wrote:
http://xkcd.com/539/
Not entirely on topic here, but how often do you see a box
\nhead\n\
[etc...]
## R end.
very strange indeed.I use RCurl for web crawling every now and again
so i would be interested in knowing why this happens too :-)
Tony Breyal
On 26 Jan, 13:58, clair.crossup...@googlemail.com
clair.crossup...@googlemail.com wrote:
Dear R-help,
There seems to be a web
file, it will run
your script.
All you have to do now is have scheduler point to your new .bat
file :-)
HTH,
Tony Breyal
P.S. Be careful with windows scheduler (at least in Vista) if you want
the same script to run several times a day (e.g. setting a daily
trigger starting at 0900 and repeating
values,
main=Two Y-Axis example)
### R end.
Hope that helps a little,
Tony Breyal
On 14 Jan, 09:29, Kirsten Thonicke kirsten.thoni...@pik-potsdam.de
wrote:
Dear R experts,
I want to plot a line chart with another secondary axis placed right to
the standard secondary axis which
that helps a little bit,
Tony Breyal
On 14 Jan, 11:30, Xin Shi jasonshi...@hotmail.com wrote:
Dear All:
I am trying to read the data from the different sheet but in the same Excel
file. Does R provide this kind of command to do it?
Anyone has experience on this?
Thanks!
Xin
I ran your script on Windows Vista Ultimate, SP1 and it worked fine:
## R start...
url -
'ftp://ftp.wcc.nrcs.usda.gov/data/snow/snow_course/table/history/idaho/13e19.txt'
dest - //PFO-SBS001/Redirected/tonyb/Desktop/test/downloadtest.txt
download.file(url, dest)
trying URL
“We have customers who build engines for aircraft. I am happy they are
not using freeware when I get on a jet.”
The lady who made this comment, Anne H. Milley, director of technology
product marketing at SAS, has written a response to try and clarify
what she meant (funilly enough, i got this
Hi there, you probably want something like:
# R
grep(\\*, c(/3, 2*3, 4-4))
hope that helps a little,
Tony Breyal
On 9 Jan, 15:38, David Hajage dhajag...@gmail.com wrote:
Dear R useRs,
Sorry for this foolish question, but I can't find how to escape the *
character when using grep
the section
'An Introduction to Text Mining in R':
http://cran.r-project.org/doc/Rnews/Rnews_2008-2.pdf
Hope that helps a little bit,
Tony Breyal
On 9 Jan, 14:21, Kum-Hoe Hwang phdhw...@gmail.com wrote:
Howdy Gurus
I 'd like to ask a question about how to build TermDocMatrix in tm text
mining
Hi, if i understood correctly, you probably want the something like:
## R
format(Sys.time(), LMSMOD_%b_%d_%y_%H%M)
(works on windows, don't know about Mac)
Hope that helps a little,
Tony Breyal
On 8 Jan, 23:47, greggal...@gmail.com wrote:
I have a function that is called from a sourced
Thank you for posting this, I found it a very enjoyable read!
I am curious, is there an archive of 'R in the Media' or 'R in the
Press' articles somewhere? It would be interesting to see how the
perception of R has changed/evolved over time relative to other
packages.
Cheers,
Tony Breyal
On 7
:
you can use google alerts to track media coverage of R using some keywords
regards,
ajay
On Wed, Jan 7, 2009 at 9:52 PM, David M Smith
da...@revolution-computing.com wrote:
On Wed, Jan 7, 2009 at 6:39 AM, Tony Breyal tony.bre...@googlemail.com
wrote:
Thank you for posting this, I
Hi Zahid,I think the following should work, though there's probably a
dozen different ways to do what you want i think:
a-7.5
as.integer(a)
[1] 7
trunc(a)
[1] 7
Hope that helps a little,
Tony Breyal
On 15 Dec, 07:11, zahid khan solo_...@yahoo.com wrote:
Dear All
suppose that a=7.5,if i need
your thread. Or maybe a search on r-sig-finance (https://
stat.ethz.ch/pipermail/r-sig-finance/) might bring up something
helpful to you.
Hope that helps a little bit :-)
Tony Breyal.
On 11 Dec, 07:40, Shubha Vishwanath Karanth
[EMAIL PROTECTED] wrote:
Hi R,
Can we download Reuters (3000 Xtra
=function(...)
{})
xpathApply(html, //body//form//text(), xmlValue)
[[1]]
[1] \r\n\tlicenseID:
[[2]]
[1] \r\n\tcontent:
[[3]]
[1] \r\n\tparamsXML:
Cheers,
Tony Breyal
On 10 Dec, 03:06, Felix Andrews [EMAIL PROTECTED] wrote:
2008/12/10 Tony Breyal [EMAIL PROTECTED]:
Dear R-Help,
I am
?missing
never used it myself, but looks like it might help you :-)
Tony Breyal.
On 10 Dec, 19:09, jonas garcia [EMAIL PROTECTED]
wrote:
Dear list,
I have a question and I'm going to give an example of my problem
f- function(d1, d2, d3)
{
d- d1*d2/d3
return(d)
}
v1- 1
v2- 2
If I
*d2/d3, silent=TRUE)
if(class(d) == try-error) {
return(0)
} else {
return(d)
}
}
v1 - 1
v2 - 2
f(v1, v2, var_that_does_not_exist)
[1] 0
appologies if i missunderstood the question, but hopefully the above
is a little helpful :-)
Tony Breyal
help.
Tony Breyal.
__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.
Hi Jaey,
I asked a similar type of question last month, maybe it might be
helpful to you: https://stat.ethz.ch/pipermail/r-help/2008-October/176645.html
Warm Regards,
Tony Breyal
On 24 Nov, 08:21, jaey.ahn [EMAIL PROTECTED] wrote:
Hi, is there any function or package for timer?
What I inted
Hi Robin!
Does the following produce what you want mate?
### R START ###
text - 'this sentence contains an * (i.e. an astrix).'
grep('\\*', text)
[1] 1
### R END ###
Regards,
Tony Breyal
On 23 Nov, 08:41, Robin Clark [EMAIL PROTECTED] wrote:
Hello,
I'm trying to determine if a string
\pdfs\/r-intro.pdf'
### R END ###
not quite sure what what consequence that warning has, but otherwise
it's fine to me
Cheers,
Tony Breyal
On 16 Nov, 23:49, joris meys [EMAIL PROTECTED] wrote:
Hi Tony,
You can name several variables 'Path' without problems. So you best
restore the original
the system
() function as a work around. If you can figure out what i'm doing
wrong (probably something obvious knowing me!) please do let me know.
Cheers,
Tony Breyal
On 16 Nov, 18:14, Uwe Ligges [EMAIL PROTECTED] wrote:
[EMAIL PROTECTED] wrote:
I never said it *should* work.
I was simply trying
Hi Gabor, yes, i used the link from that website to figure out the
steps to setting my path: http://www.computerhope.com/issues/ch000549.htm
but i'm still doing something wrong it seems (see my last post in
response to Joris).
Cheers,
Tony Breyal
On 16 Nov, 20:07, Gabor Grothendieck [EMAIL
Files\Novell\ZENworks\;C:\Program Files\Common Files\Teleca Shared;C:
\Program Files\QuickTime\QTSystem\;C:\Program Files\xpdf\
Still didn't work i'm afraid, but cheers for the sugestion.
Tony Breyal
On 16 Nov, 20:00, joris meys [EMAIL PROTECTED] wrote:
Try putting PATH under name
Hi Uwe, that is what i have now done, following the sugestion from
Joris, but unfortuantly that hasn't worked.
Cheers,
Tony Breyal
Ps. i would like to appologise, i am replying to these posts through
google.groups.co.uk and there is a delay beween me posting a reply and
that post appearing
this and use it easily from a dos window to
convert a pdf file into a txt file.
Question: how do i make these tools available to R, so that i can use
the readPDF() function?
Thank you in advance for any help, and I hope the above made sense.
Tony Breyal
###OS = Windows Vista Ultimate
grateful to you for supplying this form of the the parameter
because I had no idea you could use an empty function in this way;
brilliant!
Cheers,
Tony Breyal
On 4 Nov, 12:37, Tony Breyal [EMAIL PROTECTED] wrote:
Dear R-help,
The following code downloads an html document into variable 'doc
(expr, silent=TRUE) but that didn't work for me:
try(htmlTreeParse(doc, useInternalNodes = TRUE), silent=TRUE)
Many thanks in advance for any help,
Tony Breyal
### O/S = Windows Vista Ultimate ###
sessionInfo()
R version 2.8.0 (2008-10-20)
i386-pc-mingw32
locale:
LC_COLLATE=English_United
scheduler - http://www.iopus.com/guides/winscheduler.htm
batch files - http://www.statmethods.net/interface/batch.html
I was able to write the batch file as a text document, and then after
saving it, changed the extension for '.txt' to '.bat'
Cheers,
Tony Breyal
On 13 Oct, 19:35, jim holtman [EMAIL
)], xmlValue))
}
print(txt)
Cheers,
Tony Breyal
On 6 Oct, 16:45, Tony Breyal [EMAIL PROTECTED] wrote:
Dear R-help,
I want to download the text from a web page, however what i end up
with is thehtmlcode. Is there some option that i am missing in the
RCurl package? Or is there another way
!')
proc.time() - p1
}
my.function (5)
[1] Hello R-Help!
user system elapsed
0 0 5
What I would rather do is just put in the time at which I wish R to
execute at.
Hope that made sense, and thanks for any help in advance!
Tony Breyal
### Windows Vista
sessionInfo()
R version
)
Many thanks for any help you can provide,
Tony Breyal
sessionInfo()
R version 2.7.2 (2008-08-25)
i386-pc-mingw32
locale:
LC_COLLATE=English_United Kingdom.1252;LC_CTYPE=English_United Kingdom.
1252;LC_MONETARY=English_United Kingdom.
1252;LC_NUMERIC=C;LC_TIME=English_United Kingdom.1252
removing the 's' in 'https'. If it turns out there is a good reason
not to remove the 's', then i will repost on. God i hope this post makes
sense lol.
Many thanks for your valuable time,
Tony Breyal
Ps. This is my first posting, so please be kind! :-)
PPs. Sorry this post was so long.
PPPs
(Omegahat
Repository), because I honestly can't find the mailing list for it, and ask
forgiveness for my earlier post :-)
Many thanks,
Tony
2008/10/1 Tony Breyal [EMAIL PROTECTED]
Dear R-Help,
From reading the help file, it is my understanding the the download.file()
function does not support
72 matches
Mail list logo