Displaying 20 results from an estimated 12000 matches similar to: "c() question"
2003 Nov 12
4
column extraction by name ?
I have a data frame (df) with colums x, y and z.
e.g. df <- data.frame(x = sample(4), y = sample(4), z = sample(4))
I can extract column z by: df$z or df[3]
I can also extract columns x,y by: df[1:2] or by df[-3].
Is it possible to extract x,y columns in a "symbolic" fashion i.e.
by equivalent of df[-z] (which is illegal) ???
Or alternativeley, is there an equivalent of
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)
2005 Apr 04
3
scan html: sep = "<td>"
Hi
I try to import html text and I need to split the fields at each <td> or
</td> entry
How can I succeed? sep = '<td>' doens't yield the right result
thanks for hints
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 Jun 24
8
excel files and R
Greetings everyone,
I am new at R. My questions is rather basic. Looking R manuals looks
like there should be a way to read MS excel files into R. Could
somebody tell me which library should I use for that?
Thanks in advance
Victor H. Marín
Laboratorio de Modelación Ecológica
Depto. de Ciencias Ecológicas, Fac. de Ciencias,
Universidad de Chile
Casilla 653 Santiago, Chile
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 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 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
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
2003 Oct 30
7
Weird problem with median on a factor
Hi all,
I hope this isn't a naive newbie question again. Here you can see column 264 of
a data frame containing data of the same interview in May and September. Column
264 contains the answers of 49 persons to a question in May.
> fbhint.spss1[,264]
[1] teils/teils sehr wichtig <NA> <NA> sehr wichtig
[6] sehr wichtig sehr wichtig sehr wichtig <NA>
2003 Nov 10
5
Finding the name ob an object
Hi, all!
I want to give an object to a function and use the NAME of this object
inside the function to build new objects based on this name.
How do I get the name of an object if I don't pass a string containing
the name but the object itself?
Christoph.
--
Christoph Lange
MPI fuer biologische Kybernetik |Phone: +49-7071-601-607|
Postfach 2169, D-72012 Tuebingen |FAX: +49-7071-601-616|
2005 Feb 15
2
special symobol / character
Hi all,
Is it possible to add a permil (or per mille) symbol to
an R plot (I couldn't find this symbol under demo(Hershey) or
the plotmath information).
In some ascii tables it is symbol no. 137.
cheers,
Matt.
[[alternative HTML version deleted]]
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
2004 Nov 18
5
Lexical Scoping: eval(expr,envir=)
Hi R-listers,
I am trying to better undertand what we would call "functional paradigm"
use of S/R to better map my programming activities in other languages.
This little function is aimed to create an object (at the end end, it would
have it's own class):
--
myObject =function(){
list(
a=1,
foo=function(b)
{
cat("b:",b)
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 Dec 18
3
Summaries
Hello UseRs:
Excuses for my english.
I have a dataset with 65000 records and I'd like to make a summary where I
can view all the values (with the number of times that it repeats) that
there are each column of my dataset.
I tried with summary( ), str( ), but nothing gives me the result that I am
loking for.
Thank you very much.
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