Displaying 20 results from an estimated 10000 matches similar to: "excel files and R"
2003 Mar 13
2
RODBC and Excel in Widows
Hello, I have some problems with RODBC and Excel in Win98
I am using R 1.6.2 and just upgraded RODBC to the last version on CRAN.
I have an Excel file with columns Number, Name, Sex, Age, FEV1 on Sheet
1 and Number, Age, FEV1, Name, Sex on Sheet 2.
Now I open the channel to the file
> chan1 <- odbcConnectExcel("c:/testOdbc.xls")
> tables(chan1)
and the list appears with the 2
2003 Nov 19
5
ISOdate returns incorrect date?
Dear all,
I have found the following (for me) incomprehensible behaviour of
ISOdate (POSIXct):
> ISOdate(1900,6,16)
[1] "1900-06-15 14:00:00 Westeurop?ische Sommerzeit"
> ISOdate(1950,6,16)
[1] "1950-06-16 14:00:00 Westeurop?ische Sommerzeit"
Note that in the first case I get the 15th of June back, not the 16th as
I would have expected!
This happened under R-1.7.1 on
2008 Apr 19
7
Re ad From EXCEL
Hello!!!
I have been read a much about as read data from Excel File, but I haven?t
found the necesary information to read the data.
Now, I can create a channel : channel <- odbcConnectExcel("file.xls") but I
don?t know as read the data??
I hope that you could help me. Thank you very much.
--
View this message in context:
2003 Nov 18
3
Copula calculation in R?
Hello
Anyone that now of any function in R that can calculate copulas?
Or if anyone have any code avaible I would be more than interested.
Thank you in advance
/Thomas
______________________________________________
R-help at stat.math.ethz.ch mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help
2003 Dec 22
2
Problems with read.table()
R version 1.8.1, OS Windows 98
Dear colleagues,
if I import vegetation data (first row with column labels and first column
with row labels) like
7MYRGERM;7AGRGIGA;7DRYOCTO;5MYRGERM;7SALELEA;7CHOCHON;7SALNIG?;.......
t401;5;2;2;3;4;2;2;2;1;2;1;2;2;1;2;2;2;1;2;1;0;0;......
t403;3;0;0;6;4;0;3;0;0;3;0;0;0;0;3;0;0;0;2;0;2;0;.....
with read.table("data.file", header=TRUE,
2003 Jul 31
6
Problem with data.frames
Hi,
I just encountered a problem in R that may easily be fixed: If one uses
attach for a data.frame e.g. 10000 times and forgets detach, then R gets
incredibly slow (less then 10% of the original speed).
My system:
platform powerpc-apple-darwin6.0
arch powerpc
os darwin6.0
system powerpc, darwin6.0
status
major 1
minor 6.1
year 2002
2003 Nov 18
4
address for bug reports? (PR#5171)
bug.report() tells me to email to r-bugs@r-project.org, whereas
the Web site http://www.r-project.org/ points me to
r-bugs@biostat.ku.dk.
Which should I believe?
Simon Fear
Senior Statistician
Syne qua non Ltd
Tel: +44 (0) 1379 644449
Fax: +44 (0) 1379 644445
email: Simon.Fear@synequanon.com
web: http://www.synequanon.com
Number of attachments included with this message: 0
This
2004 Aug 31
2
I've forgotten, why is box("") the default?
I've searched on CRAN for axes, axis, and other terms
I've already forgotten, without (re)discovering the
reason for S using "non-joining" axes by default, instead
of box("l").
MASS points me towards Cleveland (1993) but I don't
have ready access to this any more. Could someone
give me a one-liner to justify this choice to a sceptic?
It's something to do
2003 Sep 16
7
Retrieve ... argument values
Dear R users,
I want to retrieve "..." argument values within a function. Here is a small
exmaple:
myfunc <- function(x, ...)
{
if (hasArg(ylim)) a <- ylim
plot(x, ...)
}
x <- rnorm(100)
myfunc(x, ylim=c(-0.5, 0.5))
Error in myfunc(x, ylim = c(-0.5, 0.5)) : Object "ylim" not found
>
I need to retrieve values of "ylim" (if it is defined
2004 Feb 17
5
pass by reference -- how to do it
Hello,
Pass by reference appears to be a topic which comes up
from time to time, but I wasn't able to find something in
the R-help archives which tells how to accomplish it.
I have a problem that you may have seen before -- R runs
out of memory when processing large matrices. Part of the
problem for me is that I am using some large matrices as
function arguments, and these are modified,
2004 Dec 20
2
problems with limma
I try to send this message To Gordon Smyth at smyth at vehi,edu.au but it bounced
back, so here it is to r-help
I am trying to use limma, just downloaded it from CRAN. I use R 2.0.1 on Win XP
see the following:
> library(RODBC)
> chan1 <- odbcConnectExcel("D:/Data/mgc/Chips/Chips4.xls")
> dd <- sqlFetch(chan1,"Raw") # all data 12000
> #
> nzw <-
2004 Mar 15
2
imputation of sub-threshold values
Is there a good way in R to impute values which exist,
but are less than the detection level for an assay?
Thanks,
Jonathan Williams
OPTIMA
Radcliffe Infirmary
Woodstock Road
OXFORD OX2 6HE
Tel +1865 (2)24356
2003 Aug 29
2
extract numerical variables from a data frame
Hi
I try to create from a data frame a new one which contains only the
numerical variables (or factorial ones).
Is there any function which does this task directly ?
Or, is there any function which return the mode of each columns of a data
frame. ?
Thanks a lot for any help you can offer me,
Vincent Spiesser
2003 Oct 11
2
how to seperate R's input and output screen?
Dear all
can anybady tell me how to seperate R's input and output screen?I mean
just like SAS or some others, the commands does not mixed with results.
thank you
2003 Aug 12
3
grep and gsub on backslash and quotes
The following code works, to gsub single quotes to double quotes:
line <- gsub("'", '"', line)
(that's a single quote within doubles then a double within singles if
your
viewer's font is not good).
But The R Language Manual tells me that
Quotes and other special characters within strings
are specified using escape sequences:
\' single quote
\"
2003 Sep 25
1
Error from gls call (package nlme)
Hi
I have a huge array with series of data. For each cell in the array I
fit a linear model, either using lm() or gls()
with lm() there is no problem, but with gls() I get an error:
Error in glsEstimate(glsSt, control = glsEstControl) :
computed gls fit is singular, rank 2
as soon as there are data like this:
> y1 <- c(0,0,0,0)
> x1 <- c(0,1,1.3,0)
> gls(y1~x1)
2003 Sep 05
3
all values from a data frame
Hello,
I've a data frame with 15 colums and 6000 rows, and I need the data in a
single vector of size 90000 for ttest. Is there such a conversion function in
R, or would I have to write my own loop over the colums?
thanks for your help + kind regards
Arne
2003 Oct 24
2
x[c(1,2,1)] <- 1:3
Hi everyone.
look at this:
x <- 1:4
x[c(1,2,1)] <- (1:3)
print(x[1])
I get 3, but isn't NA more appropriate? [1 would be as sensible].
FWIW, the equivalent Fortran 95 statement is flagged as an error.
R-intro, section 2.7, says that in such cases the assignment is
carried out "in order" which might support getting 3.
To my way of thinking, the concept of "in
2003 Aug 27
3
seeking help with with()
I tried to define a function like:
fnx <- function(x, by.vars=Month)
print(by(x, by.vars, summary))
But this doesn't work (does not find x$Month; unlike other functions,
such as
subset(), the INDICES argument to "by" does not look for variables in
dataset
x. Is fully documented, but I forget every time). So I tried using
"with":
fnxx <- function(x, by.vars=Month)
2003 Jun 12
1
Problème en R
Bonjour,
Je suis ?tudiant stagiaire ? Paris et je rencontre quelques difficult?s en
programmation R.
J'ai une data frame compos?e de 4 colonnes et 250 lignes et dont chaque
ligne est une famille.
J'ai fait un tirage al?atoire avec remise des familles 250 fois ce qui
m'am?ne ? une nouvelle dataframe.
A cette nouvelle dataframe, j'applique un programme qui calcule 2 param?tre
X1