.
--
Niels Richard Hansen Web: www.math.ku.dk/~richard
Associate Professor Email: niels.r.han...@math.ku.dk
Department of Mathematical Sciences nielsrichardhan...@gmail.com
University of Copenhagen Skype: nielsrichardhansen.dk
]]
__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.
--
Niels Richard Hansen
, reproducible code.
On 21/04/11 23.34, Min-Han Tan wrote:
--
Niels Richard Hansen Web: www.math.ku.dk/~richard
Associate Professor Email: niels.r.han...@math.ku.dk
Department of Mathematical Sciences nielsrichardhan...@gmail.com
University
-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.
--
Niels Richard Hansen Web: www.math.ku.dk/~richard
Associate Professor Email: niels.r.han
that this permission message and
copyright notice appear in all copies.
If I choose to use Expokit and just write an interface to R, would
there be any problems with having such a copyright notice in the package?
Thanks, Niels
--
Niels Richard Hansen Web: www.math.ku.dk/~richard
-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.
--
Niels Richard Hansen Web: www.math.ku.dk/~richard
Associate Professor Email: niels.r.han...@math.ku.dk
Department of Mathematical Sciences
the hood, so there may be a semantic
problem in answering that direct question.
You can get the full source on any CRAN mirror.
--
Niels Richard Hansen Web: www.math.ku.dk/~richard
Associate Professor Email: niels.r.han...@math.ku.dk
Department
-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.
--
Niels Richard Hansen Web: www.math.ku.dk/~richard
Associate
.
--
Niels Richard Hansen Web: www.math.ku.dk/~richard
Associate Professor Email: niels.r.han...@math.ku.dk
Department of Mathematical Sciences nielsrichardhan...@gmail.com
University of Copenhagen Skype: nielsrichardhansen.dk
On 2011-01-18 08:14, Ivan Calandra wrote:
Hi,
I guess it's not the nicest way to do it, but it should work for you:
#create some sample data
df- data.frame(a=c(A B, C D, A C, A D, B D),
stringsAsFactors=FALSE)
#split the column by space
df_split- strsplit(df$a, split= )
#place the first
system.
--
Niels Richard Hansen Web: www.math.ku.dk/~richard
Associate Professor Email: niels.r.han...@math.ku.dk
Department of Mathematical Sciences nielsrichardhan...@gmail.com
University of Copenhagen Skype
Hi Kevin
Here is one way:
yourData - c(0.730, 0.732, 0.743, 0.757,0.781, 0.731,
0.830, 0.832, 0.843, 0.857, 0.881, 0.831)
nrGroups - 2
lengthGroups - 6
tapply(yourData, factor(rep(c(1,nrGroups), each = lengthGroups)), mean)
and you will have to adjust the number of groups and if necessary
-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.
--
Niels Richard Hansen Web: www.math.ku.dk/~richard
Associate Professor Email: niels.r.han...@math.ku.dk
Department of Mathematical Sciences
(?); a-readLines(n=1)
hey
b-paste(t,a,sep=)}
However, there's a catch
{cat(?); a-readLines(n=1)
+ hey
+ b-paste(t,a,sep=)}
?ada
b
[1] tada
Notice that the hey doesn't print.
--
Niels Richard Hansen Web: www.math.ku.dk/~richard
Associate Professor
Dear R-help list
The functions drop.terms and [.terms ignores if the intercept
has been explicitly removed. Is that a deliberate feature?
For instance,
drop.terms(terms(~a+b-1),1)
terms(~a+b-1)[2]
R version 2.12.0 Under development (unstable) (2010-09-13 r52905)
Best, Niels
--
Niels Richard
On 29/09/10 11.13, peter dalgaard wrote:
On Sep 29, 2010, at 10:29 , Niels Richard Hansen wrote:
The functions drop.terms and [.terms ignores if the intercept has been
explicitly removed. Is that a deliberate feature?
Perhaps rather an unimplemented one. The root cause is that both
that compute this permutation.
Is there such a function doing this -- perhaps more
efficiently than the above?
For those interested, I need the permutation to bring
the rows of a data frame into the same order as the
levels of a factor.
Thanks, Niels
--
Niels Richard Hansen Web
match(b, a) ?
Michael
Right! Thanks, Michael.
On 16 September 2010 17:13, Niels Richard Hansen
niels.r.hansen+li...@math.ku.dk wrote:
Dear R-help-list
I have two character vectors
a - c(A, B, C)
b - c(A, C, B)
Then
sapply(a, function(i) grep(i, b))
computes the permutation
In the Value section of the 'seq' help page it says
'seq_along' and 'seq_length' always return an integer vector.
I believe it should be
'seq_along' and 'seq_len' always return an integer vector.
as there are no seq_length function?
Best, Niels
--
Niels Richard Hansen
is intended for the
recipient only and should not be forwarded, distributed or otherwise read by
others without express permission. The views expressed in this email are not
necessarily those of the University of the Sunshine Coast.
--
Niels Richard Hansen Web: www.math.ku.dk
1
2 1 1
3 1 1
...
Taking
terms(form)[1]
extracts the formula with only the first term, but the parentheses
are thrown away, and after the update, I get a different formula.
Is that supposed to be so?
Thanks, Niels
--
Niels Richard Hansen
, or is the
behavior below unexpected?
Best, Niels
I hope it helps.
Best,
Dimitris
On 8/26/2010 9:17 AM, Niels Richard Hansen wrote:
I have the following problem
mydata - data.frame(a=1:3)
form - ~ (a1) - 1
model.matrix(form,mydata)
a 1FALSE a 1TRUE
1 1 0
2 0 1
3 0 1
...
However
model.matrix
.')
}
}
)
--
Niels Richard Hansen Web: www.math.ku.dk/~richard
Associate Professor Email: niels.r.han...@math.ku.dk
Department of Mathematical Sciences nielsrichardhan...@gmail.com
University of Copenhagen
On 26/08/10 18.42, Martin Morgan wrote:
On 8/26/2010 8:43 AM, Niels Richard Hansen wrote:
setGeneric(myplus,function(x,y,...) standardGeneric(myplus))
setMethod(myplus,c(x=numeric,y=numeric),
function(x,y,z=0) x+y+z
)
setMethod(myplus,c(x=numeric,y=list),
function(x,y,...) callGeneric(x
.
Thanks, Niels
--
Niels Richard Hansen
Associate Professor
Department of Mathematical Sciences
University of Copenhagen
Universitetsparken 5
2100 Copenhagen Ø
Denmark
+45 353 20783
__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r
-argument?
Thanks for any help, Niels
--
Niels Richard Hansen
Associate Professor
Department of Mathematical Sciences
University of Copenhagen
Universitetsparken 5
2100 Copenhagen Ø
Denmark
+45 353 20783
__
R-help@r-project.org mailing list
https
the right model.
I am very grateful for any help / advice anyone can think of
Thank you very much
Celine
--
Niels Richard Hansen
Associate Professor
Department of Mathematical Sciences
University of Copenhagen
Universitetsparken 5
2100 Copenhagen Ø
Denmark
+45 353 20783
.
--
Niels Richard Hansen
Associate Professor
Department of Mathematical Sciences
University of Copenhagen
Universitetsparken 5
2100 Copenhagen Ø
Denmark
+45 353 20783
__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE
28 matches
Mail list logo