Consider the following:
> changeNames <- function(dfName,
+ newNames=c("A1", "B1"), pos.=1){
+ DF. <- get(dfName)
+ names(DF.) <- newNames
+ assign(dfName, DF., pos=pos.)
+ "done"
+ }
>
> DF <- data.frame(a=1, b=2)
> changeNames("DF")
[1] "done"
> DF
A1 B1
1 1 2
>
Th
I'm trying to rename the columns in a list of data.frames using the
following...
for(i in 1:length(filenames)) {
assign(names(get(filenames[i])), c("name", "infood", "time") ) }
R returns no errors, but the names are unchanged in the data.frames.
The original names were things like
> names(ge
Gabor Grothendieck wrote:
Chambers book, Programming with Data, has a lot about S4.
Note that S4 has more features but S3 is simpler and
has higher performance so its not all one way. Also, they
are related so if you learn the simpler S3 first it will
make it easier to learn S4 later.
I sugges
On Tue, Dec 28, 2004 at 05:54:02PM -0700, Cary Miller wrote:
> Hi R,
> Apologies for the earlier non-informative error message. I am
> installing R 2.0.1 from source on a Linux debian system. Configure works
You could use the fallback strategy of employing our pre-built packages:
$ ap
Hi R,
Apologies for the earlier non-informative error message. I am
installing R 2.0.1 from source on a Linux debian system. Configure works
fine. Then I run make and get an error that was reported by several
people when installing R 2.0.0. Here is the error message
> Warning message:
> pack
Dear List:
I am estimating a gls model and am having to make some rather unconventional
modifications to handle a particular problem I have identified. My aim is to
fit a GLS with an AR1 structure, obtain the variance-covariance matrix (V),
modify it as needed given my research problem, and th
On Tue, Dec 28, 2004 at 02:37:03PM -0700, Cary Miller wrote:
> Dear R,
> I am attempting to install 2.0.1 on a Debian system and getting an error
> that appeared for people installing 2.0.0.
>
> Warning message:
> package seems to be using lazy loading already in:
> makeLazyLoading("tools")
> Er
thomas hills <[EMAIL PROTECTED]> writes:
> I am wondering if it is possible to read.table repeatedly from a list
> of file names into a new list of table names.
>
> For example:
>
> filenames <- list.files()
>
> then with a function like
>
> rf <- function(i) {
> word??(filename[i]) <- read.t
On Tue, 28 Dec 2004, thomas hills wrote:
I am wondering if it is possible to read.table repeatedly from a list
of file names into a new list of table names.
For example:
filenames <- list.files()
then with a function like
rf <- function(i) {
word??(filename[i]) <- read.table(filenames[i]) }
lapply(
The solution is in section 7.21 of the R FAQ. BTW, `rf' is a built-in R
function for generating random numbers from an F distribution, so better use
some other name.
Andy
> From: thomas hills
>
> I am wondering if it is possible to read.table repeatedly from a list
> of file names into a new l
I am wondering if it is possible to read.table repeatedly from a list
of file names into a new list of table names.
For example:
filenames <- list.files()
then with a function like
rf <- function(i) {
word??(filename[i]) <- read.table(filenames[i]) }
I can't seem to find a function like word?
Dear R,
I am attempting to install 2.0.1 on a Debian system and getting an error
that appeared for people installing 2.0.0.
Warning message:
package seems to be using lazy loading already in:
makeLazyLoading("tools")
Error in get(x, envir, mode, inherits) : variable
".install_package_description
If you right click the file icon of any of the RData files
in Windows Explorer, the click Open With, and then Browse
and Choose the R executable file icon in the R folder under
Program Files (and make sure "Always Use This Program" is
chosen), then you should be able to get the default back.
T
Dear friends;
Does anyone have any idea how to connect PHP & R and
using Mysql as DB.
Sincerely,
Sean
__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posti
Your lack of knowledge extends to the R posting guide: please consult it
before posting.
1) Do not post to two lists! I've removed the BioC list.
2) Do tell us your system details. Looks like you have a 32-bit version
of R (from the size of the Ncells), and you need a 64-bit version to make
use
On Tue, 28 Dec 2004, Rajdeep Das wrote:
I am doing two class classification using logistic regression. I
realized that I can either use "glm" function or "multinom" function. I
know "multinom" is used for multiclass classification. But if I was it
for binary classification, I was wondering if th
It is an optional part of the install: did you check the option?
If so, it still works in R 2.0.1.
On Tue, 28 Dec 2004, Richard Valliant wrote:
Somehow I have lost the correct file association for .RData files. They
are now associated with a text file editor. When I right click on any
.RData file a
Please consider the following:
plot(0:1, axes=F)
axis(1)
If you read the help page for "axis" and work the examples there,
you may be able to figure it out. Hint: Develop a function, say, fn,
to shrink 25-104 to 25-50 leaving x < 25 unchanged. Then the following
should work for yo
Tae-Hoon Chung <[EMAIL PROTECTED]> writes:
> Hi, all;
>
> I know there has been a lot of discussions on memory usage in R.
> However, I have some odd situation here. Basically, I have a rare
> opportunity to run R in a system with 64GB memory without any limit on
> memory usage for any person or
Anne Shelton
ITS Research IT Group
University at Albany
1400 Washington Ave. - MSC-100
Albany, NY 1
Office: 437-4525 Cell: 788-8634
__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting
And some notes on the Bioconductor developer page.
On Dec 28, 2004, at 9:38 AM, Thomas Lumley wrote:
On Tue, 28 Dec 2004, Gilvan Justino wrote:
Hi,
I´m trying to write some R classes but I din´t find documentation
enought to develop them. I read there is 2 ways to write classes,
using S3 ou S4
Hi, all;
I know there has been a lot of discussions on memory usage in R.
However, I have some odd situation here. Basically, I have a rare
opportunity to run R in a system with 64GB memory without any limit on
memory usage for any person or process. However, I encountered the memory
problem error
Dear Colleagues,
I am doing two class classification using logistic regression. I realized that
I can either use "glm" function or "multinom" function. I know "multinom" is
used for multiclass classification. But if I was it for binary classification,
I was wondering if there is an difference i
Dear R Users,
I have the following situations to plot.
x-values (times) : range from 0 to 104 (in weeks)
y-values (hazards) : range from 0 to 0.5
Now I want to make a plot of time versus hazards such
that in the time axis (i.e x-axis) the values 0-24 occupies
half of the axis
You can change file associations by going into Windows Explorer
(hold down Windows key and press E) and choosing Tools | Options.
Take the File Types tab. Now, select RDATA from the long list
and click on Advanced and Edit and enter the string:
"C:\Program Files\R\rw2001\bin\RGui.exe" "%1"
On Tue, 28 Dec 2004, Gilvan Justino wrote:
Hi,
I´m trying to write some R classes but I din´t find documentation
enought to develop them. I read there is 2 ways to write classes, using
S3 ou S4 models. And it seems that S4 is the best model, so I thing I
should use this one.
There's a small exam
Recipient of the infected attachment: EX2K, First Storage Group\Mailbox Store
(EX2K), Elizabeth Pascucci/Inbox
Subject of the message: Re: Hello
One or more attachments were quarantined.
Attachment document_all02c.exe was Quarantined for the following reasons:
Virus UNAUTHORIZED FILE was f
Somehow I have lost the correct file association for .RData files. They
are now associated with a text file editor. When I right click on any
.RData file and try to change the association, R is not listed as a
choice of program. I browse to c:\Program Files\R\rw2001\bin\Rgui.exe
and select that fil
Chambers book, Programming with Data, has a lot about S4.
Note that S4 has more features but S3 is simpler and
has higher performance so its not all one way. Also, they
are related so if you learn the simpler S3 first it will
make it easier to learn S4 later.
I suggest you download and read
Fritz's lecture at useR! 2004 may also be a good starting point:
http://www.ci.tuwien.ac.at/Conferences/useR-2004/Keynotes/Leisch.pdf
Andy
> From: Gilvan Justino
>
> Hi,
>
> I´m trying to write some R classes but I din´t find
> documentation enought to develop them. I read there is 2 ways
>
Hi,
I´m trying to write some R classes but I din´t find documentation enought to
develop them. I read there is 2 ways to write classes, using S3 ou S4 models.
And it seems that S4 is the best model, so I thing I should use this one.
I´m new user of R and I´m searched on the net some informat
The mistakes in your function are:
1. the functions repeat and break do not have any arguments
2. the break function should be used insed the repear loop (or if statment
with break function should be inside the repeat loop)
Correcting for these mistakes I corrected your function. It is at the end
> "UweL" == Uwe Ligges <[EMAIL PROTECTED]>
> on Tue, 28 Dec 2004 13:12:49 +0100 writes:
UweL> Fredrik Lundgren wrote:
>> Dear R,
>>
>> I have made a package 'myfuncs' of some home made
>> functions and installed it without problems. It contains
>> no C or fortr
Fredrik Lundgren wrote:
Dear R,
I have made a package 'myfuncs' of some home made functions and
installed it without problems. It contains no C or fortran code and no
dynamic link library. Is there a way to edit this package directly from
R (or Xemacs with ESS) or do I always have to edit the so
To whoever this may concern
I am trying to write a repeat loop and can't make out from the documentation on
the website how exactly to construct the repeat, break structure of the loop.
Below is the function sim2.dat that I am trying to create, in which firstly I
create n random uniform(0,1) nu
Dear R,
I have made a package 'myfuncs' of some home made functions and
installed it without problems. It contains no C or fortran code and no
dynamic link library. Is there a way to edit this package directly from
R (or Xemacs with ESS) or do I always have to edit the source and then
reinstall
You can copy (right click then choose metafile) and paste
into Word easily, though sometimes you may have problem
sizing the graph, depending on how it's produced. However,
single framed graphs work quite straightforwardly.
Tim Liao
Original message
>Date: Mon, 27 Dec 2004 17:00:19
37 matches
Mail list logo