Displaying 7 results from an estimated 7 matches for "exprt".
Did you mean:
export
2007 Jul 18
0
sqlSave, ...colnames=F, using "odbcConnectExcel" .... I still get colnames in top row of exprted sheet
I am trying to save an R data.frame as an Excel sheet.
I do NOT want the column names saved into row 1.
I set colnames=F.
However, it still seems that the colnames are saved into row 1.
Is this a bug? Or am I coding incorrectly and.or misunderstanding this feature?
#example code:
sheet = "c:/test2.xls"
temp=data.frame(matrix(data=NA,nrow=10,ncol=15))
temp[1,1] =
2007 Aug 09
1
How to apply functions over rows of multiple matrices
Dear ExpRts,
I would like to perform a function with two arguments
over the rows of two matrices. There are a couple of
*applys (including mApply in Hmisc) but I haven't found
out how to do it straightforward.
Applying to row indices works, but looks like a poor hack
to me:
sens <- function(test, gol...
2007 Nov 17
1
protecting "..."
Dear expRts,
I just realized that the "..." argument in a function cannot be used without
taking precautions sometimes. The following behaviour is what I stumbled
upon:
> myrepl <- function(length, fun, ...) {
+ replicate(length, fun(...))}
> myrepl(20, sample, 1:5)
[1] 0 0 0 0 0 0 0 0 0...
2008 Jul 06
1
Interpreting messages when building packages
Dear expRts,
when I try to build a package by myself, the process fails writing the
following messages to 00install.out:
* Installing *source* package 'dynalc' ...
** libs
WARNING: no source files found
chmod: Zugriff auf ?/home/hannes/texte/forschung/clot/programme/dynalc.Rcheck/dynalc/libs/*? nicht...
2007 Oct 25
0
newmge-shut warning (was: MGE Ellipse 800 shutdown problems)
...No changes in battery charge level
>
> After reboot web status show "LOWBATTERY" as low as 26% (I doesnt check
> upsc)!!!
> I do not recognize "stale" situation - but I do not know that I should be
> happy or not.
>
> What to do now?
Arnaud
--
Linux / Unix Exprt R&D - MGE Office Protection Systems - http://www.mgeops.com
Network UPS Tools (NUT) Project Leader - http://www.networkupstools.org/
Debian Developer - http://people.debian.org/~aquette/
Free Software Developer - http://arnaud.quette.free.fr/
2008 Feb 08
6
writing a function
Dear lists,
I'm in my process of learning of writing a function. I tried to write a simple functions of a matrix and a vector. Here are the codes:
mm<-function(m,n){ #matrix function
w<-matrix(nrow=m, ncol=n)
for(i in 1:m){
for(j in 1:n){
w[i,j]=i+j
}
}
return(w[i,j])
}
v<-function(n){ #function of a vector
y=vector(length=n)
2008 Feb 11
0
Testing for differecnes between groups, need help to find the right test in R. (Kes Knave)
...{
> w[i,j]=i+j
> }
> }
> return(w[i,j])
> }
>
In addition to the other comments, allow me to remark that
R provides a lot of convenience functions on vectors that
make explicit looping unnecessary. An error such as yours
wouldn't have occurred to a more experienced expRt because
indices wouldn't turn up in the code at all:
mm <- function(m, n) {
a <- array(nrow=m, ncol=n)
row(a)+col(a)
}
Greetings
Johannes
--
Johannes H?sing There is something fascinating about
science.
One gets such wholesale ret...