Hi R users:
This is a very strange problem:
Why this instruction shows me NA?,
and any other date shows me that error!
as.POSIXct(strptime("1992-5-3",format="%Y-%m-%d"))
This is my R version on windows 7.
"R version 2.13.1 Patched (2011-08-25 r56794)"
Thank you for your help.
___
Dr. Murdoch:
Thank you very much for your help.
Where can I find a more systematic documentation about these topics?
I mean, examples of "do.call", environments, "as.function", the
scoping and the way understand when to use "force", etc.
Again, thank you.
Kenneth
- Mensaje original -
Dr Dallazuanna:
Thank you for your help.
It works very good!
- Mensaje original -
De: Henrique Dallazuanna
Fecha: Jueves, 7 de Abril de 2011, 7:05 am
Asunto: Re: [R] Two functions as parametrs of a function.
A: Kenneth Roy Cabrera Torres
CC: r-help
> Try this:
>
> f2 <- function(n,
: Re: [R] Use of the dot.dot.dot option in functions.
A: KENNETH R CABRERA
CC: r-help@r-project.org
> On 06/04/2011 12:04 PM, KENNETH R CABRERA wrote:
> >Hi R users:
> >
> >I try this code, where "fun" is a parameter of a random generating
> >function name, and I pr
Hi R users:
I try this code, where "fun" is a parameter of a random generating
function name, and I pretend to use "..." parameter to pass the parameters
of different random generating functions.
What am I doing wrong?
f1<-function(nsim=20,n=10,fun=rnorm,...){
vp<-replicate(nsim,t.test(fun(
Dear R users:
Maybe it is a silly question, but I'm don't understand what am I doing wrong.
In a new karmik koala ubuntu installation I compile the last patched 2.10.1
version of R.
Every thing was right (I install all the dev libraries I need).
First I type:
./configure --enable-R-shlib
An
Dear R users:
Maybe it is a silly question, but I'm don't understand what am I doing wrong.
In a new karmik koala ubuntu installation I compile the last patched 2.10.1
version of R.
Every thing was right (I install all the dev libraries I need).
First I type:
./configure --enable-R-shlib
An
Hi R users:
f1<-function(l1,idx){
f2<-function(i,l1) l1[[i+1]]<<-c(l1[[i]],l1[[i+1]][-1])
lapply(idx,f2,l1)
return(l1)
}
l<-list(c(1,2,3),c(4,5),c(6,7,8))
l2<-f1(l,1:(length(l)-1))
l2
I got:
[[1]]
[1] 1 2 3
[[2]]
[1] 1 2 3 5
[[3]]
[1] 4 5 7 8
But what I want in the last position of
Hi R users and experts:
I got the following message when I use the profile
function on a nls models. The nls function converges at 19 interactions,
but I don't know what I am doing wrong using the "profile" function.
"Error en prof$getProfile() : number of iterations exceeded maximu
Hi R users:
Is there a way to put a legend in a coplot, where I use colors
for a categorical variables in each panel (besides the other two
categorical variables that I use in the coplot graph).
Thank you for your help.
Kenneth
[[alternative HTML version deleted]]
--- Begin Message ---
Hi R users:
Is there a way to put a legend in a coplot, where I use colors
for a categorical variables in each panel (besides the other two
categorical variables that I use in the coplot graph).
Thank you for your help.
Kenneth
--- End Message ---
___
11 matches
Mail list logo