I'm trying to use foreach function to do multicore computing in R.
Error in FUN(train_adjmt, iter = missedmat[i, 1], iter2 = missedmat[i, :
task 1 failed - "找不到对象'predictMatrix'"
then I call function A in the console. The problem is I'm calling a
function Posdef inside B that is defined in a
I'm trying to use foreach function to do multicore computing in R.
A <-function() {
foreach(i=1:10) %dopar% {
B()
}}
then I call function A in the console. The problem is I'm calling a
function ipredictMatrix inside B that is defined in another script file
which I source.However
Hi I am having a problem with plot () and ggplot (). When I call one of
these functions, the plotting area starts to look as though it is working,
but nothijg ever is visible. Unless it was a dendrogram. Woth the bar
chart, the plotting area just had an x and y axis and nothing else. I tried
a b
Hi,When I use any function of RWeka Package in Rstudio I get an error, "Error
in .jnew (name): java.lang.ClassFormatError." can anyone guide me in
this?Operation system used: Linux 64 bit (CentOS)
Command used: >data("crude")>tdm <- TermDocumentMatrix(crude,
control=list(tokenize = NGramTokenize
Hi,When I use any function of RWeka Package in Rstudio I get an error, "Error
in .jnew (name): java.lang.ClassFormatError." can anyone guide me in
this?Operation system used: Linux 64 bit (CentOS)
Command used: >data("crude")>tdm <- TermDocumentMatrix(crude,
control=list(tokenize = NGramTokenize
Hi Milu,
My fault here. As I don't have the data to make the map and try out my
suggestions I mixed up the x and y coordinates. Try this:
par(xpd=TRUE)
arrows(-19.75966,53,33.6,53,code=3)
par(xpd=FALSE)
Jim
On Tue, Apr 12, 2016 at 10:11 PM, Miluji Sb wrote:
> Hello Jim,
>
> Thanks again. I
I've never seen the error mentioned before but see Brian Ripley's post
https://stat.ethz.ch/pipermail/r-help/2008-March/157341.html. It looks like you
are exceeding a limit.
We probably should see some sample code and data.
Please have a look at
http://stackoverflow.com/questions/5963269/how-
Dear r users
I've a loop that has 20 if else statements but it gave me the ""contextstack
overflow"" error at statement 14
Is there any way to overcome this problem cause i'm forced to do that loop
any help or recommendations please
__
R-help@r-projec
Dear Michael,
Yes, AFAIK you are correctly reading the results.
You can print
elbow.obj$k
to obtain the optimal number of clusters, and ‘visually’ you can check it
plotting the variance vs #clusters
plot(css.obj$k, css.obj$ev)
HTH
Best,
Luisfo Chiroque
PhD Student
IMDEA Networks Institute
http:
Thanks, the stat="identity" worked.
On Tue, Apr 12, 2016 at 3:34 PM, Huzefa Khalil
wrote:
> Hi James,
>
> If you want to specify the y-values, you need to use stat="identity" as
> below:
>
> ggplot(probability, aes(x=Fertilizer, y=prob)) +
> geom_bar(stat="identity", aes(fill=Treatment))
>
>
> b
Hi James,
If you want to specify the y-values, you need to use stat="identity" as below:
ggplot(probability, aes(x=Fertilizer, y=prob)) +
geom_bar(stat="identity", aes(fill=Treatment))
best,
huzefa
On Tue, Apr 12, 2016 at 1:02 PM, James Henson wrote:
> Dear R Community,
>
> Below is a problem
If you generate the list of pages you're comfortable editing, the posse
of folk who have already come forward can select one that we think can
be improved and see how we get along with it.
Sarah has already noted that Github offers wiki documentation. It is
likely imperfect, but we can (and should
On Tue, Apr 12, 2016 at 9:44 AM, David Winsemius wrote:
>
> There need to be more worked examples, but those could easily be mined from
> problems submitted as recorded in the R-help Archives and StackOverFlow.
>
This sounds like a great opportunity for R-users to contribute to the
community
On 12/04/2016 11:30 AM, ProfJCNash wrote:
Thanks Duncan, for the offer to experiment.
Can you suggest a couple of your pages that you think might need
improvement? We might as well start with something you'd like looked at.
I don't think I can. I don't intentionally write obscure documentatio
Dear R Community,
Below is a problem with a simple ggplot2 graph. The code returns the error
message below.
Error: stat_count() must not be used with a y aesthetic.
My code is below and the data is attached as a ‘text’ file.
# Graph of the probabilities
library(digest)
library(DT)
datatabl
On 12/04/2016 12:44 PM, David Winsemius wrote:
> On Apr 12, 2016, at 8:31 AM, Sarah Goslee wrote:
>
> I am very interested in such a distributed documentation editing
> project, and have some thoughts on how to make it workable for both
> volunteers and core members who would need to review.
>
>
> On Apr 12, 2016, at 8:31 AM, Sarah Goslee wrote:
>
> I am very interested in such a distributed documentation editing
> project, and have some thoughts on how to make it workable for both
> volunteers and core members who would need to review.
>
> I'm willing to lead or colead such a project,
I am very interested in such a distributed documentation editing
project, and have some thoughts on how to make it workable for both
volunteers and core members who would need to review.
I'm willing to lead or colead such a project, if someone stepping up
would be a useful first step, and I'm also
Thanks Duncan, for the offer to experiment.
Can you suggest a couple of your pages that you think might need
improvement? We might as well start with something you'd like looked at.
Then I'll ask if there are interested people and see what can be done
about getting a framework set up to work on o
Hi Fabio,
Using the first example from ?dbFD
ex1 <- dbFD(dummy$trait, dummy$abun)
If you look at that help page, or at str(ex1), you'll see that the
returned object is a list with named components. So, you can access
the different indices just as you would access any other list. If
that's confus
Would making it regular function %=>%, using "%" instead of quotes,
work for you?
On Tue, Apr 12, 2016 at 11:09 AM, Adrian Dușa wrote:
> On Tue, Apr 12, 2016 at 2:08 PM, Duncan Murdoch
> wrote:
>> [...]
>>
>> It never gets to evaluating it. It is not a legal R statement, so the
> parser signals
On Tue, Apr 12, 2016 at 2:08 PM, Duncan Murdoch
wrote:
> [...]
>
> It never gets to evaluating it. It is not a legal R statement, so the
parser signals an error.
> If you want to pass arbitrary strings to a function, you need to put them
in quotes.
I see. I thought it was parsed inside the funct
FWIW:
1. I agree that this is an idea worth considering. Especially now that
R has become so widely used among practitioners who are neither
especially software literate nor interested in poring over R manuals
(as I did when I first learned R). They have explicit tasks to do and
just want to get t
On 12/04/2016 9:21 AM, ProfJCNash wrote:
"The documentation aims to be accurate, not necessarily clear."
> I notice that none of the critics
> in this thread have offered improvements on what is there.
This issue is as old as documented things. With software it is
particularly nasty, espec
On 12/04/2016 11:24, Adrian Dușa wrote:
I have a simple function such as:
foo <- function(x) {
call <- lapply(match.call(), deparse)
testit <- capture.output(tryCatch(eval(x), error = function(e) e))
if (grepl("Error", testit)) {
return(call$x)
}
}
and I would like
Short comment inline
On 12/04/2016 12:45, John Kane wrote:
Thank you Rolf. fortune(350) was the link I was trying to remember.
I believe! I believe in the documentation.
It can be incredibly difficult to document something and unless one has an
editor to read and 'try' to interpret the resu
"The documentation aims to be accurate, not necessarily clear."
> I notice that none of the critics
> in this thread have offered improvements on what is there.
This issue is as old as documented things. With software it is
particularly nasty, especially when we want the software to functio
On 11/04/2016 11:34 PM, Rolf Turner wrote:
On 12/04/16 14:45, Duncan Murdoch wrote:
On 11/04/2016 10:18 PM, Bert Gunter wrote:
"The documentation aims to be accurate, not necessarily clear."
!!!
I hope that is not the case! Accurate documentation that is confusing
is not very useful.
I don'
Dear useRs,
I am developing a package using RStudio and roxygen markup files. I have run
into a problem while checking.
The relevant function is a generic S3 statistical function modeled on t.test(),
with methods. It returns an object of class "htest" etc. Here Is the
(anonymized) relevant
Thank you Rolf. fortune(350) was the link I was trying to remember.
I believe! I believe in the documentation.
It can be incredibly difficult to document something and unless one has an
editor to read and 'try' to interpret the results the original writer may not
realise just how opaque the
> -Original Message-
> From: bgunter.4...@gmail.com
> Sent: Mon, 11 Apr 2016 19:18:39 -0700
> To: murdoch.dun...@gmail.com
> Subject: Re: [R] [FORGED] Re: identical() versus sapply()
>
> "The documentation aims to be accurate, not necessarily clear."
>
> !!!
>
> I hope that is not the
Hi Milu,
There is a two-headed arrow on the image you sent, and it seems to be
where you specified. Did you want it beneath the map, as:
par(xpd=TRUE)
arrows(-22,54.75,-22,74,code=3)
par(xpd=FALSE)
Jim
On Tue, Apr 12, 2016 at 7:58 PM, Miluji Sb wrote:
> Dear Jim,
>
> Thanks again! I do want the
On 12/04/2016 6:24 AM, Adrian Dușa wrote:
I have a simple function such as:
foo <- function(x) {
call <- lapply(match.call(), deparse)
testit <- capture.output(tryCatch(eval(x), error = function(e) e))
if (grepl("Error", testit)) {
return(call$x)
}
}
and I would lik
Dear R forum,
I am seeking relevant material that discusses processes and methods of
incorporating R code into SAP-HANA. I would greatly appreciate links to any
relevant literature.
Background research on my part has only found the SAP-HANA R Integration
Guide, and several short examples. If the
I have a simple function such as:
foo <- function(x) {
call <- lapply(match.call(), deparse)
testit <- capture.output(tryCatch(eval(x), error = function(e) e))
if (grepl("Error", testit)) {
return(call$x)
}
}
and I would like to detect a formula when x is not an object:
#
35 matches
Mail list logo