Displaying 12 results from an estimated 12 matches for "godmar".
2009 Jul 07
6
how to count number of elements in a vector that are not NA ?
Hi,
is there a simpler way to count the number of elements in a vector
that are not NA than this:
countN <- function (v) {
return (Reduce(function (x, y) x + y, ifelse(is.na(v), 0, 1)))
}
?
- Godmar
2009 Jul 07
1
how to get R to print only one column per line when outputting a matrix?
...quot;someotherreallyreallyreallyreallyreallylongname"
r 0.3121291
N 101
----
How can I get it to place every column on a new line to avoid
confusing the reader?
I read the help for print, print.default, format, cat, and
options(width) and wasn't able to find an answer.
Thanks!
- Godmar
2009 Jul 07
1
cor vs cor.test
...ons (!?)
Others believe that cor.test accepts 'use=complete.obs':
http://markmail.org/message/nuzqeouqhbb7f6ok
--------------
Needless to say, this makes writing robust code very hard.
I'm wondering what the rationale for the inconsistencies between cor
and cor.test is.
Thanks!
- Godmar
2009 Jul 07
1
error: no such index at level 2
...he row index.
I thought this would work:
> crossRsorted[mean(q[[ crossRsorted[,1] ]], na.rm = TRUE) > 0, ]
Error in q[[crossRsorted[, 1]]] : no such index at level 2
How can I express: "select only those rows 'r_i' from crossRsorted
where mean(q[[r_i[1]]]) > 0?
Thanks,
- Godmar
2009 Jul 09
2
How to Populate List
...e Dallazuanna)
20. Re: RDCOMClient: how to close Excel process? (Lauri Nikkinen)
21. Re: RDCOMClient: how to close Excel process?
(Henrique Dallazuanna)
22. R regular expression to extract words with the query string.
(Praveen Surendran)
23. Re: error: no such index at level 2 (Godmar Back)
24. Re: error: no such index at level 2 (Henrique Dallazuanna)
25. functions to calculate t-stats, etc. for lm.fit objects?
(Whit Armstrong)
26. Re: Import xlsx file in Ubuntu 9.04 (Marc Schwartz)
27. Re: error: no such index at level 2 (Godmar Back)
28. Re: Reading from Googl...
2018 Mar 07
2
Call for Papers: ManLang 2018 (Sept. 10-14, Linz, Austria)
...r, University of Lugano (USI), Switzerland
Bruce Childers, University of Pittsburgh, USA
Martin Pluemicke, DHBW Stuttgart, Germany
Christian Probst, Technical University of Denmark, Denmark
Petr Tuma, Charles University, Czech Republic
Thomas Würthinger, Oracle Labs, Switzerland
Program Committee:
Godmar Back, Virginia Tech, USA
Clement Bera, INRIA, France
Christoph Bockisch, Philipps Universität Marburg, Germany
Man Cao, Google, USA
Shigeru Chiba, University of Tokyo, Japan
Yvonne Coady, University of Victoria, Canada
Julian Dolby, IBM Research, USA
Patrick Eugster, University of Lugano, Switzerla...
2018 Mar 12
0
Call for Papers: ManLang 2018 (Sept. 10-14, Linz, Austria)
...and
> Bruce Childers, University of Pittsburgh, USA
> Martin Pluemicke, DHBW Stuttgart, Germany
> Christian Probst, Technical University of Denmark, Denmark
> Petr Tuma, Charles University, Czech Republic
> Thomas Würthinger, Oracle Labs, Switzerland
>
> Program Committee:
> Godmar Back, Virginia Tech, USA
> Clement Bera, INRIA, France
> Christoph Bockisch, Philipps Universität Marburg, Germany
> Man Cao, Google, USA
> Shigeru Chiba, University of Tokyo, Japan
> Yvonne Coady, University of Victoria, Canada
> Julian Dolby, IBM Research, USA
> Patrick Eugst...
2009 Jul 11
1
Passing arguments to forked children
Hi -
I have attempted to use the fork::fork() function to perform
parallel processing. However, the child R function called needs to
know a given set of parameters to complete its task. Specifically, I
iterate through a vector, and output values based on the elements of
that vector to a database. The output strings contain elements of the
iterated vector. I mocked-up the following code as an
2009 Jul 09
2
Mysteriously vanishing LD_LIBRARY_PATH
Using R-2.8.0 and R-2.8.1, I get behaviour like this:
R version 2.8.0 (2008-10-20)
Copyright (C) 2008 The R Foundation for Statistical Computing
ISBN 3-900051-07-0
[....]
> Sys.getenv("LD_LIBRARY_PATH")
LD_LIBRARY_PATH
2010 Aug 13
1
Installing rJava fails on Gentoo (amd64) with Sun JDK - checking JNI data types... error
...4 -L$(JAVA_HOME)/../lib/amd64 -L
-L/usr/java/packages/lib/amd64 -L/usr/lib64 -L/lib64 -L/lib
-L/usr/lib -ljvm
JNI cpp flags : -I$(JAVA_HOME)/../include
-I$(JAVA_HOME)/../include/linux
Updating Java configuration in /usr/lib64/R
Done.
JAVA_HOME is unset by default on my system. As suggested, by
Godmar Back, on the list I've tried setting it. The Gentoo
way is to use
JAVA_HOME=$(java-config --jdk-home)
and this produces what I think is the desired result
#printenv | grep -i JAVA_HOME
JAVA_HOME=/opt/sun-jdk-1.6.0.20
BUT
# env JAVA_HOME=/opt/sun-jdk-1.6.0.20/ R CMD javareconf
*** JAVA_HOME...
2009 Jul 09
5
Best way to export values from a function?
Maybe there is a great website out there or white paper that discusses this but again my Google skills (or lack there of) let me down.
I would like to know the best way to export several doubles from a function, where the doubles are not an array.
Here is a contrived function similar to my needs:
multipleoutput<-function(x)
{
squared<-x^2
cubed<-x^3
exponentioal<-exp(x)
2009 Jul 08
2
can't get rJava to install on Linux
Having difficulties getting rJava to install on my Debian Squeeze box.
Perused the R-help list and tried some things that have worked for
others but not for me. Below is the output of my attempted build, R
CMD javareconf -e, and sessionInfo(). Note I tried the R CMD
javareconf also as root, restarted R after each of these, all no help.
* Installing *source* package ?rJava? ...
checking for