[EMAIL PROTECTED] napsal dne 02.05.2007 16:47:55:
It was suggested that the 'NAs introduced by coercion' message might be
warning me that my data are not what they should be. I checked this
using
str(PeaksMatrix), as suggested, and the data seem to be what I thought
they
were:
Hi
Did you see FAQ 2.16?
Try file.choose()
Regards
Petr
[EMAIL PROTECTED]
[EMAIL PROTECTED] napsal dne 03.05.2007 02:26:27:
Hi,Dear R users, I have a file text nommed chif which contains 16
lines and
4 columns in the disc dur. I have a difficulty to read this file in R
console
I have
Hi All,
First we install sun studio 11 on the server and then tried to install
R
This time I am getting the different errors.
Please find attached the config.log files
1. old_config: before installation of sun studio
2. new_config: after installation of sun studio
Thanks,
Hello,
Is there any possibility how i can calculate the Sharpe Ratio of a ts?
KR,
Alin Soare
[[alternative HTML version deleted]]
__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting
Dear all,
I am trying to use the logistic regression with MCMClogit (package:
MCMCpack/Coda) and I want to put a beta prior on the parameters, but it's
giving me error message (please see output below) no matter what shape 1 or
2 I use. It works perfect with the cauchy or normal priors. Do you
Dear List,
In R we can plot multiple graphs in same page using
par(mfrow = c(*,*)). In each plot we can set title
using main and sub commands.
However, is there any way that we can place an
universal title above the set of plots placed in the
same page (not individual plot titles, all i need
Dear R-Experts,
in my program I have a big workspace. Now I want to look for all
variables which have the letters 777 in their name (e.g. ask777first)
and afterwards I need to delete those variables. How can I reach this
aim?
Any ideas, Corinna
__
First, try this kind of connection string
channel - odbcConnect(mysqldsn,uname;Password=pwd;Database=default_db)
If it doesn't work, in order to understand if it's a permission issue, try to
connect with another client (still using the RODBC!!if you use the mysql
client, you
one option is use something like the following:
a - 1:10
b777 - rnorm(10)
c777 - letters[1:6]
fit - lm(b777 ~ a)
a777d777 - 5
##
lis - ls()
rm(list = c(lis[grep(777, lis)], lis))
ls()
I hope it helps.
Best,
Dimitris
Dimitris Rizopoulos
Ph.D. Student
Biostatistical Centre
Hello
i have a plot, and want the axis too be with larger writing, i found some
functions but they didnt work
this is my plot, and if the axis can be with bigger writing can the legend
inside the plot be in same the size??
plot(femsplot, xlab='Indeks',ylab='Kødprocent', pch=22)
ls(pattern=.*777.*)
Schmitt, Corinna wrote:
Dear R-Experts,
in my program I have a big workspace. Now I want to look for all
variables which have the letters 777 in their name (e.g. ask777first)
and afterwards I need to delete those variables. How can I reach this
aim?
--
View
Mohammad Ehsanul Karim wrote:
Dear List,
In R we can plot multiple graphs in same page using
par(mfrow = c(*,*)). In each plot we can set title
using main and sub commands.
However, is there any way that we can place an
universal title above the set of plots placed in the
same page
On Thu, 3 May 2007, Bruno C. wrote:
First, try this kind of connection string
channel - odbcConnect(mysqldsn,uname;Password=pwd;Database=default_db)
I presume the DSN was set up in a dialog box under Windows, and tested
there (which provides a different client).
This makes me suspect the DSN
Hi
[EMAIL PROTECTED] napsal dne 03.05.2007 10:33:22:
Hello
i have a plot, and want the axis too be with larger writing, i found
some
functions but they didnt work
this is my plot, and if the axis can be with bigger writing can the
legend
inside the plot be in same the size??
I guess you have an outdated version of R2HTML. Please run
update.packages(checkBuilt=TRUE) and try again. If it still does not
work, please notify its package maintainer and tell him the package's
version number.
Uwe Ligges
Tim Sippel wrote:
Hello-
I have been trying to install SciView
Dear R users,
I installed an experiment as following setup:
- Four plant species
- Seed addition as main factor with two levels: control and seed addition.
- Four replicates (sites)
- 8 plots in each site arranged as two rows (each rows 4 plots) one meter
far from each other
- Four sub-plots in
Are you sure your version of R2HTML is up-to-date and built under R 2.5.0?
Use update.packages(checkBuilt=TRUE) if you have not already done so.
That got me R2HTML 1.58, not 1.54.
On Thu, 3 May 2007, Tim Sippel wrote:
Hello-
I have been trying to install SciView under Windows Vista (Home
Hello,
is it possible to fill an array with no using of the recycling rule?
My problem. I want to fill an array but my values have not always
the same length.
My aim. I want to fill the array only ONE TIME. All vacent places
should be written with NA.
Thank's a lot.
Felix
Example:
First make your vectors to have the same length and then put them to the
array.
x - c(1,2)
x
[1] 1 2
length(x) - 5
x
[1] 1 2 NA NA NA
Petr
Felix Wave napsal(a):
Hello,
is it possible to fill an array with no using of the recycling rule?
My problem. I want to fill an array but my
*** Error code 1
make: Fatal error: Command failed for target `R.bin'
Current working directory /opt/dev/R/R-2.4.1/src/main
*** Error code 1
The following command caused the error:
make install-bin-local
make: Fatal error: Command failed for target `R'
Current working directory
How about
A - array(NA, c(2,4) )
x - 1:3
A[seq_along(x)] - x
?
On Thu, 3 May 2007, Felix Wave wrote:
Hello,
is it possible to fill an array with no using of the recycling rule?
My problem. I want to fill an array but my values have not always
the same length.
My aim. I want to fill the
Felix
I'm not quite sure I understand your example, but try:
a - array(NA,c(2,2,3))
jj - c(12,33,22)
a[1:length(jj)] - jj
a
which will fill only the first three elemens of array a
HTH
rksh
On 3 May 2007, at 10:41, Felix Wave wrote:
Hello,
is it possible to fill an array with no using
sorry, forgot to delete objects.
rm(list=ls(pattern=.*777.*))
Vladimir Eremeev wrote:
ls(pattern=.*777.*)
Schmitt, Corinna wrote:
in my program I have a big workspace. Now I want to look for all
variables which have the letters 777 in their name (e.g. ask777first)
and afterwards I
Hello,
it´s new for me tu use R for my statistics analysis, so I need some help.
The problem is:
I want to plot errorbar-functions from two measurements in one
coordinate-system. For that I use the following code:
library(sfsmisc)
errbar(XAchse,Means,Mins,Maxs,xlab=,ylab=,xlim=range(0,100))
Try:
rm(list = ls(patt = 777))
On 5/3/07, Schmitt, Corinna [EMAIL PROTECTED] wrote:
Dear R-Experts,
in my program I have a big workspace. Now I want to look for all
variables which have the letters 777 in their name (e.g. ask777first)
and afterwards I need to delete those variables. How
Sometimes I just overlay a blank plot and annotate with text.
par(mfrow=c(1,2), oma=c(2,0,2,0))
plot(1:10)
plot(1:10)
oldpar - par()
par(mfrow=c(1,1),new=TRUE,mar=rep(0,4),oma=rep(0,4))
plot.window(xlim=c(0,1),ylim=c(0,1),mar=rep(0,4))
text(0.5,c(0.98,0.02),c(Centered Overall Title,Centered
Here is a way of putting a title in the outer margin:
par(mfrow=c(2,2), oma=c(0,0,3,0)) # leave space in outer margin
plot(1)
plot(2)
plot(3)
plot(4)
mtext('Outer Title', adj=0.5, side=3, outer=TRUE)
On 5/3/07, Mohammad Ehsanul Karim [EMAIL PROTECTED] wrote:
Dear List,
In R we can plot
hi,
I have a problem to use union function because one of the elements is a
character and the others are numeric
for(j in 1:length(I)) {
+ C1 - levels(factor(subset(donParEssai, Id_Essai == 1006961 Id_Cara ==
I[j], select = Date_O)[,1]))
+ C2 - as.numeric(levels(factor(subset(donParEssai,
I believe you mean R for Windows 2.16 ?
--- Petr PIKAL [EMAIL PROTECTED] wrote:
Hi
Did you see FAQ 2.16?
Try file.choose()
Regards
Petr
[EMAIL PROTECTED]
[EMAIL PROTECTED] napsal dne
03.05.2007 02:26:27:
Hi,Dear R users, I have a file text nommed chif
which contains 16
--- Bert Gunter [EMAIL PROTECTED] wrote:
Please note: in R you can specify (some of the)
graphics parameters as the
appropriate length vectors. So your plot example
below can also be done as,
for example:
plot(
rep.int(aa,3),c(cc,bb,dd),col=rep(c(red,blue,green),e=length(aa)))
Hi
[EMAIL PROTECTED] napsal dne 03.05.2007 14:01:27:
hi,
I have a problem to use union function because one of the elements is a
character and the others are numeric
for(j in 1:length(I)) {
+ C1 - levels(factor(subset(donParEssai, Id_Essai == 1006961 Id_Cara
==
I[j], select =
I find it easier to install all the packages again:
#---run in previous version
packages - installed.packages()[,Package]
save(packages, file=Rpackages)
#---run in new version
load(Rpackages)
for (p in setdiff(packages, installed.packages()[,Package]))
install.packages(p)
-Original
Hi,
I ran into a problem of converting a text representation of an expression into
parsed expression to be further evaluated inside lm ().
n - 100
data - data.frame(x= rnorm (n), y= rnorm (n))
data. lm - lm (y ~ x, data=data)
## this works
update(data. lm , subset=x0)
Call:
lm
http://finzi.psych.upenn.edu/R/library/tseries/html/sharpe.html
--- Soare Marcian-Alin [EMAIL PROTECTED] wrote:
Hello,
Is there any possibility how i can calculate the
Sharpe Ratio of a ts?
KR,
Alin Soare
[[alternative HTML version deleted]]
Hello,
Please, consider the functions pmin and pmax.
Tuesday, May 1, 2007, 3:29:54 PM, you wrote:
rc thanks for the previous advice it seems to have worked what about the
following
rc l have the following dataset and would like to calculate the actual
survival time by
rc if censoring time
Try:
do.call(update, list(data.lm, subset = parse(text = subset)))
On 5/3/07, Vadim Ogranovich [EMAIL PROTECTED] wrote:
Hi,
I ran into a problem of converting a text representation of an expression
into parsed expression to be further evaluated inside lm ().
n - 100
data -
Vadim Ogranovich wrote:
Hi,
I ran into a problem of converting a text representation of an expression
into parsed expression to be further evaluated inside lm ().
n - 100
data - data.frame(x= rnorm (n), y= rnorm (n))
data. lm - lm (y ~ x, data=data)
## this works
Dear list members,
Could any expert on factor analysis be so kind to explain how to calculate AIC
on the output of factanal. Do I calculate AIC wrong or is
factanal$criteria[objective] not a negative log-likelihood?
Best regards
Jens Oehlschlägel
The AIC calculated using summary.factanal
I usually install a new version over the old one (in the same directory).
I did this since R 1.xx, using windows 2000 and then windows XP.
No bugs were found, everything always works fine.
Iasonas Lamprianou wrote:
Hi I am using R version 2.4.1. How can I upgrade to version 2.5 without
Hi R,
I have three queries regarding handling GARCH functions in R. Below I
document the same:
Unlike S-Plus, R doesn't handle Multivariate GARCH models.
R has a package for BEKK GARCH model but not for DVEC GARCH models.
The GARCH function in S-PLUS has the capability of fixing some model
On 5/3/07, Vladimir Eremeev [EMAIL PROTECTED] wrote:
Vadim Ogranovich wrote:
Hi,
I ran into a problem of converting a text representation of an expression
into parsed expression to be further evaluated inside lm ().
n - 100
data - data.frame(x= rnorm (n), y= rnorm (n))
data.
have a look at Rmetrics
www.rmetrics.org for R in finance in general
and the taskview
http://cran.r-project.org/src/contrib/Views/
I hope that helps.
AA.
- Original Message -
From: Soare Marcian-Alin [EMAIL PROTECTED]
To: R-help@stat.math.ethz.ch
Sent: Wednesday, May 02, 2007 6:32 PM
I use a script, i.e., place a few lines of R code in a file:
## create a vector of package names
my.packages - c('pkgname1','pkgname2','pkgname3')
## install them (check whether other args to install.packages() need
to be specified)
install.packages(pkgs=my.packages)
and then source the
Dear useRs:
Release 2.1.0 of the randomSurvivalForest package is now available.
--
CHANGES TO RELEASE 2.1.0
Release 2.1.0 represents a minor upgrade of the product, and will not affect
most users of
Hello all,
A quick question concerning a behavior of reshape I fail tu understand,
probably something obvious but I just can't see it.
With the following data frame further referred to as tab :
Ryacas is now available on CRAN. (Previously it was
available on the Omegahat repository.)
Ryacas is an R package that provides an interface from R to
the yacas computer algebra system. It can be used for
computer algebra, exact arithmetic, ASCII pretty printing
and R to TeX output. R, yacas
Hi.
I can't access the site http://wiki.r-project.org/. I didn't find any
notice about this on http://www.r-project.org/. Does anyone have any more
information about the R Wiki status? Thanks!
-- TMK --
212-460-5430home
917-656-5351cell
Try this:
cn - names(tab)
nm - list(Date = grep(Date_, cn, value = TRUE),
Variable = grep(Variable, cn, value = TRUE),
Valeur = grep(Valeur, cn, value = TRUE)
)
reshape(tab, direction = long, varying = nm)
On 5/3/07, GOUACHE David [EMAIL PROTECTED] wrote:
Hello all,
A quick question
2007/5/2, Jennifer Dillon [EMAIL PROTECTED]:
Hi,
I'm trying to do a simple survival analysis on some data, and I'm having the
following problem (here's my code and the error message):
out - Surv(fup,event=status)
Error in Surv(fup, event = status) : argument time2 is missing, with no
Sorry if this is off-topic, but since there are so many data sets in R,
I wonder if there is any data set with Geographic data, like
(latitude,longitude) lists of the contour of the continents and
countries.
Alberto Monteiro
__
Trying to use contrast to look at differences within an lme
lme.fnl.REML - lme(Max ~ S + Tr + Yr + Tr:Yr, random = ~1 |TID,
method = REML)
I have three levels of Tr I'm trying to contrast among different
years (R, T97, T98), years = 1997-1999, so I'm interested in
contrasts of the
Here is a minor improvement (cn and nm as before):
reshape(tab, direction = long, varying = nm, v.names = names(nm))
On 5/3/07, Gabor Grothendieck [EMAIL PROTECTED] wrote:
Try this:
cn - names(tab)
nm - list(Date = grep(Date_, cn, value = TRUE),
Variable = grep(Variable, cn, value =
dear R experts:
sorry, I have to ask this again. I know that the answer is in section
7.2 of S Programming, but I don't have the book (and I plan to buy
the next edition---which I hope will be titled S/R programming ;-) ).
I believe the following yields a standard fixed-effects estimation:
Ken Nussear wrote:
Trying to use contrast to look at differences within an lme
lme.fnl.REML - lme(Max ~ S + Tr + Yr + Tr:Yr, random = ~1 |TID,
method = REML)
I have three levels of Tr I'm trying to contrast among different
years (R, T97, T98), years = 1997-1999, so I'm interested in
Dear Franco,
Have you tried using the beta.start option in MCMClogit? (The problem may
be where you are starting your chain.)
Regards,
-Cody
francogrex
On 5/3/2007 1:19 PM, Alberto Vieira Ferreira Monteiro wrote:
Sorry if this is off-topic, but since there are so many data sets in R,
I wonder if there is any data set with Geographic data, like
(latitude,longitude) lists of the contour of the continents and
countries.
The maps and mapdata
I'm attempting to build an R package for distribution and am working
from the directions found at
http://www.maths.bris.ac.uk/~maman/computerstuff/Rhelp/Rpackages.html#Wi
n-Win
I've read through Writing R Extensions and various other helpful web
sites. I've installed all relevant software (perl,
Ken,
lme.fnl.REML - lme(Max ~ S + Tr + Yr + Tr:Yr, random = ~1 |TID,
method = REML)
You have three variables in the model: S, Tr and Yr.
tst - contrast(lme.fnl.REML, a=list(Yr=levels(Yr), Tr=R), b=list
(Yr=levels(Yr, Tr=T97)))
Error in gendata.default(fit = list(modelStruct =
Doran, Harold said the following on 5/3/2007 11:32 AM:
I'm attempting to build an R package for distribution and am working
from the directions found at
http://www.maths.bris.ac.uk/~maman/computerstuff/Rhelp/Rpackages.html#Wi
n-Win
I've read through Writing R Extensions and various other
It can find sh.exe so you haven't installed Rtools.
There are several HowTo's listed in the links section here that include
pointers to R manuals and other step by step instructions:
http://code.google.com/p/batchfiles/
On 5/3/07, Doran, Harold [EMAIL PROTECTED] wrote:
I'm attempting to build
Hello,
I am relatively new to R and have a rudimentary question, I think. How
does one
truncate the number of digits displayed after the decimal when viewing
the results
of analyses?
My apologies if this question has been answered previously, I was not
able to find
references very easily.
Thanks Gabor, Sundar, and Tony. Indeed, Rtools was missing from the
path. With that resolved, and another 10 minute windows restart, I get
the following below. The log suggests that hhc is not installed. It is,
and, according to the directions I am following, I have placed it in the
c:\cygwin
I have a list of data that is delimited by a / and, as long as there is an
equal number of delimiters, I can parse the data and put it into a data frame:
t1-c(a/a/a,b/bb/bbb,ccc/cc/c)
t2-strsplit(t1,/)
t3-data.frame(t2)
t3
c..aaa.. c..bbbbbb.. c..cccccc..
1
On Thu, 3 May 2007, Alberto Vieira Ferreira Monteiro wrote:
Sorry if this is off-topic, but since there are so many data sets in R,
I wonder if there is any data set with Geographic data, like
(latitude,longitude) lists of the contour of the continents and
countries.
Please see the Spatial
On 5/3/2007 3:04 PM, Doran, Harold wrote:
Thanks Gabor, Sundar, and Tony. Indeed, Rtools was missing from the
path. With that resolved, and another 10 minute windows restart, I get
the following below. The log suggests that hhc is not installed. It is,
and, according to the directions I am
Thanks, Duncan. I'll look into that. Is there an authoritative document
that codifies the new package development procedures for 2.5.0
(windows-specific), or is that Writing R Extensions? In this thread
alone I've received multiple emails pointing to multiple web sites with
instructions for
On Thu, 2007-05-03 at 12:14 -0400, Pietrzykowski, Matthew (GE, Research)
wrote:
Hello,
I am relatively new to R and have a rudimentary question, I think. How
does one
truncate the number of digits displayed after the decimal when viewing
the results
of analyses?
My apologies if this
Perhaps format is what you are looking for:
?format
Charles Annis, P.E.
[EMAIL PROTECTED]
phone: 561-352-9699
eFax: 614-455-3265
http://www.StatisticalEngineering.com
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Pietrzykowski,
Matthew (GE,
On 5/3/2007 3:33 PM, Doran, Harold wrote:
Thanks, Duncan. I'll look into that. Is there an authoritative document
that codifies the new package development procedures for 2.5.0
(windows-specific), or is that Writing R Extensions? In this thread
alone I've received multiple emails pointing to
Harold,
I totally echo your sentiments on the difficulty of creating an R package in
Windows. I really wish that this process could be made a bit less painful.
Ravi.
---
Ravi Varadhan, Ph.D.
Assistant
Try this:
l1-c(a/a/a,b/bb/bbb,cc/c)
l2-strsplit(l1,/)
# determine maximum length
maxLen - max(sapply(l2, length))
# pad to maximum length
do.call('data.frame', lapply(l2, function(x)c(x, rep(NA, maxLen-length(x)
c..aaa.. c..bbbbbb.. c..ccc...NA.
1a
Try:
read.table(textConnection(l1), sep = /, fill = TRUE)
On 5/3/07, Kevin Burke [EMAIL PROTECTED] wrote:
I have a list of data that is delimited by a / and, as long as there is an
equal number of delimiters, I can parse the data and put it into a data frame:
t1-c(a/a/a,b/bb/bbb,ccc/cc/c)
Suggest you try following the advice I already gave, viz. reading the
relevant HowTo links on the batchfiles home page.
One gives pointers to the authoritative sources (the manuals)
and the other gives step by step instructions. These do answer
both of the subsequent questions the poster had.
Dear R-users,
The data that I want to treat refer to claims and a glm have been adjusted
to the it.
Now there are some calculations that I wanrt to do with the residuals and
estimations from the model. The glm model has variables that refer to the
fleet to wich the vehicle refers to and
2007/5/2, Jennifer Dillon [EMAIL PROTECTED]:
Hi,
I'm trying to do a simple survival analysis on some data, and I'm having the
following problem (here's my code and the error message):
out - Surv(fup,event=status)
Error in Surv(fup, event = status) : argument time2 is missing, with no
Talbot == Talbot Katz [EMAIL PROTECTED]
on Thu, 03 May 2007 12:35:27 -0400 writes:
Talbot Hi. I can't access the site
Talbot http://wiki.r-project.org/. I didn't find any
Talbot notice about this on http://www.r-project.org/.
Talbot Does anyone have any more information
Dear List:
I have a simple two-column data set in .csv format, with the first column
being the date and second column being some value. I use read.csv() to
import the data as follows:
x - read.csv(myfile.csv,header=T, dec=., colClasses=c(Date=POSIXct))
The structure of x is:
str(x)
On 5/3/2007 3:51 PM, Ravi Varadhan wrote:
Harold,
I totally echo your sentiments on the difficulty of creating an R package in
Windows. I really wish that this process could be made a bit less painful.
As mentioned below, version 2.5.0 makes it a bit less painful. Your
wish has come true!
A follow-up question: The example in ?attr uses a character string of
dim. Besides dim and times, what other character strings are
available or can be used?
On 5/3/07, Michael Sumner [EMAIL PROTECTED] wrote:
Hello,
It seems that danish is a numeric vector with attributes attached -
the
Hello,
It seems that danish is a numeric vector with attributes attached -
the attribute vector is POSIXct and is the same length as danish.
You can create this from a data frame like this:
x - data.frame(Date = ISOdate(2007, 5, 1:10), Value = rnorm(10))
str(x)
'data.frame': 10 obs. of 2
Hi, yes but I realized afterwards that it's the logfun argument that had to
be put to logfun=F and the logpriorfun function had to be log=F
logpriorfun - function(beta,shape1,shape2){
sum(dbeta(beta,shape1,shape2,log=F)) }
But that's just for that particular example. I find I am having problems
Thank you, Mike!
On 5/3/07, Michael Sumner [EMAIL PROTECTED] wrote:
Hello,
It seems that danish is a numeric vector with attributes attached -
the attribute vector is POSIXct and is the same length as danish.
You can create this from a data frame like this:
x - data.frame(Date =
Thanks for your advice. Seems to have been a quirk in the installation of
R2HTML which is now resolved.
Tim
-Original Message-
From: Prof Brian Ripley [mailto:[EMAIL PROTECTED]
Sent: 03 May 2007 21:29
To: Tim Sippel
Cc: r-help@stat.math.ethz.ch
Subject: Re: [R] Install SciView
Hi all,
I am wondering if this is a bug in the Matrix package or if it something
that I am just getting wrong...here is an example:
m = matrix(0,4,4)
dimnames(m) = list(letters[1:4], letters[5:8])
r = c(a,b,a,d)
m[r,2] = 1
m
e f g h
a 0 1 0 0
b 0 1 0 0
c 0 0 0 0
d 0 1 0 0
M =
Jacques Wagnor wrote:
A follow-up question: The example in ?attr uses a character string of
dim. Besides dim and times, what other character strings are
available or can be used?
Ah, it's not limited to those. Any character string would do (guru
caveats aside).
I suspect my narrow answer
Hello R-Users:
I am want to use tobit regression for left censored panel/longitudinal data.
Could you please provide me the name of library and/or package that will
give me option of fitting tobit regression model for longitudinal data?
Thank you.
Sattar
R 2.4.1
Windows XP
How does one reorder a factor?
I have the following data:
factor(data$Group)
[1] ZZ ZT ZT ZZ ZZ ZT ZZ ZZ ZT ZT ZT ZT ZZ ZT ZT ZZ ZT ZZ ZT ZZ ZT ZT ZZ ZZ ZT
ZZ ZT ZZ ZT ZZ ZZ ZT ZZ ZT
Levels: ZT ZZ
In my regression (i.e. lm(y~data$Group) ZT is taken as the reference
the DESCRIPTION file:
Package: RSVGTipsDevice
Version: 0.7.0
Date:04/30/2007
Title: An R SVG graphics device with dynamic tips and hyperlinks
Author: Tony Plate [EMAIL PROTECTED], based on RSvgDevice by T Jake
Luciani [EMAIL PROTECTED]
Maintainer: Tony Plate [EMAIL PROTECTED]
Depends: R
One way to reorder a factor is to define a new
factor and specify the order of levels using
the levels argument of the factor() function.
The first category specified for the levels
argument will be the reference category in
model fits such as with lm().
mydata - data.frame(y = c(runif(10),
Hi John,
You should use (http://rweb.stat.umn.edu/R/library/stats/html/relevel.html), so
newGroup - relevel (data$Group, ref = ZZ)
Reza
On 5/3/07, John Sorkin [EMAIL PROTECTED] wrote:
R 2.4.1
Windows XP
How does one reorder a factor?
I have the following data:
factor(data$Group)
./configure
hecking whether stripping libraries is possible... no
configure: WARNING: you cannot build info or html versions of the R manuals
checking for cos in -lm... yes
checking for sin in -lm... yes
checking for dlopen in -ldl... yes
checking readline/history.h usability... no
checking
Please do read the 'R Installation and Administration' manual, which
answers this and all your other questions.
I make this your sixth post on the subject line (and someone using a
different address has posted with the identical line). You are still
sending HTML, so please do study the
92 matches
Mail list logo