search for: breyal

Displaying 20 results from an estimated 46 matches for "breyal".

2009 Jun 22
3
What has happened to the R-Help Google Groups Archive? Alternative?
...e it violated Google's Terms Of Service." Is there an alternative website 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
2008 Oct 06
3
Extracting text from html code using the RCurl package.
..., ssl.verifypeer = FALSE, followlocation = TRUE) > print(html.file) I thought perhaps the htmlTreeParse() function from the XML package might help, but I just don't know what to do next with it: > library(XML) > htmlTreeParse(html.file) 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 attached base packages: [1] stats graphics grDevice...
2010 Jun 23
1
is there a Decode HTML function somewhere (similar to URLdecode)?
Dear all, I am aware of the URLdecode(..) function and was wondering if there was something similar for HTML? For example, I would like to convert strings like this: > x <- "isn&apos;t" into this: > "isn't" Many thanks for your time, Tony Breyal # O/S: Windows Vista 32 bit # R version 2.11.0 (2010-04-22)
2008 Nov 04
2
How to suppress errors from htmlTreeParse() function in XML package?
...s Tag nobr invalid htmlParseEntityRef: expecting ';' htmlParseEntityRef: expecting ';' ### etc. I attempted to use try(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 Kingdom.1252;LC_CTYPE=English_United Kingdom. 1252;LC_MONETARY=English_United Kingdom. 1252;LC_NUMERIC=C;LC_TIME=English_United Kingdom.1252 attached base packa...
2009 Jun 03
2
Regular expression \ String Extraction help
...#39;', step2[4]) > step3 <- paste(step2[1], step2[2], step2[3], sep=' ') > paste('C:\\test\\', Name, '\\', step3, '\\', txt, sep='' ) [1] "C:\\test\\Universities\\2009-04-10 1400 Fri\\2009-04-10 1400 Fri Universities1.txt" Cheers, Tony Breyal
2008 Oct 13
1
Running R at a specific time - alternative to Sys.sleep() ?
...print('Hello R-Help!') 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 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 attached base packages: [1] stats g...
2008 Dec 09
1
RCurl::postForm() -- how does one determine what the names are of each form element in an online html form?
..., i believe the form elements are: "some_text", "choice", "redbut" and "box". But how does one find out the names of these form elements if one is not given them previously? I hope that the above made sense, and thank you kindly in advance for any help. Tony Breyal.
2010 Mar 31
3
regular expression help to extract specific strings from text
..."Eve: @Adam, It's awesome, so much better at statistics that #[...] ever was! @Cain & @Able disagree though :(" [4] "Adam: @Eve I'm sure they'll sort it out :)" [5] "blahblah" I hope that makes sense, and thank you kindly in advance for your time. Tony Breyal
2009 Sep 07
2
using an array of strings with strsplit, issue when including a space in split criteria
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', fixed=TRUE) [[1]] [1] "sales to 23 August 2008 "
2009 May 08
3
'Dynamic' 3D plot
Hi, I am looking for a R package to draw 3d plot. But not in a static way like scatterplot3d or stuff like that. I would like to make rotate the plot, to zoom/unzoom etc..., actually to render the graph 'dynamic'... (for the biologist and bioinformatician, a R package which permitts to reproduce what pdb viewer does). Does a Way exist to do something like that in R ? Thanks,
2008 Oct 01
1
changing 'https' to 'http' when using download.file(), any side effects or just use RCurl?
...idea where the omegahat mailing list is, which is why i'd like to know about 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. For anyone interested, this is what happens when using RCurl: ### R Code > library(RCurl) > txt = getURL(" https://stat.ethz.ch/pipermail/r-help/2008-October/thread.html") Error in curlPe...
2009 Aug 27
3
Merge data frames but with a twist.
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 <- data.frame(cbind(Show=c('Firefly', 'Red Dwarf'), Measure=1:2,
2009 Jun 02
1
Problem downloading webpages using batchfiles and RCurl from command line in Vista Basic - couldn't connect to host
...o, on my other computer which runs Windows Vista Ultimate, the command line version works 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=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 attached base packages: [1] stats graphics grDevices...
2009 Dec 22
2
Reading PDF files
Hi: I need to do text mining on PDF files. I understand there is a readPDF command in tm that can be used. Have read the 2008 posts on converting PDF files to text by Tony Breyal and others. Wondering if the procedure has been standardized in any tutorial or otherwise? Being new to R, I was able to follow only part of the discussion. Any way to get a set of step by step instructions appropriate for my level? I am an ageing academic who has worked mostly with SAS a...
2010 May 06
2
reading formatted txt file into a data frame
...d maybe do some regular expressions and also use strsplit(..); but having confused myself after several attempts I was wondering if there is a way, perhaps using maybe read.table instead? My end goal is to hopefully convert DF into an XML structure. Thank you kindly in advance for your time, Tony Breyal # Windows Vista > sessionInfo() R version 2.11.0 (2010-04-22) i386-pc-mingw32 locale: [1] 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 attach...
2008 Nov 13
1
readPDF() -- unsure how to install xpdf to make this work?
...labs.com/xpdf/download.html I am able to download 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 >> sessionInfo() R version 2.8.0 (2008-10-20) 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 attached base pac...
2010 Jan 20
1
Reshaping data with xtabs giving me 'extra' data
...> my.xtab[,,"13:30:00"] Show Date Being Human Doctor Who Red Dwarf 2010-01-19 0 0 0 2010-01-20 2 3 1 Perhaps I am missing something in the way i call the xtabs function? Thank you kindly for your time, Tony Breyal OS: Windows XP 64bit > sessionInfo() R version 2.10.0 (2009-10-26) i386-pc-mingw32 locale: [1] LC_COLLATE=English_United States.1252 LC_CTYPE=English_United States.1252 LC_MONETARY=English_United States.1252 LC_NUMERIC=C LC_TIME=English_United States. 1252 attach...
2009 Dec 22
0
Reading PDF files (using xpdf)
...tony\\Desktop\\pdfs\\' #put your pdfs in here > Corpus(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 <zeusufza at lmu.edu>: > Hi: > > I am very new to R. I just read through your 2008 posts on converting PDF files to text. I have exactly the same goal. > > Has the procedure been standardized in any tutorial? I was able to follow only part of the discussion. Any...
2009 Jan 15
2
Interface to open source Reporting tools
...9. Print specific matrix value??? (Nidhi Kohli) > 10. Re: The R Inferno (Ajay ohri) > 11. Re: Plot link points (Roy Mendelssohn) > 12. Re: Print specific matrix value??? (Stephan Kolassa) > 13. Re: Fw: Re: R Stacked Histogram (hadley wickham) > 14. Re: R in the NY Times (Tony Breyal) > 15. Arguments for Rcmd BATCH (Andrew Hicks) > 16. Calling C from FORTRAN and vice versa (Michael H?hle) > 17. R version requires Bioconductor 2.3 version (Andreas Scherer) > 18. JGR editor setting problem (tedzzx) > 19. Setting a contingency table (Bhargab Chattopadhyay) &gt...
2008 Dec 10
2
missing argument
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 try f(v1, v2, v3) Error in f(v1, v2, v3) : object "v3" not found I obviously got the above error message. I would like to add something to my function to allow me to get a certain value (say zero) if one of the arguments is