similar to: regular expressions in R

Displaying 20 results from an estimated 50000 matches similar to: "regular expressions in R"

2012 Feb 02
4
an unusual use for R
I thought some of you might be amused by this. In my non-work time, I'm an avid weaver and teacher of weaving. I'm working on a project involving creating many detailed weaving patterns, so I wrote R code to automate it. Details here: http://stringpage.com/blog/?p=822 If the overlap between R users and avid tablet weavers turns out to be >> 1, I'll polish it up and turn it
2011 Nov 15
2
Regular expressions in R
Good afternoon list, I have the following character strings; one with spaces between the maths operators and variable names, and one without said spaces. form<-c('~ Sentence + LEGAL + Intro + Intro / Intro1 + Intro * LEGAL + benefit + benefit / benefit1 + product + action * mean + CTA + help + mean * product')
2011 Dec 02
3
find and replace string
Dear all, I would like to search in a string for the second occurrence of a symbol and replace the symbol after it For example my strings look like sta_+1+0_field2ndtry_0000$01.cfg I want to find the digit that comes after the second +, in that case is zero and then over a loop create the strings below sta_+1+0_field2ndtry_0000$01.cfg sta_+1+1_field2ndtry_0000$01.cfg
2011 Sep 30
3
is member
Dear all, I have a vector with number that some of them are part of the   seq(1,800,4). How can I check which of the numbers belong to the seq(1,800,4)   LEt's say that is called myvector the vector with the numbers. Is there in R something like this? is.member(myvector,seq(1,800,4))   I would like to thank you in advance for your help   B.R Alex [[alternative HTML version deleted]]
2011 Nov 17
2
read.table with double precision
Dear all I have a txt file with the following contents 1 50.7906430000000 6.06349800000000 2 50.7907380000000 6.06347100000000 3 50.7910810000000 6.06338000000000 4 50.7911890000000 6.06355200000000 I am usind read.table('myfile.txt',sep=" ") which unfortunately returns only integers and not doubles that are required to store the  50.7906430000000 What can I do to force it
2012 May 17
1
Is there R 2.4 version_
Dear all, I am trying to install the rJava package. I am getting the following message "libjvm.so: cannot open shared object file: No such file or directory" at this web site I have found that (bottom part) http://rwiki.sciviews.org/doku.php?id=packages:cran:rjava that Unix: if you encounter a message similar to this one: Error in dyn.load(x, as.logical(local), as.logical(now)) :
2010 Nov 18
1
why help ignores some values
Please take a look at the values below ................. [31,] 30.000000000000000 30.000000000000000 [32,] 31.000000000000000 31.000000000000000 [33,] 32.000000000000000 32.000000000000000 [34,] 33.000000000000000 33.000000000000000 [35,] 34.000000000000000 34.000000000000000 [36,] 35.000000000000000 35.000000000000000 [37,] 35.999999999999872 35.999999999999872 These are entries in an array.
2011 Aug 16
2
postscript( does not save the plot
Dear all, I am using the following code to write the plot to an eps format postscript(file="test.eps",horizontal=FALSE)
2011 Jul 29
3
help with plot.rpart
? data=read.table("http://statcourse.com/research/boston.csv", , sep=",", header = TRUE) ? library(rpart) ? fit=rpart (MV~ CRIM+ZN+INDUS+CHAS+NOX+RM+AGE+DIS+RAD+TAX+ PT+B+LSTAT) Please: Show me the tree. Mark -------- Original Message -------- Subject: Re: [R] help with rpart From: "Stephen Milborrow" <[1]milbo at sonic.net>
2018 Mar 17
3
length of 'dimnames' [2] not equal to array extent- For Correlation Plot
Hi Sarah, Thank you for your help. I tried using CR1<-as.matrix(CR1) but gives error Error in corrplot(CR1, method = "circle") : The matrix is not in [-1, 1]!. I am using a corrplot library. Please find the reproducible example: dput(head(CR1,10)) structure(c(26L, 46L, 39L, 38L, 47L, 59L, 56L, 61L, 43L, 60L, 78L, 63L, 2L, 58L, 8L, 1L, 1L, 9L, 11L, 2L, 1037500L, 46747L, 346300L,
2010 Dec 13
3
curve
Hi All, I generated 5000 samples using the following script test<- rnorm(5000,1000,100) test1 <- subset(test, subset=(test > 1100)) d <- density(test) plot(d, main="Density of production") abline(v=mean(test1) I wanted to do the following but faced difficulties 1. to shade or color (blue) the curve using the criterion that any
2011 Dec 01
3
vector
Hi. Can you please answer to my questions about R ? 1.how can I write command for vector ? for exaple in this sample : I have this : a1 <- c (1:10) now how can I put in the vector ? bye for now, Thanks a lot. Majid. [[alternative HTML version deleted]]
2013 Apr 03
5
Can package plyr also calculate the mode?
I am trying to replicate the SAS proc univariate in R. I got most of the stats I needed for a by grouping in a data frame using: all1 <- ddply(all,"ACT_NAME", summarise, mean=mean(COUNTS), sd=sd(COUNTS), q25=quantile(COUNTS,.25),median=quantile(COUNTS,.50), q75=quantile(COUNTS,.75), q90=quantile(COUNTS,.90), q95=quantile(COUNTS,.95), q99=quantile(COUNTS,.99) )
2013 Sep 26
1
R not ploting lines in the correct order
Hi, I have a set of x, y points where x represents dates and y actual values. I am trying to plot a line graph of the data with points on top, but R is connecting the wrong points with lines. Does anyone know how I can rectify this. Please see sample below: x= 24/09/2009 09:13 16/10/2009 11:17 24/10/2009 21:43 11/09/2009 18:34 22/08/2009 15:45 10/08/2009 00:30 14/08/2009 14:52 24/09/2009
2012 Mar 12
3
Finding the median
Hi just a quick question in which I must use the "function and return" part of R. If I was asked to define a function called "median" where the function has a single argument x and returns the median value of a vector. How would I go about saying the median = element x in terms of n (say (n + 1)/2 or whatever it would be) if there is an even amount of elements, or x in terms
2018 Mar 17
0
length of 'dimnames' [2] not equal to array extent- For Correlation Plot
That does clarify for me that you're missing a step: I didn't clearly follow your description at first. corrplot expects a correlation matrix, not your original data. You need to use cor() first. That's pretty clear in the documentation. See for instance the examples: data(mtcars) M <- cor(mtcars) corrplot(M) Sarah On Sat, Mar 17, 2018 at 12:00 PM Shivi Bhatia <shivipmp82 at
2013 Mar 28
2
Can R read in .xyz files
Hi, Can R read in .xyz files? If so, what is the package, thanks -- Shane [[alternative HTML version deleted]]
2016 Apr 15
1
Decision Tree and Random Forrest
I need the output to have groups and the probability any given record in that group then has of being in the response class. Just like my email in the beginning i need the output that looks like if A and if B and if C then %77 it will be D. The examples you provided are just simply not similar. They are different and would take interpretation to get what i need. On Apr 14, 2016 1:26 AM,
2007 Jun 15
1
text display using expression or not
Hello, I imagine that I'm missing something straightforward, but a run thru the help files didn't turn up an answer. I noticed while formatting some figures for publication that text enclosed in expression() and used for a title displays differently than a string, regardless of the par options. On both postscript() and x11() devices, the regular text is heavier than the expression text.
2012 Jul 05
3
Histogram
I have a column of 1000 datapoints from the normal distribution with mean 2 and variance 4. How can I get a histogram of these observations with 20 bins with each bin having 50 observations? -- Thanks, Jim. [[alternative HTML version deleted]]