On 12 Sep 2003 at 15:53, len vir wrote:
> Hi!
>
> Why is there no 'multiple-line comment code' in R,
¿Because the developers use ess and so see no need?
Kjetil Halvorsen
> like
> /*
> in C++
> or in
> GAUSS
> */
>
> for example ?
>
> Just wondering!
>
> len
>
>
> --
On Fri, 12 Sep 2003, Ross Boylan wrote:
>
> Is attr(t, "variables")[[response+1]] always the right term, though it
> may not be of class name if the response is an expression?
Yes
> > The "factors" attribute has row names corresponding to variables and
> > column names corresponding to terms.
> >
Thanks. Not what I was hoping to hear, but it's good to know. Back to
the drawing board(: Perhaps since I really don't want to allow
interactions and other exotica, I should just have the names of the
covariates passed in, and then construct the formula from that (with
paste and as.formula?).
A
On Fri, 12 Sep 2003, Ross Boylan wrote:
> First, thanks to everyone for their responses to my programming style
> question. Second, I have some questions about some obscure corners of
> the language.
>
> Let
> f <- y~x+z
> t <- terms(f).
>
> I want to do some manipulations of the formula that req
Hi!
Why is there no 'multiple-line comment code' in R,
like
/*
in C++
or in
GAUSS
*/
for example ?
Just wondering!
len
-
[[alternative HTML version deleted]]
__
[EMAIL PROTECTED] mailing list
htt
First, thanks to everyone for their responses to my programming style
question. Second, I have some questions about some obscure corners of
the language.
Let
f <- y~x+z
t <- terms(f).
I want to do some manipulations of the formula that require getting the
names of variables as character strings
On Fri, 12 Sep 2003, Spencer Graves wrote:
> Have you considered:
>
> x <- Data[!is.na(Data[,n]), n]
>
> Does this do what you want? Vectors, arrays, and data.frame can be
> indexed by number or by a logical vector -- and by names if such are
> supplied. In this case, "!is.na(Data[,n])"
In a message dated 9/12/03 1:16:51 AM Pacific Daylight Time,
[EMAIL PROTECTED] writes:
> On Fri, 12 Sep 2003 [EMAIL PROTECTED] wrote:
>
> >Another newbie question
> > I want to create a factor (say cT)from a numerical variable (sy temp) by
> >regrouping the values in classes (say cT <390,
Henrik Bengtsson wrote:
eval() and parse() are you friends here. Possibly also substitute().
Example:
eval(parse(text="expand.grid(c(1,0),c(1,0))"))
However, I would like to reply with a question to you. Why do you end up
with a string that you need to convert in the first place?
That's the que
eval() and parse() are you friends here. Possibly also substitute().
Example:
eval(parse(text="expand.grid(c(1,0),c(1,0))"))
However, I would like to reply with a question to you. Why do you end up
with a string that you need to convert in the first place? Maybe you are
more interested in a solu
Have you considered
eval(parse(text="expand.grid(c(1,0),c(1,0))"))
There are other ways to get what you want, but this should work.
hope this helps. spencer graves
[EMAIL PROTECTED] wrote:
How can one transform a character string into an argument of a function
(which is not or I don't want i
Have you considered:
x <- Data[!is.na(Data[,n]), n]
Does this do what you want? Vectors, arrays, and data.frame can be
indexed by number or by a logical vector -- and by names if such are
supplied. In this case, "!is.na(Data[,n])" is a logical vector of
length = number of rows of Data.
h
I am relatively new to R, but very pleased with what I can do with it so
far.
I am embarrassed to ask what seems like a simple question but I am at my
wits end. Basically I have written a function to calculate a bootstrapped
statistic on a list of values. The function works perfectly if I can feed
On Fri, 12 Sep 2003 11:43:43 -0300 (ART), <[EMAIL PROTECTED]> wrote
>> f<-file.choose()
>> save(nbre,file=f)
>
>But I should create the file before electing it, there is not form of
>opening a window of I talk and to keep with a name that I can put in that
>window? Does not something exist as
How can one transform a character string into an argument of a function
(which is not or I don't want it to be a character string)?
Example:
> expand.grid(c(1,0),c(1,0)) ## OK
Var1 Var2
111
201
310
400
> paste(rep("c(0,1)",2),collapse=',') ## to be used below
[
Michael Kirschbaum wrote:
Hello out there
Again I have a problem and I stuck...
How can I sort a vector of dates?
A look at ?sort could help...
For example I have the vector
a<-ISOdate(2001, 1, 1) + 70*86400*runif(10)
How can this vector be sorted chronological?
a is :
[1] "2001-03-05 1
On Fri, 12 Sep 2003, Michael Kirschbaum wrote:
> Hello out there
>
> Again I have a problem and I stuck...
>
> How can I sort a vector of dates?
>
> For example I have the vector
>
> a<-ISOdate(2001, 1, 1) + 70*86400*runif(10)
> How can this vector be sorted chronological?
a[sort.list(a
Hello out there
Again I have a problem and I stuck...
How can I sort a vector of dates?
For example I have the vector
a<-ISOdate(2001, 1, 1) + 70*86400*runif(10)
How can this vector be sorted chronological?
And what's the function I should work with to handle these entries?
(in sense of:
I just installed bioconductor via getBioC.R but there
is 3 problems: apparently some libraries are missing
and I don't know which one, and even the XML package
add a error message like :
1:Installation of package Rgraphviz had non-zero exit
status in: installPkg(fileName, pkg, pkgVer, type,
lib, r
Hello, it wanted to know as I can keep to save a object of R in interactive
form, in which I can put the name of the file in a window of I talk, and
not to have to create it, a badly serious example:
x<-c(1,2,3,4)
> nbre<-"x.Rdata"
> f<-file.choose()
Error in file.choose() : file choice cancell
Dean Urban at Duke University has an S+ library that will do full and partial Mantel
Tests. I know that it has been ported to R sucessfully.
`
EcoDist
EcoDist is a library of functions for S-plus, to perform a variety of analyses based
on ecolgical distance or dissi
Have you looked at Pinhiero and Bates (2000) Mixed-Effects Models for S
and S-Plus (Springer)? They describe the use of simulation to evaluate
the sampling distribution when a parameter is at a boundary. For the
cases they consider, they find that a mixture of chi-squares with
different numbe
On Thu, 11 Sep 2003 07:46:16 -0400, Duncan Murdoch wrote
My feeling is that heatmap is not the right thing to use on a correlation
matrix. The heatmap function expects a data matrix, and does a two-way
clustering of cases and variables. It tries to rearrange the rows and
columns so that similar
On Thu, 11 Sep 2003, Ross Boylan wrote:
> Where and what is the Bioconductor list?
>
See http://www.bioconductor.org. It's an open-source bioinformatics
project using R.
-thomas
__
[EMAIL PROTECTED] mailing list
https://www.stat.math.ethz.ch/
Dear all,
Has anyone written R code for partial Mantel Tests- as described for
instance in Legtendre & Legendre (1998) ?
In other words, in a community ecology analysis, I would like to calculate
the correlation between two dissimilarity matrices, controlling for a third
distance matrix representin
Dear all,
I would like to simulate data from a nlme model using fixed effects and the
variances of the random effects distribution.
I scanned the help files and the mailing lists with no succes. Thanks for
your help!
Peter
__
[EMAIL PROTECTED] mailin
Try
as.numeric(gsub(",",".",a))
Hope it helps!!
Best regards
Kenneth
On Fri, 12 Sep 2003 14:29:13 +0200, Michael Kirschbaum <[EMAIL PROTECTED]>
wrote:
Hi Everyone.
I have a simple problem but don't know, how to get along.
how can I convert the vector
a<-c("0,01","1,00")
in a vector b<-c(0
Michael Kirschbaum schrieb:
Hi Everyone.
I have a simple problem but don't know, how to get along.
how can I convert the vector
a<-c("0,01","1,00")
in a vector
b<-c(0.01,1.00)
Thank you for suggestions
Ah, it seems to be a common German problem. My solution is:
as.numeric(sub(",",".",a))
Th
as.numeric(gsub(",", ".", a))
works if the locale is such that decimal points are used instead of
commas, but you might seek a more generic solution and have
R use a comma for decimal separation - see ?localeconv.
> -Original Message-
> From: Michael Kirschbaum [mailto:[EMAIL PROTECTED]
>
"Michael Kirschbaum" <[EMAIL PROTECTED]> writes:
> Hi Everyone.
>
> I have a simple problem but don't know, how to get along.
>
> how can I convert the vector
>
> a<-c("0,01","1,00")
> in a vector
> b<-c(0.01,1.00)
>
> Thank you for suggestions
[Expect about 10 people to chime in...]
as.num
Michael Kirschbaum wrote:
how can I convert the vector
a<-c("0,01","1,00")
in a vector
b<-c(0.01,1.00)
What is your decimal delimiter ? '.' or ',' ?
If it is ',' you should change it into '.' and then as.numeric() works
just fine.
If it is '.' it won't work.
HTH,
Laurent
__
On Friday 12 September 2003 14:29, Michael Kirschbaum wrote:
> Hi Everyone.
>
> I have a simple problem but don't know, how to get along.
>
> how can I convert the vector
>
> a<-c("0,01","1,00")
> in a vector
> b<-c(0.01,1.00)
You can use as.numeric(), but you need to change the decimal delimiter
?as.numeric
On Fri, 12 Sep 2003, Michael Kirschbaum wrote:
> Hi Everyone.
>
> I have a simple problem but don't know, how to get along.
>
> how can I convert the vector
>
> a<-c("0,01","1,00")
> in a vector
> b<-c(0.01,1.00)
>
> Thank you for suggestions
>
> M.Kirschbaum
>
>
>
>
Hi Everyone.
I have a simple problem but don't know, how to get along.
how can I convert the vector
a<-c("0,01","1,00")
in a vector
b<-c(0.01,1.00)
Thank you for suggestions
M.Kirschbaum
[[alternative HTML version deleted]]
__
[EMAIL PRO
On Fri, 12 Sep 2003, Barry Rowlingson wrote:
> Suzy Smith wrote:
> > Hello, I am currently taking a statistics course and we are to do a project
> > producing a graph using multiple input files.
> >
> > In R, I'm trying to build a filelist based on a pattern. For some reason, if I do
> > the
Suzy Smith wrote:
Hello, I am currently taking a statistics course and we are to do a project producing a graph using multiple input files.
In R, I'm trying to build a filelist based on a pattern. For some reason, if I do the command interactively and not assign it to an array variable I get wha
Hello, I am currently taking a statistics course and we are to do a project producing
a graph using multiple input files.
In R, I'm trying to build a filelist based on a pattern. For some reason, if I do the
command interactively and not assign it to an array variable I get what I thought I
s
Just a note about linear model fitting in Bioconductor. Biobase
(in the devel section) has a feature to cast an exprSet to
a data.frame. Althought this cannot compare with the very nice 'user-friendly'
features in the pack 'limma', it lets one with experience and habits with data.frames
(use of f
Ross, it seems to me that a "non-R-like" part of your code is hinted
at in
> I'm thinking of a situation like
> a <- array(0, dim=c(1, 10))
> and then I modify a one row at a time.
> a[34,] <- newrow
> So if I write directly to a, I just overwrite the row.
My guess is you could be doing bette
Dear Daphne,
A couple of further comments:
On Thursday 11 September 2003 22:05, Spencer Graves wrote:
> 1. Have you consulted Pinhiero and Bates (2000) Mixed-Effects Models in
> S and S-Plus (Springer)? This is the standard (almost indispensible)
> reference on "lme".
>
> 2. Are you familiar w
On 12-Sep-03 antonio rodriguez wrote:
> Im currently dealing with large datasets of some climatic parameters
> and I'm performing some EOF analysis on them. The problem is that for
> one of the datasets, the continents are labelled as NA's (since the
> data was gathered over the oceans). I don't kn
[EMAIL PROTECTED] wrote:
I do not find how to manipulate strings (I want to concatenete characters
strings ("abkdas","chjw") into something like ("abkdas;chjw")what operators are
available for strings manipulation and where do I find help??
Use the paste operator with specification of separator :
On Fri, 12 Sep 2003 [EMAIL PROTECTED] wrote:
> Another newbie question
> I want to create a factor (say cT)from a numerical variable (sy temp) by
> regrouping the values in classes (say cT <390, [390,400[,[400,409[...>=550)
>
> Is there a simple way of doing that using the factor function?
Another newbie question
I want to create a factor (say cT)from a numerical variable (sy temp) by
regrouping the values in classes (say cT <390, [390,400[,[400,409[...>=550)
Is there a simple way of doing that using the factor function?
AND I do not find how to manipulate strings (I want to
Hi,
Im currently dealing with large datasets of some climatic parameters and I'm
performing some EOF analysis on them. The problem is that for one of the
datasets, the continents are labelled as NA's (since the data was gathered
over the oceans). I don't know to which extent the dropping of those
Hello,
I used "fink" to install R but its version
is the 1.7.0 and I want to install and update
bioconductor packages with getBioC.R ; this
script requires R1.7.1; Is there a way to just update
it on my
Mac osx?
Thanks in advance
Line
__
[EMAIL PR
Paul Delmar schrieb:
Hi,
Does any one knows how to include greek letters in plot labels and plot
titles ?
See ?plotmath and the demo in the base package
demo(plotmath)
(or demo(graphics) in some older versions)
A small example:
plot(pnorm(seq(-3,3,.1)), xlab="x",
ylab=expression(
> "Andrew" == Andrew Hill <[EMAIL PROTECTED]>
> on Thu, 11 Sep 2003 17:16:30 -0400 writes:
Andrew> Hello, I am looking for an explanation and/or fix
Andrew> for a discrepancy in the behaviour of the R
Andrew> lm.influence() function [ version R 1.5.0
Andrew> (2002-04-29
Paul Delmar wrote:
Hi,
Does any one knows how to include greek letters in plot labels and plot
titles ?
Thanks a lot
paul
Yes, several people do know. See ?plotmath.
Uwe Ligges
__
[EMAIL PROTECTED] mailing list
https://www.stat.math.ethz.ch/mail
Hi,
Does any one knows how to include greek letters in plot labels and plot
titles ?
Thanks a lot
paul
---
[[alternative HTML version deleted]]
__
[EMAIL PROTECTED] mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help
50 matches
Mail list logo