Displaying 13 results from an estimated 13 matches for "nielsrichardhansen".
2010 Sep 16
1
The permutation of one vector into another
...to bring
the rows of a data frame into the same order as the
levels of a factor.
Thanks, Niels
--
Niels Richard Hansen Web: www.math.ku.dk/~richard
Associate Professor Email: Niels.R.Hansen at math.ku.dk
Department of Mathematical Sciences nielsrichardhansen at gmail.com
University of Copenhagen Skype: nielsrichardhansen.dk
Universitetsparken 5 Phone: +45 353 20783 (office)
2100 Copenhagen ? +45 2859 0765 (mobile)
Denmark
2010 Sep 03
1
'seq' help page: seq_length -> seq_len?
...eq_len' always return an integer vector.
as there are no seq_length function?
Best, Niels
--
Niels Richard Hansen Web: www.math.ku.dk/~richard
Associate Professor Email: Niels.R.Hansen at math.ku.dk
Department of Mathematical Sciences nielsrichardhansen at gmail.com
University of Copenhagen Skype: nielsrichardhansen.dk
Universitetsparken 5 Phone: +45 353 20783 (office)
2100 Copenhagen ? +45 2859 0765 (mobile)
Denmark
2010 Nov 19
0
Error from sparse pattern matrix product
...] Matrix_0.999375-45 lattice_0.19-13
loaded via a namespace (and not attached):
[1] grid_2.12.0
--
Niels Richard Hansen Web: www.math.ku.dk/~richard
Associate Professor Email: Niels.R.Hansen at math.ku.dk
Department of Mathematical Sciences nielsrichardhansen at gmail.com
University of Copenhagen Skype: nielsrichardhansen.dk
Universitetsparken 5 Phone: +1 510 502 8161
2100 Copenhagen ?
Denmark
2010 Dec 17
0
How to use the RUnit tracker in unit tests?
...track = track)]
myFunction(10)
stopInspection(myFunction)
Is this already around?
Best, Niels
--
Niels Richard Hansen Web: www.math.ku.dk/~richard
Associate Professor Email: Niels.R.Hansen at math.ku.dk
Department of Mathematical Sciences nielsrichardhansen at gmail.com
University of Copenhagen Skype: nielsrichardhansen.dk
Universitetsparken 5 Phone: +1 510 502 8161
2100 Copenhagen ?
Denmark
2011 Apr 22
1
Seeking help re: ? single apply command or an alternative
Dear R-help list,
Sorry to trouble everyone. This seems like it could be achieved with a
single command (? variant of apply), but I am not quite seeing it.
I am trying to multiply one vector (a1 below) by corresponding values in a3
(as determined by matching element in a vector a2). The example below might
be clearer.
a1 <- c(4,3,4,6,8,9,2,3,4,6,7,4)
a2 <-
2010 Sep 30
1
Assignment to a slot in an S4 object in a list seems to violate copy rules?
...8
attached base packages:
[1] stats graphics grDevices utils datasets methods base
--
Niels Richard Hansen Web: www.math.ku.dk/~richard
Associate Professor Email: Niels.R.Hansen at math.ku.dk
Department of Mathematical Sciences nielsrichardhansen at gmail.com
University of Copenhagen Skype: nielsrichardhansen.dk
Universitetsparken 5 Phone: +45 353 20783 (office)
2100 Copenhagen ? +45 2859 0765 (mobile)
Denmark
2010 Dec 11
1
'identical' and the warning "ignoring non-pairlist attributes"
...foreach_1.3.0 codetools_0.2-6 iterators_1.0.3
(or
other attached packages:
[1] spatial_7.3-2)
--
Niels Richard Hansen Web: www.math.ku.dk/~richard
Associate Professor Email: Niels.R.Hansen at math.ku.dk
Department of Mathematical Sciences nielsrichardhansen at gmail.com
University of Copenhagen Skype: nielsrichardhansen.dk
Universitetsparken 5 Phone: +1 510 502 8161
2100 Copenhagen ?
Denmark
2011 Apr 14
2
Krylov subspace computations of matrix exponentials
..., 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
Associate Professor Email: Niels.R.Hansen at math.ku.dk
Department of Mathematical Sciences nielsrichardhansen at gmail.com
University of Copenhagen Skype: nielsrichardhansen.dk
Universitetsparken 5 Phone: +1 510 502 8161
2100 Copenhagen ?
Denmark
2011 Jan 29
1
environment question: changing variables from a formula through model.frame?
Hello all,
I came across a behavior of R with environments that I'm not sure what is
causing it.
It involves changing variables that are found through using model.frame on a
formula inside a function.
I wonder if it's a "bug" or a "feature". And in either case, how it might
be managed.
Here is a simple example:
# let's say we have an x and y variables:
temp_x
2010 Aug 26
1
Passing arguments between S4 methods fails within a function:bug? example with raster package.
Dear all,
This problem came up initially while debugging a function, but it
seems to be a more general problem of R. I hope I'm wrong, but I can't
find another explanation. Let me illustrate with the raster package.
For an object "RasterLayer" (which inherits from Raster), there is a
method xyValues defined with the signature
2011 Apr 17
5
cube root
This is some interesting:
> -8^(1/3)
[1] -2
> x=(-8:8)
> y=x^(1/3)
> y
[1] NaN NaN NaN NaN NaN NaN NaN NaN
0.000000 1.000000
[11] 1.259921 1.442250 1.587401 1.709976 1.817121 1.912931 2.000000
So, can anybody explain this?! (Why is x[1]^(1/3)=y[1]=NaN, but
-8^(1/3)=-2?)
Thx!!!
[[alternative HTML version deleted]]
2010 Aug 26
3
Using termplot() with transformations of x
Hi all
I was playing with termplot(), and came across what appears to be an inconsistency.
It would appreciate if someone could enlighten me:
> # First, generate some data:
> y <- rnorm(100)
> x <- runif(length(y),1,2)
> # Now find the log of x:
> logx <- log(x)
>
> # Now fit two models that are exactly the same, but specified differently:
> m1 <-
2010 Sep 30
4
interactive session
Hi guys,
My concern is to create an automated process from the beginning to the end. I
want to copy all my code together in one piece and paste it to R console and sit
back and relax :) except one moment in which the program should ask me to enter
a number.. and only then (only after getting a valid number from me) it should
continue to read and process the rest of the code. I tried lots of