Displaying 20 results from an estimated 414 matches for "halvorsen".
2003 Oct 12
6
Rd problems
Hola!
I have the following in a .Rd file:
\eqn{\mbox{coef} = c(\mbox{coef}[1],\ldots, \mbox{coef}[n]) }
{coef = c(coef[1], coef[2], \dots, coef[n])}
However, both arguments come out in the latex file!
Whats happening?
Kjetil Halvorsen
2004 Oct 04
4
Off-Topic: LaTeX package listings
...ask here since I learnt from this list that the LaTeX package listings
should be good
for typesetting R code. I encountered one problem:
\begin{lstlisting}
X %*% V
\end{lstlisting}
in the output the * in %*% disappears! same with %/%, etc, the /
disappears.
Any ideas?
Kjetil
--
Kjetil Halvorsen.
Peace is the most effective weapon of mass construction.
-- Mahdi Elmandjra
2004 Sep 17
3
Removing constants from a data frame
Suppose I have
x<-data.frame(v1=1:4, v2=c(2,4,NA,7), v3=rep(1,4),
v4=LETTERS[1:4],v5=rep('Z',4))
or a much larger frame, and I wish to test for and remove the constant
numeric columns.
I made:
is.constant<-function(x){identical(min(x),max(x))}
and
apply(x,2,is.constant) # Works for numerics
x[,-which(apply(x,2,is.constant))]
I'd really like to be able to
2003 Aug 22
2
converting factor to numeric
...3 4 5
20 99 157 127 74
Doing as the FAQ says:
> table( as.numeric(as.character(EdadC)) )
character(0)
Warning message:
NAs introduced by coercion
or:
> table( as.numeric(levels(EdadC))[as.integer(EdadC)] )
character(0)
Warning message:
NAs introduced by coercion
?
Kjetil Halvorsen
2003 Aug 16
4
unclass
Have I been sleeping in class?
rw1071 from CRAN, windows XP
incidencia is made by a call to tapply
> class(incidencia)
[1] "array"
> incidencia <- unclass(incidencia)
> class(incidencia)
[1] "array"
Kjetil Halvorsen
2003 Sep 02
2
identify with image
...E
- attr(*, "class")= chr "pixmapGrey"
- attr(*, "grey")= num [1:512, 1:512] 0.537 0.510 0.345 0.259 0.322
...
> class(baboon)
[1] "pixmapGrey"
> library(pixmap)
> plot(baboon)
> identify(baboon, n=1)
... and then R bombs!
What to do?
Kjetil Halvorsen
2003 Sep 27
3
coloring dendrgram in heatmap?
Using the heatmap function in mva, it seems to be hard to use different
colors in the edges leading to different groups of objects, as commonly done
in many heatmaps in the microarray graphics. Any suggestions? Thanks.
max
2006 Sep 19
2
mgcv in R-2.4.0.alpha
...252;LC_CTYPE=Spanish_Bolivia.1252;LC_MONETARY=Spanish_Bolivia.1252;LC_NUMERIC=C;LC_TIME=Spanish_Bolivia.1252
attached base packages:
[1] "methods" "stats" "graphics" "grDevices" "utils" "datasets"
[7] "base"
Kjetil B Halvorsen
[[alternative HTML version deleted]]
2010 Jan 30
3
Competiciín de classificación!!! Fwd: [R] Classification of supernovae - a challenge
Hola!
Este mail llegó a r-help hoy, yo lo mandó también a esta lista. Es
interesante
con competiciones de predicción/clasificación! ¿Alguien que quiere cooperar?
Kjetil
---------- Forwarded message ----------
From: Kjetil Halvorsen <kjetilbrinchmannhalvorsen@gmail.com>
Date: Fri, Jan 29, 2010 at 12:19
Subject: Fwd: [R] Classification of supernovae - a challenge
To: Kjetil Halvorsen <kjetil1001@gmail.com>
---------- Forwarded message ----------
From: Jarle Brinchmann <jbrinchmann@gmail.com>
Date: Fri, Jan 2...
2002 Jun 26
3
Bug or failing understanding?
...default argument reference
here is a code fragment from lm() using the same syntax:
else {
x <- model.matrix(mt, mf, contrasts)
z <- if (is.null(w))
lm.fit(x, y, offset = offset, ...)
else lm.wfit(x, y, w, offset = offset, ...)
What is wrong?
Kjetil Halvorsen
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !) To: r-help-request at stat....
2003 Jul 17
2
Minor nuisance with rw1071
...e Rconsole before starting to write the first command. Since I
always forget this, I end up writing the first command twice.
This is of course only a minor nuisance, but why is focus no longer
set to Rconsole window when start-up?
This is on windows XP.
(pre-compiled binary from CRAN)
Kjetil Halvorsen
2004 Dec 08
2
Strange error from R CMD INSTALL
...urce files
installing indices
Error: couldn't find function "na.omit"
Execution halted
na.omit of course is in package stats, and that is listed in the
Depends field in the DESCRIPTION file.
What is happening?
(Windows XP with all development tools installed)
Kjetil
--
Kjetil Halvorsen.
Peace is the most effective weapon of mass construction.
-- Mahdi Elmandjra
2001 Oct 26
3
warnings --- wish/bug (PR#1148)
...")
if (length(last.warning[[i]])) {
temp <- deparse(last.warning[[i]])
out <- paste(out, "in:", temp[1], if (length(temp) >
1)
" ...")
}
writeLines(strwrap(out), ...)
}
}
Kjetil Halvorsen
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-devel mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !) To: r-devel-request@stat....
2005 May 28
3
Incompatibility with VGAM
...VGAM defines a family function()
which gets found
by glm() in place of the family function from stats.
Then VGAM:::family returns an object which doesn't have a $family
component, (it has a component
$vfamily).
I thought namespaces should protect us from this happening?
Kjetil
--
Kjetil Halvorsen.
Peace is the most effective weapon of mass construction.
-- Mahdi Elmandjra
--
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
2001 Dec 07
2
error in parse
...n parse(file, n, text, prompt) : syntax error on line 6
also:
> parse(file="c:\\kjetil\\audiometria\\data\\audiometria.R", n=-1)
Error in parse(file, n, text, prompt) : syntax error on line 6
This seems very strange. Trying to read the file with data()
gives the same error.
Kjetil Halvorsen
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !) To: r-help-request at stat....
2005 Mar 29
2
strange error with rw2010dev
...attr(*, "class")= chr "AsIs"
$ x : num 0.768 -0.462 0.450 0.476 -1.077 ...
$ y : num 0.453 1.227 -1.514 -0.904 -0.129 ...
$ z : int 10 4 15 19 14 3 9 17 18 5 ...
> summary(testframe)
Error: protect(): protection stack overflow
Kjetil
--
Kjetil Halvorsen.
Peace is the most effective weapon of mass construction.
-- Mahdi Elmandjra
--
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
2004 Jul 12
3
Smooth monotone estimation on R
Hi all,
I'm looking for smooth monotone estimation packages, preferably using splines.
I downloaded the 'cobs' package and intend to use it, but since it offers only quadratic splines based on L1 minimization, I'd like to compare its performance to that of a more 'mainstream' cubic-spline, L2-norm minimizing spline. Preferably a smoothing spline.
Does anyone know of such
2004 Nov 06
3
foreign(read.spss) in rw2000 and re2001beta
...el
for one value not occuring in the file. According to ?read.spss
this should result in a factor, but it results in all NA. Using the
argument
use.value.labels=FALSE, everything is read as expected.
test <- read.spss("test.sav", to.=TRUE)
test > only NA's
Kjetil
--
Kjetil Halvorsen.
Peace is the most effective weapon of mass construction.
-- Mahdi Elmandjra
2000 Jul 24
1
scoping problems (PR#614)
I am resubmitting this to r-bugs, since Thomas Lumley indicates that it
might be an error:
On Wed, 5 Jul 2000, Thomas Lumley wrote:
> On Wed, 5 Jul 2000, halvorsen wrote:
>
> > Hola!
> >
> > I have the following simple function:
> >
> > > testcar
> > function(pow){
> > ob <- glm(Pound~CG+Age+Vage,data=car,weights=No,
> >
subset=No>0,family=quasi(link=power(pow),var=mu^2))
> >
> &g...
2001 Oct 24
9
easy graphic question
Hi!
How do I specify a filled point in a scatterplot? Their size?
plot(x,y) just gives "empty" points like "o". I want a full black
point.
TIA
--
myriam
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info",