I'm not sure you need grep:
> all %in% some
[1] TRUE FALSE TRUE FALSE FALSE TRUE
On Thu, May 19, 2016 at 7:58 PM, MacQueen, Don wrote:
> Start with:
>
> > all <- c("ants","birds","cats","dogs","elks","fox")
> > all[grep('ants|cats|fox',all)]
> [1] "ants" "cats" "fox"
>
> Then construct the f
> On May 19, 2016, at 5:19 PM, Jim Lemon wrote:
>
> Hi laomeng_3,
> Have a look at the padjust function (stats).
>
> Jim
>
>
> On Fri, May 20, 2016 at 1:56 AM, laomeng_3 wrote:
>> Hi all:
>> As to the anova, we can perform multiple comparison via TukeyHSD.
>> But as to chi-square test for fr
Hi laomeng_3,
Have a look at the padjust function (stats).
Jim
On Fri, May 20, 2016 at 1:56 AM, laomeng_3 wrote:
> Hi all:
> As to the anova, we can perform multiple comparison via TukeyHSD.
> But as to chi-square test for frequency table,how to perform multiple
> comparison?
>
> For example,
Start with:
> all <- c("ants","birds","cats","dogs","elks","fox")
> all[grep('ants|cats|fox',all)]
[1] "ants" "cats" "fox"
Then construct the first arg to grep:
> some <- c("ants","cats","fox")
> all[ grep( paste(some,collapse='|') , all)]
[1] "ants" "cats" "fox"
--
Don MacQueen
Lawrence Li
> On May 19, 2016, at 4:09 PM, Steven Yen wrote:
>
> What is a good way to grep multiple strings (say in a vector)? In the
> following, I grep ants, cats, and fox separately and concatenate them,
> is there a way to grep the trio in one action? Thanks.
>
> all<-c("ants","birds","cats","dogs",
> On May 19, 2016, at 7:49 AM, Marcelo Perlin wrote:
>
> Hi Guys,
>
> First time posting here.
>
> I have a CRAN package called GetTDData that downloads and reads public data
> from a government website (
> http://www.tesouro.fazenda.gov.br/tesouro-direto-balanco-e-estatisticas).
>
> Recently
I use my own functions multiGrep and multiGrepl:
multiGrep = function(patterns, x, ..., sort = TRUE, invert = FALSE)
{
if (invert)
{
out = multiIntersect(lapply(patterns, grep, x, ..., invert = TRUE))
} else
out = unique(unlist(lapply(patterns, grep, x, ..., invert = FALSE)));
if (
What is a good way to grep multiple strings (say in a vector)? In the
following, I grep ants, cats, and fox separately and concatenate them,
is there a way to grep the trio in one action? Thanks.
all<-c("ants","birds","cats","dogs","elks","fox"); all
[1] "ants" "birds" "cats" "dogs" "elks" "
You will probably have to contact the maintainer of the package, since the
error appears to be generated inside the package's function.
Immediately after the error, type
traceback()
The results might give you a clue. Or they might not!
There might be some requirements on the second argument of
Hey All,
I am learning to create a map with leaflet(), but my default map background
won't show up, its just grey.
Here is my code:
leaflet() %>% addTiles()
addCircleMarkers(lng=points$lon,lat=points$lat,
radius=6,stroke=FALSE,fillOpacity = 0.5)
When I run the code, th
Rezvan:
"This is not help after keeping me waiting for long time. Such a waste
of time corresponding with you. "
You do understand that this is entirely a volunteer effort, do you
not? There is no guarantee that you will get any response at all, nor
that any that you do receive is actually helpf
In keeping with the theme of reducing unnecessary overhead
(and using William's example data)
> system.time( vAve <- ave(a, i, FUN=cummax) )
user system elapsed
0.125 0.003 0.127
> system.time( b <- unlist( lapply( split(a,i) , cummax) ) )
user system elapsed
0.320 0.007 0.327
I just tested your code on my debian install with no problems. RStudio
server logs messages to /var/log/messages (on redhat). Does running:
$ cat /var/log/messages |grep rsession
$ cat /var/log/messages |grep rserver
in the shell give any clues?
R version 3.2.5 (2016-04-14)
Platform: x86_64-p
Michael,
Thanks for your response.
I tried table(table(Bmat)) and it gave me the following error:
[ Error in table(Bmat) : object 'Bmat' not found]
FYI--
"values" contains 16,383 observations ranging from 0 to less than 1.
Lisa
-Original Message-
From: Michael Dewey [mailto:li...@
Hi all:
As to the anova, we can perform multiple comparison via TukeyHSD.
But as to chi-square test for frequency table,how to perform multiple
comparison?
For example, if I want to compare 3 samples' ratio(the data has 3 rows,each row
corresponds to 1 sample,and has 2 columns,each column corres
Dear Lisa
What does Bmat contain? Perhaps try table(table(Bmat)) and see if any
entries are greater than unity.
On 19/05/2016 15:16, Rees, Lisa Marie (MU-Student) wrote:
I'm using the "GameTheory" package--- DefineGame(14,values) and values is equal
to 16,383 observations.
I keep getting th
Hello all,
I've run a model, and now would like to extract residuals. However, I
have set sum-to-zero contrasts for the categorical fixed effect
(contr.sum). Because I am interested in looking at the variation in the
residuals associated with that fixed effect (along with other levels), I
n
- Forwarded Message -
From: rezvan hatami
To: Shige Song
Sent: Thursday, 19 May 2016, 17:38
Subject: Re: [R] R STUDIO crashing
I didn't say that there is a problem with R or Rstudio. I said, it keeps
crashing for whatever reason. If it is not crashing on your computer It
Thank you Peter for pointing out my errors.
I shall take care of if henceforth.
To keep the mail short I left out the details, sorry about that.
I am using wordcloud package to built a comparative and commonality
cloud.
My usage:
comparison.cloud(term.matrix,max.words=300)commonali
Hi Guys,
First time posting here.
I have a CRAN package called GetTDData that downloads and reads public data
from a government website (
http://www.tesouro.fazenda.gov.br/tesouro-direto-balanco-e-estatisticas).
Recently (today), the website has changed its structure by removing
permanent links
I'm using the "GameTheory" package--- DefineGame(14,values) and values is equal
to 16,383 observations.
I keep getting the following error-
[Error in data.frame(rep(0, 2^n - 1), row.names = Bmat) :
duplicate row.names: 1, 11, 111, 12, 112, 1112, 2, 13, 113, 1113, 3,
1213, 11213, 111213
Thanks all !!
On Thu, May 19, 2016 at 9:55 AM, Ivan Calandra
wrote:
> Hi,
>
> You can do it by first plotting your values without the x-axis:
> plot(x,y,log="xy", xaxt="n")
>
> and then plotting the x-axis with ticks where you need to:
> axis(side=1, at=seq(2000,8000,1000))
>
> HTH,
> Ivan
>
> -
Hi,
You can do it by first plotting your values without the x-axis:
plot(x,y,log="xy", xaxt="n")
and then plotting the x-axis with ticks where you need to:
axis(side=1, at=seq(2000,8000,1000))
HTH,
Ivan
--
Ivan Calandra, PhD
Scientific Mediator
University of Reims Champagne-Ardenne
GEGENAA - E
On 19/05/2016 9:40 AM, Brian Smith wrote:
Hi,
I have a plot with log scale on the axes. How do I add ticks and labels in
addition to the ones provided by default? Can I specify where I want the
ticks and labels?
For example:
set.seed(12345)
x <- sample(1:1,10)
y <- sample(1:1,10)
plot
Hi,
I have a plot with log scale on the axes. How do I add ticks and labels in
addition to the ones provided by default? Can I specify where I want the
ticks and labels?
For example:
set.seed(12345)
x <- sample(1:1,10)
y <- sample(1:1,10)
plot(x,y,log="xy")
For me, this plot has tick
Hi Saba,
Your main worry may be that of non- zero status and hence your attempt to
load what the system claims you have. I have encountered such problems
severally. You can try two things: run it several times ( network issues
might play a role) or try different crab mirrors.
Ogbos
On May 19, 2016
Also, this starting happening for me with R studio 0.99.893, so if you have
a different version, maybe it is a different issue (or maybe it is a
different issue regardless...).
Joe
On Thu, May 19, 2016 at 7:27 AM, Joe Ceradini wrote:
> I had this problem as well, a lot, and it was frustrating a
I had this problem as well, a lot, and it was frustrating and I did not
find much reference to it online. I believe it occurs after you run a plot
and then make the plotting window too small for R studio to redraw the
plot. Then when run a line of code, it never runs or appears to be running
indefi
What happens if you run R in a console or the Windows GUI if you are using
Windows
We need to isolate the issue as an R issue or an RStudio one or a local
computer one. My experience is that occasionally RStudio will do something a
bit weird but usually rebooting RStudio cures it.
If it appe
On 18/05/2016 6:46 AM, rezvan hatami via R-help wrote:
Hi there
I have been using R for a while now. I am doing my PhD project with it. Recently, it keeps crashing, mostly
when I draw a graph and use XYPLOT code. I even spent some money on cleaning registry, checking ram, deleting
unnecessary f
For 3D scatterplot you can use also "scatterplot3d" package.
2016-05-19 8:40 GMT+02:00 David Winsemius :
>
> > On May 18, 2016, at 7:51 AM, ch.elahe via R-help
> wrote:
> >
> >
> > Hi all,
> > I am using R version 3.2.3 and I want to plot 3D histogram or 3D
> scatterplot. Does anyone know which
31 matches
Mail list logo