thanks austin, it worked..it was exactly what I was looking for
regards
Kunal
"Austin, Matt" <[EMAIL PROTECTED]> wrote:
> x.1$V1
> or
> x.1[,1]
> or
> x.1['V1']
>
> and you shouldn't need to call print.default() directly, just call
> print().
>
> --Matt
> -Original Message-
> From:
James
Thank you for response. I am working on treatment for missing data for both
bivariate and multivariate normal data. Coming back to example. My problem was that
once we do execute this command
x.1 <- read.table('/tempxx.txt', fill=T)
How can access the particular column say X8
I have just uploaded an updated version of my boolean package (v1.05),
which should be propagating through CRAN's mirrors soon. Boolean
permits estimation of Boolean logit and probit models (see Braumoeller
(2003), full reference in help file, for derivation). Boolean logit
and probit are a f
Ok. That makes sense. Thanks to you all for your help.
Hadley
__
[EMAIL PROTECTED] mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
Hi,
On Thu, 7 Oct 2004, Kunal Shetty wrote:
> Example for calculating the mean of a data set
>
> x <- c(8,11,16,18,6,4,20,25,9,13)
> u <- mean(x)
> u
R is an interpreted language, not a compiled one like C++ or Java.
Therefore you don't compile it. And for such a simple example, there
isn't mu
"Paul Lepp" <[EMAIL PROTECTED]> writes:
> OK, so this is a really stupid question and should be incredibly simple to
> do but I can't figure it out. So maybe someone would be so kind as to tell
> me.
> I have a vector of zeros and ones. I want to replace all of the zeros with
> "black" and all of
On Thu, 7 Oct 2004, Paul Lepp wrote:
OK, so this is a really stupid question and should be incredibly simple to
do but I can't figure it out. So maybe someone would be so kind as to tell
me.
I have a vector of zeros and ones. I want to replace all of the zeros with
"black" and all of the ones with
On Thu, 7 Oct 2004 [EMAIL PROTECTED] wrote:
> Hello, I just installed R 2.0.0 in a Win XP machine. As old programs do
> not wor I tried to re-install them by:
> Another question. I did a full "install packages from CRAN" but then
> comparing the list of packages downloaded and installed with thos
ifelse(x == 0, "black", "gray")
--sundar
Paul Lepp wrote:
OK, so this is a really stupid question and should be incredibly simple to
do but I can't figure it out. So maybe someone would be so kind as to tell
me.
I have a vector of zeros and ones. I want to replace all of the zeros with
"black" and
On Thu, 7 Oct 2004, Wiener, Matthew wrote:
>When you think there should be new links, or can offer an example you think
>would be clearer, it might be worth submitting a documentation modification
>proposal (through the bug tracking link on the R home page, for example).
>That would improve the ba
OK, so this is a really stupid question and should be incredibly simple to
do but I can't figure it out. So maybe someone would be so kind as to tell
me.
I have a vector of zeros and ones. I want to replace all of the zeros with
"black" and all of the ones with "gray". That's it. Any help would
On Thu, 7 Oct 2004, Gabor Grothendieck wrote:
>Tony Plate blackmesacapital.com> writes:
>
>:
>: At Thursday 11:29 AM 10/7/2004, Dan Bolser wrote:
>: >[snip]
>: >I just added some pages... I think it would be great if people could get
>: >motivated to contribute to something like this. Its one of
There happens to be a nice article about this by Paul Murrell in the
most recent R Newsletter at http://cran.r-project.org/doc/Rnews/.
-roger
[EMAIL PROTECTED] wrote:
The release notes for R 2.0.0 states:
It is now possible to specify colours with a full alpha
transparency channel via the new
Dear R users and Helpers
I am beginner with using R and interested in carrying out certain task for my
statistical research.
I am reading data for a text file, which could contain data in following pattern
x y
8 10
11 14
16 16
18 15
6 20
4 4
20 18
As
Hi all,
some vague questions about deal package and
graphs.
1. How is DEAL package showing the output network
graph? Is that graphviz installed along with R is
displaying the graph or it is some inherent module
of
DEAL package draws the graph.
2. can I take the output from deal in s
On Thu, 7 Oct 2004, RenE J.V. Bertin wrote:
On Thu, 07 Oct 2004 13:17:02 -0400, "Roger D. Peng" <[EMAIL PROTECTED]> wrote regarding
"Re: [R]
'with' usage question"
8-) I think what's happening is that the function aov.SS1 will look up
8-) variables in the environment in which it was *defined*, whi
Brian Ripley wrote:
> As so often happens, the `something wrong' is not reading the help file.
> As the NEWS file _also_ says
>
> o A 'version' argument has been added to pdf() device. If this is
> set to "1.4", the device will support transparent colours.
>
> pdf("alpha.pdf", version="
Thomas Petzoldt wrote:
Tony Plate wrote:
> At Thursday 11:29 AM 10/7/2004, Dan Bolser wrote:
[snip] I just added some pages... I think it would be great if
people could get motivated to contribute to something like this. Its
one of those cases of just getting the ball rolling...
Do you think yo
T/F are not defined in the global environment, rather they are in the
`base' package. That's why you can override them by redefining T/F in
the global environment (or somewhere farther up the search list than
`base').
attach() is different because it places variables on the search list
*after*
Ted
Thank you for making me aware about the R library packages ; related to shafer's EM
methods for imputing missing data...infact I juat had a look at on of the mailing list
queries regarding imputing missing data
http://tolstoy.newcastle.edu.au/R/help/04/07/3152.html
regards
Kunal
Tony Plate blackmesacapital.com> writes:
:
: At Thursday 11:29 AM 10/7/2004, Dan Bolser wrote:
: >[snip]
: >I just added some pages... I think it would be great if people could get
: >motivated to contribute to something like this. Its one of those cases of
: >just getting the ball rolling...
:
Tony Plate wrote:
> At Thursday 11:29 AM 10/7/2004, Dan Bolser wrote:
[snip] I just added some pages... I think it would be great if
people could get motivated to contribute to something like this.
Its one of those cases of just getting the ball rolling...
Do you think you can dump the existing
On 07-Oct-04 Kunal Shetty wrote:
> Dear R- users and Helpers
>
>I am a beginner for R. I am using R to implement EM algorithm
> for treating Missing values. I would like to know how can save or
> compile my logical R commands to an application; so that the next time
> I could just execute
hadley wickham wrote:
a <- data.frame(b = rep(1:5, each=2), c=factor(rep("a",10), levels=c("a","b")))
levels(subset(a, b=1, drop=T)$c)
# [1] "a" "b"
Is this a bug?
Thanks,,
Hadley
This is always controversial. I am apparently in the small minority in
believing that the default behavior is what yo
When you think there should be new links, or can offer an example you think
would be clearer, it might be worth submitting a documentation modification
proposal (through the bug tracking link on the R home page, for example).
That would improve the basic documentation, which is what most people wil
Hello,
I just installed R 2.0.0 in a Win XP machine. As old programs do not wor I tried
to re-install them by:
>C:\R\RW2000\bin>Rcmd INSTALL c:\r\r_src\src\autologi
>
>--Making package autologi --
> adding build stamp to DESCRIPTION
> installing R files
> installing data
> From: hadley wickham
>
> a <- data.frame(b = rep(1:5, each=2), c=factor(rep("a",10),
> levels=c("a","b")))
> levels(subset(a, b=1, drop=T)$c)
> # [1] "a" "b"
>
> Is this a bug?
Don't think so:
> args("[.data.frame")
function (x, i, j, drop = if (missing(i)) TRUE else length(cols) ==
1)
hadley wickham <[EMAIL PROTECTED]> writes:
> a <- data.frame(b = rep(1:5, each=2), c=factor(rep("a",10), levels=c("a","b")))
> levels(subset(a, b=1, drop=T)$c)
> # [1] "a" "b"
>
> Is this a bug?
In some older versions of R (at least older than 1.9.0), there was a
documentation bug in that the he
At Thursday 11:29 AM 10/7/2004, Dan Bolser wrote:
[snip]
I just added some pages... I think it would be great if people could get
motivated to contribute to something like this. Its one of those cases of
just getting the ball rolling...
Do you think you can dump the existing R-docs into this wiki a
hadley wickham wrote:
a <- data.frame(b = rep(1:5, each=2), c=factor(rep("a",10), levels=c("a","b")))
levels(subset(a, b=1, drop=T)$c)
# [1] "a" "b"
Is this a bug?
Also, I think you meant:
levels(subset(a, b==1, drop=T)$c)
(Note the double-equals for logical equality)
--sundar
hadley wickham wrote:
a <- data.frame(b = rep(1:5, each=2), c=factor(rep("a",10), levels=c("a","b")))
levels(subset(a, b=1, drop=T)$c)
# [1] "a" "b"
Is this a bug?
No, drop = TRUE is not doing what you're thinking it's doing. From
?subset (R-1.9.1):
The 'drop' argument is passed on to the ind
Michael Friendly wrote:
I'm trying to read a comma delimited dataset that uses '.' for NA. I
found that if the last field on a line was a missing '.'
it was not read as NA, but just a '.', and the life variable was made a
factor. The data looks like this,
income,imr,region,oilexprt,imr80,gnp80
Dan Bolser mrc-dunn.cam.ac.uk> writes:
:
: On Wed, 6 Oct 2004, Gabor Grothendieck wrote:
:
: >Dan Bolser mrc-dunn.cam.ac.uk> writes:
: >
: >:
: >: Is there an R wiki?
: >:
: >: Looking at the huge amount of traffic on this list, I think wiki could be
: >: an exelet outlet for all the constru
a <- data.frame(b = rep(1:5, each=2), c=factor(rep("a",10), levels=c("a","b")))
levels(subset(a, b=1, drop=T)$c)
# [1] "a" "b"
Is this a bug?
Thanks,,
Hadley
__
[EMAIL PROTECTED] mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read
On Wed, 6 Oct 2004, Gabor Grothendieck wrote:
>Dan Bolser mrc-dunn.cam.ac.uk> writes:
>
>:
>: Is there an R wiki?
>:
>: Looking at the huge amount of traffic on this list, I think wiki could be
>: an exelet outlet for all the constructive enthusiasm here.
>:
>: I don't think it would be too ha
I think what's happening is that the function aov.SS1 will look up
variables in the environment in which it was *defined*, which in your
case (I'm guessing) is the global environment/workspace. Therefore,
if `speed' and `Subject' are not defined in the global environment,
they will not be foun
Default arguments are evaluated in the function frame, not in the calling
environment (nor in the same place as explicit arguments).
> Which to me reads that a with statement as above is equivalent to
>
> > attach(data) ; aov.SS1(y=Obs) ; detach(data)
>
> Or is that just wishful thinking??
The l
This is not answering your question directly.
I usually use the BATCH command for running R non-interactively. You can
also use commandArgs() to get any arguments from the command line. For
more information, see help(BATCH) or help(commandArgs).
On Thu, 2004-10-07 at 16:14, Kunal Shetty wrote:
>
On Thu, 7 Oct 2004 [EMAIL PROTECTED] wrote:
> The release notes for R 2.0.0 states:
Would that be the NEWS file? R does not have `release notes' per se.
> It is now possible to specify colours with a full alpha
> transparency channel via the new 'alpha' argument to the
> rgb() and hsv() f
Roman Belenov <[EMAIL PROTECTED]> writes:
>>> making bootstrap versions of packages ...
>>
>> There should be lines here, so if this were a fresh build something is
>> badly wrong.
>
> No, it was just another 'make' run on partly built system. $(RHOME)/library
> directory is already populated w
On Thursday 07 October 2004 10:01, [EMAIL PROTECTED] wrote:
> The release notes for R 2.0.0 states:
>
> It is now possible to specify colours with a full alpha
> transparency channel via the new 'alpha' argument to the
> rgb() and hsv() functions, or as a string of the form "#RRGGBBAA".
>
>
On Thu, 7 Oct 2004, Neil Leonard wrote:
Hi,
I have imported some data to R from stata and my factor variables have an
Indeterminate level which I don't really want. For example the variable sex
has the levels Male, Female and Indeterminate. There are no 'Indeterminate'
values in the data. Can so
I can use Chinese fonts in R.
I can also use Chinese fonts in tcl/tk.
But I can not write Chinese using tkgrid in R.
The attached file is an example trying to write Chinese.
The Chinese font can not be displayed correctly.
Can anyone help me ?
Sincerely
library(tcltk)
tkt.test<-tktoplevel()
Dear R- users and Helpers
I am a beginner for R. I am using R to implement EM algorithm for treating
Missing values. I would like to know how can save or compile my logical R commands to
an application; so that the next time I could just execute the R- file.
Example for calculating the m
I have looked through Pinheiro and Bates (2000) but have not found an
explanation, so I post my question to the group. Pages 90-92 explain
how the denominator df are calculated, but not why. Consider a mixed
model with two predictor variables (Y, Z) in which Y only varies between
groups while Z v
Bryan
you may find R-and-octave.txt useful here. This is a list of
Matlab/Octave commands, and
their R equivalents. It is in the "contributed docs" section of CRAN.
HTH
rksh
Sorry if these questions have been asked recently--I'm new to this list.
I'm primarily a Matlab user who is attempting
thanks everyone who replied.
Brian Ripley wrote:
t(a) %*% A %*% a is a quadratic form. What varies `many many times'? If A
does not vary (often), you want to find B with B'B = A (e.g. via chol,
Yes indeed! For me, "A" varies only very rarely, so it makes sense
to use this fact. However, kee
Bryan L. Brown mail.utexas.edu> writes:
:
: Sorry if these questions have been asked recently--I'm new to this list.
:
: I'm primarily a Matlab user who is attempting to learn R and I'm searching
for possible equivalents of
: commands that I found very handy in Matlab. So that I don't seem
The release notes for R 2.0.0 states:
It is now possible to specify colours with a full alpha
transparency channel via the new 'alpha' argument to the
rgb() and hsv() functions, or as a string of the form "#RRGGBBAA".
NOTE: most devices draw nothing if a colour is not opaque,
but PDF a
There's also the `cheat sheet'
http://cran.r-project.org/doc/contrib/R-and-octave-2.txt that might be
useful for Matlab speakers.
Andy
> From: Dimitris Rizopoulos
>
> Hi Bryan,
>
> 1. which(x==1)
> 2. X[2:nrow(X),] or X[,2:ncol(X)]
>
> The "An Introduction to R" document is very usdeful for th
At 10:44 AM +0530 10/6/04, Vikas Rawal wrote:
This issue has been discussed on this list before but the solutions
offerred are not satisfactory. So I thought I shall raise it again.
I want to merge two datasets which have three common variables.
These variables DO NOT have the same names in both
Hi Neil,
you could try
sex <- sex[,drop=TRUE]
I hope it helps.
Best,
Dimitris
Dimitris Rizopoulos
Ph.D. Student
Biostatistical Centre
School of Public Health
Catholic University of Leuven
Address: Kapucijnenvoer 35, Leuven, Belgium
Tel: +32/16/396887
Fax: +32/16/337015
Web: http://www.med.kule
On Thu, 7 Oct 2004, Bryan L. Brown wrote:
> Sorry if these questions have been asked recently--I'm new to this list.
>
> I'm primarily a Matlab user who is attempting to learn R and I'm
> searching for possible equivalents of commands that I found very handy
> in Matlab. So that I don't seem u
Bryan L. Brown wrote:
Sorry if these questions have been asked recently--I'm new to this
list.
Hi Bryan,
A useful resource is Robin Hankin's contributed document "R and Octave":
http://cran.r-project.org/doc/contrib/R-and-octave-2.txt
The first is Matlab's 'find' command. This is one of the most u
On Thursday 07 October 2004 09:10, Bryan L. Brown wrote:
> Sorry if these questions have been asked recently--I'm new to this
> list.
>
> I'm primarily a Matlab user who is attempting to learn R and I'm
> searching for possible equivalents of commands that I found very
> handy in Matlab. So that I
Try:
> sex <- factor(sample(c("M", "F"), 10, replace=TRUE), levels=c("M", "F",
"I"))
> sex
[1] F F M F F F M M M F
Levels: M F I
> sex2 <- sex[, drop=TRUE]
> sex2
[1] F F M F F F M M M F
Levels: M F
HTH,
Andy
> From: Neil Leonard
>
> Hi,
>
> I have imported some data to R from stata and my f
At Thursday 08:10 AM 10/7/2004, Bryan L. Brown wrote:
Sorry if these questions have been asked recently--I'm new to this list.
I'm primarily a Matlab user who is attempting to learn R and I'm searching
for possible equivalents of commands that I found very handy in
Matlab. So that I don't seem u
Hi Bryan,
1. which(x==1)
2. X[2:nrow(X),] or X[,2:ncol(X)]
The "An Introduction to R" document is very usdeful for this kind of
things.
I hope it helps.
Best,
Dimitris
Dimitris Rizopoulos
Ph.D. Student
Biostatistical Centre
School of Public Health
Catholic University of Leuven
Address: Kapuc
Prof Brian Ripley <[EMAIL PROTECTED]> writes:
> We do not support cygwin (too many bugs over the years) even with
> -mno-cygwin, so you are on your own.
That's OK, I don't expect any "formal" support in any sence.
> Suggestion: build under the supported tools first so you know what to
> expect.
Hi,
I have imported some data to R from stata and my factor variables have
an Indeterminate level which I don't really want. For example the
variable sex has the levels Male, Female and Indeterminate. There are
no 'Indeterminate' values in the data. Can somebody tell me how to get
rid of this l
Sorry if these questions have been asked recently--I'm new to this list.
I'm primarily a Matlab user who is attempting to learn R and I'm searching for
possible equivalents of commands that I found very handy in Matlab. So that I don't
seem ungrateful to those who may answer, I HAVE determine
Hi Bruno,
you'd probably need the following:
plot(0)
title(main=expression(paste(bold("Hello"), " world")), font.main=1)
I hope it helps.
Best,
Dimitris
Dimitris Rizopoulos
Ph.D. Student
Biostatistical Centre
School of Public Health
Catholic University of Leuven
Address: Kapucijnenvoer 35, Leu
On Thursday 07 October 2004 08:39, Bruno Cutayar wrote:
> Hi,
> how can i write this simple sentence : "Hello world" with "Hello"
> only in bold ?
> I try
>
> > plot(1:5)
> > title(main=paste(expression(bold("Hello")),"world",sep=" "))
>
> but the result is wrong.
This seems to work:
title(main
I tried the example and it works fine,
but why o why, do I not get any gradient from another prediction?
#example code
yran <-
c(0.0118821538311157, 0.323340819569374, 0.525108551769669,
0.648173528359086,
Hi,
how can i write this simple sentence : "Hello world" with "Hello" only
in bold ?
I try
> plot(1:5)
> title(main=paste(expression(bold("Hello")),"world",sep=" "))
but the result is wrong.
thanks,
Bruno
Si vous n'etes pas destinataires de ce message, merci d'avertir l'expediteur de
l'erreur d
Ajay Shah mayin.org> writes:
:
: Folks, I have a situation with many firms, observed for many years
: (but it's not panel data, so every now and then data for a firm just
: goes missing).
:
: Let me show you an example. There are 3 firms "a", "b" and "c". There
: are 3 years: 1981, 1982 and 198
On Thu, 7 Oct 2004, Roman Belenov wrote:
> I'm trying to compile R 2.0.0 on windows using cygwin. The program itself
> compiled fine (I added -mno-cygwin to compilation/linkage rules so that mingw
> runtime is used), but the build process fails to make packages. Here are the
> error messages:
We
Henrik Andersson <[EMAIL PROTECTED]> writes:
> Do I have the right impression that it's currently not possible to
> produce confidence intervals for the nls predictions using R?
>
> I had a course were we used SAS PROC nlin and there you could get
> intervals for the parameters and the prediction
I'm trying to compile R 2.0.0 on windows using cygwin. The program itself
compiled fine (I added -mno-cygwin to compilation/linkage rules so that mingw
runtime is used), but the build process fails to make packages. Here are the
error messages:
-
Dan,
Thanks for the reply. To be a bit more specific, the "time" variable
continuous and the measurement is a real value at random intervals. I
would, ultimately, like to define a state for each measured point
through time. In my specific case right now, the state could be
described as a bin
Do I have the right impression that it's currently not possible to
produce confidence intervals for the nls predictions using R?
I had a course were we used SAS PROC nlin and there you could get
intervals for the parameters and the prediction but I do not have access
to SAS.
Would it be diffic
Hello and many thanks for all who replied!
I was wondering, why R 2.0.0/Windows with the complete CRAN set starts
so slow from an NT 4.0 Server. Then I run a lot of systematic tests and
found that only the NT4 server had this behavior but other servers
(Windows 2003 and Linux/Samba) responded qu
Hi Sean,
I'm not sure I quite understand your question. Am I right in thinking that:
state = a binomial dependent variable
measure = a continuous predictor
If so, perhaps you could try using glmmPQL (Generalized Linear Mixed Models
fitted by Penalized Quasi-Likelihood) in library MASS.
The model
On Thu, 7 Oct 2004, Luis Rideau Cruz wrote:
> R-help
>
> I have installed R 2.0.0 ( Windows) on my machine and had several
> 'crashes' while working on it.
>
> I have reinstalled a couple of times and still got strange behaviour
> from time to time(screen goes white and no prompt is printed out,
R-help
I have installed R 2.0.0 ( Windows) on my machine and had several
'crashes' while working on it.
I have reinstalled a couple of times and still got strange behaviour
from time to time(screen goes white and no prompt is printed out,,,)
Last time I have reinstalled I checked the md5sum.txt
Perhaps there could be an extra argument to as.complex that
controls whether parsing is standard or loose.
Patrick Burns
Burns Statistics
[EMAIL PROTECTED]
+44 (0)20 8525 0696
http://www.burns-stat.com
(home of S Poetry and "A Guide for the Unwilling S User")
Prof Brian Ripley wrote:
On Thu, 7 Oct
Thanks much Dr. Ripley. Looks like the setMethod
statment was unneeded. If anyone can help, Im still
looking for some insight into the error message I
receive using nlme:
Warning in conLin$Xy * varWeights(object) : longer
object length is not a multiple of shorter object
length Error in recalc.v
On Thu, 7 Oct 2004, Petr Pikal wrote:
> Hi all
>
> I upgraded to 2.0.0 version and did everything as I used to do
> before.
>
> I installed windows binary, copy/paste other than bundled
> packages.
>
> I got e.g.
> > library(chron)
> Error in library(chron) : 'chron' is not a valid package -
Joseph J. Gazaille wrote:
Good day to all of you and thank you for reading this.
I certainly must have done something awfully wrong
when I downloaded and installed R 2.0.0 on a PC
with Windows 98.
You will find below what happens when I try to 'update.packages()'.
Beside other things that might h
Hi all
I upgraded to 2.0.0 version and did everything as I used to do
before.
I installed windows binary, copy/paste other than bundled
packages.
I got e.g.
> library(chron)
Error in library(chron) : 'chron' is not a valid package -- installed <
2.0.0?
so I loaded it from CRAN and everythin
On Thu, 7 Oct 2004, Erich Neuwirth wrote:
> as.complex("2+1i") -> 2+1i
> as.complex("2+i") -> NA
>
> Does somebody have a modified version of as.complex
> which does the coercion in a less strict manner and
> produces a complex number also for strings like the
> second example?
>
> Perhaps it wo
81 matches
Mail list logo