Hi all,
Thank you for your responses. Unfortunately, setting level=0.951 or
0.94 did not work for me. I followed your code, Duncan, and some of my
tau values are less than 2. I don't know how to interpret this
information, however. Can you point me in the direction to a reference?
I also am not sure exactly what the OP wants and even less sure of what he
needs...
But a possible answer is that a canonical way to do this is just to pass
down the ... list in the definition and specifying a named list of
arguments in the call (as has already been mentioned).
e.g. consider:
On 28/05/2015 1:11 PM, Jennifer Sweatman wrote:
Hi all,
Thank you for your responses. Unfortunately, setting level=0.951 or
0.94 did not work for me. I followed your code, Duncan, and some of my
tau values are less than 2. I don't know how to interpret this
information, however. Can
On 28/05/2015 1:40 PM, Luca Cerone wrote:
Hi everybody,
this is probably a silly question, but I can't find a way to recognize
the names that are passed
to variables in ellipsis.
For example, say I have a core function that receives some extra
parameters through ...
e.g.
f -
Dear all,
I am writing a package that is a collection of queries to be run
against a postgresql database,
so that the users do not have to worry about the structure of the database.
In my package I import dbDriver, dbUnloadDriver, dbConnect,
dbDisconnect from the package DBI
and dbGetQuery from
Thanks to you all for your help!
I see Brian's answer as good when I want to prompt the user for a
password (when they set the profile for example) and I would like to
know how to mask the input there.
Henrik's answer seems the closest to what I would like to achieve, but
you are right if they
Dear R list,
I am trying to do use the R.matlab library, I did the following, but it
does not work.
library(R.matlab)
Error in loadNamespace(j - i[[1L]], c(lib.loc, .libPaths()), versionCheck
= vI[[j]]) :
there is no package called ‘R.methodsS3’
Error: package or namespace load failed for
On May 28, 2015, at 11:03 AM, Duncan Murdoch wrote:
On 28/05/2015 1:40 PM, Luca Cerone wrote:
Hi everybody,
this is probably a silly question, but I can't find a way to recognize
the names that are passed
to variables in ellipsis.
For example, say I have a core function that receives
Hi everybody,
this is probably a silly question, but I can't find a way to recognize
the names that are passed
to variables in ellipsis.
For example, say I have a core function that receives some extra
parameters through ...
e.g.
f - function(...) {
params - c(...)
#dothehardworkhere
On 28/05/2015 1:40 PM, Luca Cerone wrote:
Hi everybody,
this is probably a silly question, but I can't find a way to recognize
the names that are passed
to variables in ellipsis.
For example, say I have a core function that receives some extra
parameters through ...
e.g.
f - function(...) {
For some unknown reason, you've managed to install R.matlab without
the dependency R.methodsS3 (cf.
http://cran.r-project.org/web/packages/R.matlab/) or it happened due
to some other glitch somewhere.
Try to reinstall R.matlab. If that doesn't help, explicitly install
R.methodsS3 and retry. If
Let's say I have 12 observation of 5 variables and my first variable is
categorical (with 4 different levels). I am trying to find out statistical
significance difference between these categorical levels for each variable, but
my function is not working! Please note that my data x are in
Dr. Dalgaard,
Thank you for further clarifying the problem.
I found a few possible solutions on internet, and will try to find the solution.
This was my first time to post questions on this mailing list, and I
learned quite a bit though working on this problem.
I apologize for any impoliteness
Keith Jewell-2 wrote
The OP asked Has anyone else had trouble with the XML package lately
and if so, how did you resolve it?
For what it's worth...
I failed to install XML using install() with the defaults; I can't
remember the exact error message, something about access denied.
Thanks a lot to all of you for the help!
Duncan's solution is what I was looking for!
In my examples I assumed that if f(...) is called by g then the names
I use in g were transferred to f, which is not true.
But calling f as Duncan explained ( g - function(x,y) f(x=x,y=y) )
solves the issue!
The OP asked Has anyone else had trouble with the XML package lately
and if so, how did you resolve it?
For what it's worth...
I failed to install XML using install() with the defaults; I can't
remember the exact error message, something about access denied.
Downloading XML_3.98-1.1.zip
This really should have been sent to the package maintainer. But that
the zip file is corrupt has been reported several times, and does not
block installation for anyone else, so your (plural) diagnosis is wrong.
On 28/05/2015 03:56, Gen wrote:
I have been attempting to install the R
For loops are not slow. Inefficient memory management in for loops is slow.
Feel free to preallocate your output vectors and write for loops to your
heart's content. If you really want speed you can write this in C++ using Rcpp
[1]. If your f() is a standard digital filter algorithm this has
Hi
Is there a way of resetting R to the --vanilla state *without closing
and restarting* R, i.e. all packages un-loaded (except the ones loaded
automatically in --vanilla), all options reset, dev() closed,
environments detached and deleted, ...?
,
| Version
|_
Dear list-eners,
I run into the following problem when I want to get contrasts from a coxme
model using the lsmeans package: A call to lsmeans on the coxme model
throws the following error:
Error in if (adjustSigma object$method == ML) V = V *
object$dims$N/(object$dims$N - :
missing value
On May 27, 2015, at 4:34 PM, blue honour via R-help wrote:
Hi all,
Let's say I have a vector:
vv-c(1,2,3)
And suppose I have a function f(a,b), which is a function of 2 scalar inputs.
I would like to evaluate this function separately for each element of the vv
vector while the
Hi
-Original Message-
From: R-help [mailto:r-help-boun...@r-project.org] On Behalf Of blue
honour via R-help
Sent: Thursday, May 28, 2015 1:34 AM
To: r-help@r-project.org
Subject: [R] Using lapply when there are dependencies
Hi all,
Let's say I have a vector:
vv-c(1,2,3)
Duncan Murdoch murdoch.dun...@gmail.com writes:
On 28/05/2015 4:52 AM, Rainer M Krug wrote:
Hi
Is there a way of resetting R to the --vanilla state *without
closing and restarting* R, i.e. all packages un-loaded (except the
ones loaded automatically in --vanilla), all options reset, dev()
On 28 May 2015, at 00:06 , Kengo Inagaki kengoing...@gmail.com wrote:
I did not understand complete separation quite well..
Thank you very much for clarification.
Kengo
2015-05-27 17:03 GMT-05:00 David Winsemius dwinsem...@comcast.net:
On May 27, 2015, at 3:00 PM, Kengo Inagaki wrote:
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA512
On 28/05/2015 4:52 AM, Rainer M Krug wrote:
Hi
Is there a way of resetting R to the --vanilla state *without
closing and restarting* R, i.e. all packages un-loaded (except the
ones loaded automatically in --vanilla), all options reset, dev()
On 27/05/15 23:37, Thierry Onkelinx wrote:
Dear Glenn,
Suppose this function
test - function(df){
ggplot(df, aes(x = gp, y = y)) + geom_point()
}
Then R CMD check will consider gp and y as global variables since they are
undefined. Because R CMD check cannot detect that gp and y will be
Dear Rolf,
utils::globalVariables() seems to work package wide. I prefer to ignore
these variable only within the function in which I explicitly define them.
If I use one of those variables in another function in which I haven't
declared them as global, then I want R CMD check to give me a NOTE.
I can't answer your question, but I can help you get help by re-writing
your code so it's easy for others to see what you're talking about ...
Jean
library(expm)
apinene_modele_prediction - function(t, theta) {
x0 = c(100, 0, 0, 0, 0)
A = matrix(c(
-(theta[1]+theta[2]), theta[1],
I have a section (6.4.2) about singular gradient (actually singular
Jacobian to numerical analysts) in my recent book Nonlinear parameter
optimization using R tools. nls() is prone to this, though having all
the starting values the same in many functions can be asking for trouble
of this sort, as
I have also seen this problem on a student's windows machine (with R
3.2.0 and on multiple mirrors). It appeared that the package zip
itself was being corrupted (with an error to the tune of downloaded
file size does not agree with actual file size). The most likely
explanation that I could come
Lovely solution Mohammed. I had not even heard of the modeest package.
For names, I'd just create another data.frame
mode.names - data.frame(df[,1], Out)
John Kane
Kingston ON Canada
-Original Message-
From: dcarl...@tamu.edu
Sent: Thu, 28 May 2015 00:31:45 +
To:
Muchas gracias,
Eso me ayuda en casi todo lo que necesito, a excepción del return. Si
meto un return dentro del error, falla y sale del tryCatch, siguiendo
con la ejecución. Mi flujo es el siguiente: Tengo una función A que
llama a la función B. En la función B tengo el tryCatch. Si se produce
un
Estimada María Luz Morales
Puedes intentar con data.table y reemplazar for por algina otra opción
vectorizada, aunque en R moderno esto mejoró, y la posibilidad de compile
debería ser evaluada.
Javier Rubén Marcuzzi
Técnico en Industrias Lácteas
Veterinario
De: MªLuz Morales
Enviado
Hello,
Now I have changed the file to a new file as RData.csv file and now when I
use the below code it gives me an error
graph- read.csv(RData.csv, header = TRUE)
Here you read RData.csv into R as a data frame named graph.
MonthlyWeight-by(RData$Weight,names.arg = RData$Month,sum)
So
HI David,
So if I understand from your post below, when we import a file in R- we need
to make sure that the variable names do not have any space nor they should
be in special characters or not in comma format.
Please correct me I am wrong.
Now I have changed the file to a new file as RData.csv
Hola,
gracias por contestar tan rápido.
En el email he adjuntado los archivos seta y outcomes.csv, no me queda
claro como hacer para que podáis acceder a ellos de otra manera.
El 28 de mayo de 2015, 15:53, Carlos Ortega c...@qualityexcellence.es
escribió:
Hola,
Si no tienes inconveniente en
I don't know why that doesn't work, but try adding in
sep=,
In your read.csv()
That shouldn't matter as to whether or not it recognizes your object though,
but it will matter in how your object is read.
Other simple things might be to make sure the file is saved and then close it
out to make
I encountered the same problem today. It seems to occur only when you
use exactly 95 % as the confidence level. For example:
confint(g1)
Waiting for profiling to be done...
2.5% 97.5%
a0 1.257512 1.330881
KP NA 163.862932
confint(g1, level = 0.95)
Waiting for profiling
On 28/05/2015 6:10 AM, Claire Rioualen wrote:
Hello,
I can't seem to install R packages, since it seemed there were some
permission problems I chmoded /usr/share/R/ and /usr/lib/R/. However,
there are still errors in the process. Here's my config:
sessionInfo()
R version 3.1.1 (2014-07-10)
Adding back context which was omitted by this Nabble user who still does not
understand the mailing list conventions:
On May 27, 2015, at 2:28 AM, Shivi82 wrote:
Hello All,
I need help on creating a histogram for one of my data. The data is as below
(sample):
MFST_WT Hours PROCESS
Thank you. May I ask, what would you recommend reading in order to learn how to
vectorise loops with dependencies using data.table facilities? I have been
searching online on this topic since last night but no luck yet.
On Thu, 5/28/15, David
Hi Daisy,
Let me rephrase what I said. Are you looking for 80% of bird breeding
observations for a given species in a calendar year (I think not), or
in the breeding season for that species, which may not be strongly
linked to a calendar year? Your example data, when plotted like this:
Hello,
I can't seem to install R packages, since it seemed there were some
permission problems I chmoded /usr/share/R/ and /usr/lib/R/. However,
there are still errors in the process. Here's my config:
sessionInfo()
R version 3.1.1 (2014-07-10)
Platform: x86_64-pc-linux-gnu (64-bit)
locale:
On 28/05/2015 9:08 AM, sami.toppi...@kolumbus.fi wrote:
I encountered the same problem today. It seems to occur only when you
use exactly 95 % as the confidence level. For example:
confint(g1)
Waiting for profiling to be done...
2.5% 97.5%
a0 1.257512 1.330881
KP NA
Unless I have missed something somewhere, the object is named graph not
RData . Further, the call to by() is complete nonsense, with arguments
misspecified -- there is no names.arg argument to by() (the 2nd argument
is named INDICES)
It appears that some people need to spend some time with R
Hello,
Indeed I've had a lot of dependencies issues, but I'm solving them one
after the other.
Thanks for your time!
CR
On Thu, May 28, 2015 at 5:33 PM, Martin Morgan mtmor...@fredhutch.org
wrote:
On 05/28/2015 08:21 AM, Duncan Murdoch wrote:
On 28/05/2015 6:10 AM, Claire Rioualen wrote:
On 05/28/2015 08:21 AM, Duncan Murdoch wrote:
On 28/05/2015 6:10 AM, Claire Rioualen wrote:
Hello,
I can't seem to install R packages, since it seemed there were some
permission problems I chmoded /usr/share/R/ and /usr/lib/R/. However,
there are still errors in the process. Here's my config:
47 matches
Mail list logo