similar to: regular expression question

Displaying 20 results from an estimated 10000 matches similar to: "regular expression question"

2006 Aug 29
3
Substring and strsplit
Dear R People: I am trying to split a character vector into a set of individual letters: Ideal: x3 <- c("dog") "d" "o" "g" I tried the following: > strsplit(x3) Error in strsplit(x3) : argument "split" is missing, with no default > strsplit(x3,1) [[1]] [1] "dog" I know that this is incredibly simple, but what am I doing
2004 Mar 28
2
splitting a character vector
Dear R People: Suppose I have the following; xa <- c("There are 5 dogs") I would like to have a new character vector such that xb[1] is There xb[2] is are xb[3] is 5 xb[4] is dogs Since the original vector has length 1, substring will not work. Any suggestions would be MOST welcome! thanks Erin Hodgess Associate Professor Department of Computer and Mathematical Sciences
2011 Oct 12
5
strsplit question
Dear R People: I have the following set of data > Block[1:5] [1] "5600-5699" "6100-6199" "9700-9799" "9400-9499" "8300-8399" and I want to split at the - > strsplit(Block[1:5],"-") [[1]] [1] "5600" "5699" [[2]] [1] "6100" "6199" [[3]] [1] "9700" "9799" [[4]] [1]
2008 Oct 29
6
substring/strsplit question
Dear R People: Here is a toy example: > x <- c("2E","5W","12H") > substr(x,2,2) [1] "E" "W" "2" > Sometimes x has 3 elements, sometimes 2. I want to extract the last element, and then extract the other 1 or 2 elements. How can I do this, please? TIA, Sincerely, Erin -- Erin Hodgess Associate Professor Department of
2011 Mar 19
3
[O/T] reference for regular expressions
Dear R People: Could someone recommend a good reference on regular expressions, please? Thanks in advance, Sincerely, Erin -- Erin Hodgess Associate Professor Department of Computer and Mathematical Sciences University of Houston - Downtown mailto: erinm.hodgess at gmail.com
2013 Mar 22
2
read.pnm question in R-beta
In R-beta (Masked Marvel), when I do the example from the read.pnm help file, this is what happens: x <- read.pnm(system.file("pictures/logo.pgm",package="pixmap")[1]) Warning message: In rep(cellres, length=2): x is NULL so the result will be NULL In R-2.15.3, it's all right. Thanks, Erin Erin M. Hodgess, Ph.D. Associate Professor Department of Computer and
2013 Sep 17
1
strange behavior for RcmdrPlugin.qual
Hello! Over the weekend, I updated my RcmdrPlugin.qual package. It works fine on a 64 bit Windows machine but not a 32 bit. This is very strange. The new menu with all of the Quality Control stuff does not appear. Have any of you run into this sort of thing before, please? Thanks, Sincerely, Erin Erin M. Hodgess, Ph.D. Associate Professor Department of Computer and Mathematical Sciences
2013 Jan 09
1
R2html and Blackboard LMS : solved
Everything is ok on Firefox, IE, and iPad. Thanks, Erin On Tue, Jan 8, 2013 at 7:58 PM, Erin Hodgess <erinm.hodgess at gmail.com> wrote: > Dear R People: > > Has anyone used R2HTML in web files that were on the Blackboard LMS, please? > > I'm starting to do these but wanted to know if there were any > potential pitfalls. > > Thanks, > Erin > > > --
2012 Aug 13
6
named character question
Dear R People: Here is a goofy question: I want to extract the zip code from an address and here is my work so far: > add1 results.formatted_address "200 W Rosamond St, Houston, TX 77076, USA" > add1[1][32:36] <NA> <NA> <NA> <NA> <NA> NA NA NA NA NA > str(add1) Named chr "200 W Rosamond St, Houston, TX 77076,
2009 Jun 20
1
loading .Rdata files
Dear R People: I'm loading several thousand .Rdata files in sequence. If one of them is empty, the function crashes. I am thinking about using system(wc ) etc., and strsplit for the results, but was wondering if there is a more clever way via a file type command, please. Thanks, Erin -- Erin Hodgess Associate Professor Department of Computer and Mathematical Sciences University of
2006 Feb 06
3
decomposed.ts class and method
Dear R People: In the function "decompose", the object has the class of "decomposed.ts". (from package stats) I would like to see the class definition and the method for the plotting. However, when I use isClass("decomposed.ts") I get "FALSE". When I check getMethods("plot") there is no method for plot on decomposed.ts Any suggestions,
2011 Mar 24
2
running a script repeatedly
Dear Debian People: Is there a way to run a little script (on Ubuntu Manic Meerkat) every hour, please? I know that this is more of a LINUX/UNIX question rather than an R question. Sorry. Thanks, Erin Erin M. Hodgess, PhD Associate Professor Department of Computer and Mathematical Sciences University of Houston - Downtown mailto: hodgesse@uhd.edu [[alternative HTML version deleted]]
2017 Aug 17
1
really dumb question with building/creating a new package.
Thank you! On Thu, Aug 17, 2017 at 4:55 PM, Bert Gunter <bgunter.4567 at gmail.com> wrote: > r-package-devel is probably a better place to post this, especially if > you do not get a satisfactory reply here. This list is about R > programming, as you presumably know; your query is not. > > Cheers, > Bert > > > Bert Gunter > > "The trouble with having
2006 Feb 27
2
install RPM file on Redhat
Dear R People: I downloaded the RPM for Red Hat Linux. How do I install this, please? When I looked at the R Intallation manual, it seemed to be referring to installing from source. Thanks in advance! Sincerely, Erin Hodgess Associate Professor Department of Computer and Mathematical Sciences University of Houston - Downtown mailto: hodgess at gator.uhd.edu
2006 Aug 02
2
listing of permutations
Dear R People: Suppose I have the 4 numbers: 1,2,3,4. I would like to create a listing of the permutations of 4 items taken 4 at a time. Is there a built in function for that, please? Thanks in advance! R 2-3-1 for Windows or Linux Sincerely, Erin Hodgess Associate Professor Department of Computer and Mathematical Sciences University of Houston - Downtown mailto: hodgess at gator.uhd.edu
2011 Oct 02
2
getting list of data.frame names
Dear R People: This is probably a very simple question. I know that if I want to get a list of the classes of the objects in the workspace, I can do this: > sapply(ls(), function(x)class(get(x))) a a1.df b d "list" "data.frame" "integer" "numeric" Now I want to get just the data frames. >
2003 Nov 14
3
Expressions and Functions
Dear R People: When the D function is used for a symbolic derivative, an expression is returned, which is fine. How do you change that expression to a function, please? I've been experimenting with substitute and deparse, but no success yet. This is R 1.8.0 for Windows. thanks in advance for the help! Sincerely, Erin Hodgess mailto: hodgess at gator.uhd.edu
2006 Apr 24
4
GUI font size
Dear R People: On the Edit menu, there is a GUI preference tab. On the Font option, the highest value is 18. Has anyone ever had the font size set larger than that will any success, please? Thanks, Erin Hodgess Associate Professor Department of Computer and Mathematical Sciences University of Houston - Downtown mailto: hodgess at gator.uhd.edu PS Windows, R 2-2-1
2006 Jan 01
4
S3 vs. S4
Dear R People: Could someone direct me to some documentation on the difference between S3 and S4 classes, please? For example, why would a person use one as opposed to another? Maybe pros and cons of each? Thanks in advance! R Version 2.2.0 (I'm downloading the new one this afternoon!) Windows. Happy New Year! Sincerely, Erin Hodgess Associate Professor Department of Computer and
2006 Dec 10
3
DOE teaching suggestions?
Dear R People: I will be teaching an undergraduate Design of Experiments class in the Spring Semester. It will be very much an applied course. My question, please: has anyone used R for a course like this, please? I've tried Rcmdr for a regression course and just plain command line for a time series course. Should I use Rcmdr, or teach them to use the command line, OR is there something