[R] Information on objects of class by

2007-07-05 Thread Guilherme Veiga da Rocha
Hi all, Does anyone know where to find more information on the by class? OR Does anyone know how to coerce an object of the by class into a data.frame containing the results of FUN and the values of the grouping variables?

Re: [R] Names of objects passed as ... to a function?

2007-06-24 Thread Gavin Simpson
On Sat, 2007-06-23 at 16:52 +0100, Prof Brian Ripley wrote: On Sat, 23 Jun 2007, Gavin Simpson wrote: Dear list, I have a function whose first argument is '...'. Each element of '...' is a data frame, and there will be at least 2 data frames in '...'. The function processes each of

Re: [R] Names of objects passed as ... to a function?

2007-06-23 Thread Prof Brian Ripley
On Sat, 23 Jun 2007, Gavin Simpson wrote: Dear list, I have a function whose first argument is '...'. Each element of '...' is a data frame, and there will be at least 2 data frames in '...'. The function processes each of the data frames in '...' and returns a list, whose components are

Re: [R] Names of objects passed as ... to a function?

2007-06-23 Thread Marc Schwartz
On Sat, 2007-06-23 at 15:54 +0100, Gavin Simpson wrote: Dear list, I have a function whose first argument is '...'. Each element of '...' is a data frame, and there will be at least 2 data frames in '...'. The function processes each of the data frames in '...' and returns a list, whose

[R] Names of objects passed as ... to a function?

2007-06-23 Thread Gavin Simpson
Dear list, I have a function whose first argument is '...'. Each element of '...' is a data frame, and there will be at least 2 data frames in '...'. The function processes each of the data frames in '...' and returns a list, whose components are the processed data frames. I would like to name

[R] use ts objects within the seas package for seasonal stats ; to compare years with each other for change detection

2007-06-21 Thread Jan.Verbesselt
Hi all, Does anyone know how ts objects ts(base) can be used within the 'seas' package? I would like to obtain seasonal statistics of regular time-series and for example look at the result of the plot.seas.var() function or use the change function() to look at change between periods or

[R] names of objects in .rda

2007-05-11 Thread Benilton Carvalho
Hi everyone, sorry if this was discussed before (and in this situation, could you please point me to the discussion in the archive? My search didn't seem to be effective). Is there a way of getting the names of objects in a .rda file without having to load it? Thank you very much,

Re: [R] names of objects in .rda

2007-05-11 Thread Duncan Murdoch
On 5/11/2007 11:53 AM, Benilton Carvalho wrote: Hi everyone, sorry if this was discussed before (and in this situation, could you please point me to the discussion in the archive? My search didn't seem to be effective). Is there a way of getting the names of objects in a .rda file

Re: [R] names of objects in .rda

2007-05-11 Thread Douglas Bates
without having to load it? Although it is not terribly different from loading an .rda file you can get the names of the objects via the sequence objects(attach(myRdaFile.rda)); detach() __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch

Re: [R] names of objects in .rda

2007-05-11 Thread Christos Hatzis
: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Benilton Carvalho Sent: Friday, May 11, 2007 11:54 AM To: [EMAIL PROTECTED] server posting Subject: [R] names of objects in .rda Hi everyone, sorry if this was discussed before (and in this situation, could you please point me

Re: [R] names of objects in .rda

2007-05-11 Thread Prof Brian Ripley
as there is no way to extract just part of it (and R objects are not in any case self-contained and may share sub-objects). -- Brian D. Ripley, [EMAIL PROTECTED] Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/ University of Oxford, Tel: +44 1865 272861

Re: [R] names of objects in .rda

2007-05-11 Thread Seth Falcon
Christos Hatzis [EMAIL PROTECTED] writes: An approach would be to attach it and then use ls() No, that really is not an approach. If you load it, then there is no problem to read the names. The point is not to load it. This is important when dealing with large objects or large collections

Re: [R] names of objects in .rda

2007-05-11 Thread Christos Hatzis
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Seth Falcon Sent: Friday, May 11, 2007 1:32 PM To: r-help@stat.math.ethz.ch Subject: Re: [R] names of objects in .rda Christos Hatzis [EMAIL PROTECTED] writes: An approach would be to attach

[R] plotting POSIXct objects {was Re: Using split() several times in a row?}

2007-03-31 Thread Stephen Tucker
Hi Gabor and Martin, Thanks very much for the information. (and Gabor for the Fold() routine included in original reply) Regarding changes, I wonder if the behavior of plot() on POSIXct objects changed also. According to Rnews Vol. 4/1, p. 31, = dp - seq(Sys.time(),len=10,by=day)

Re: [R] plotting POSIXct objects {was Re: Using split() several times in a row?}

2007-03-31 Thread Gabor Grothendieck
I think you are right. Plot does seem to have changed and maybe its due to a change in plot or maybe due to a change in some routine it in turn calls. Here is another test: dd - ISOdatetime(2007, 1, 1:3, 0, 0, 0, tz = ) plot(dd, 1:3) dd.gmt - ISOdatetime(2007, 1, 1:3, 0, 0, 0, tz = GMT)

[R] plotting rpart objects - fancy option

2007-02-27 Thread Volker Bahn
Hi all, I'm trying to create nice plots of rpart objects. In particular, I'd like to use the fancy option to text() that creates ellipses and rectangles at the splits and endnotes, respectively. This worked fine in the past, but now the ellipses do not interrupt the original tree lines

[R] Plotting groupedData objects

2007-02-07 Thread [EMAIL PROTECTED]
Hi all. I have what I'm guessing is a fairly easy question. I want to plot groupedData objects, but there are a large number of subjects in my data. When I use the simple command plot(MyData) where MyData is a groupedData object, there are simply too many individual plots to see anything. I

Re: [R] Appending zoo objects

2007-01-30 Thread Gabor Grothendieck
You can use rbind.zoo if the times do not overlap. On 1/30/07, Shubha Vishwanath Karanth [EMAIL PROTECTED] wrote: Hi everybody, How do we append (note: it's not merging) two zoo objects with the same column names? Thanks, Shubha [[alternative HTML version deleted]]

Re: [R] %*% in Matrix objects

2007-01-29 Thread Martin Maechler
Jose == Jose Quesada [EMAIL PROTECTED] on Sat, 27 Jan 2007 23:42:34 +0100 writes: Jose Hi Martin, Thanks for your detailed answer. Jose x - Matrix(1:12, 3,4, sparse = TRUE) I hope that you are aware of the fact that it's not efficient at all to store a dense matrix (it

[R] Appending zoo objects

2007-01-29 Thread Shubha Vishwanath Karanth
Hi everybody, How do we append (note: it's not merging) two zoo objects with the same column names? Thanks, Shubha [[alternative HTML version deleted]] __ R-help@stat.math.ethz.ch mailing list

Re: [R] %*% in Matrix objects

2007-01-27 Thread Jose Quesada
Hi Martin, Thanks for your detailed answer. x - Matrix(1:12, 3,4, sparse = TRUE) I hope that you are aware of the fact that it's not efficient at all to store a dense matrix (it has *no* 0 entry) as a sparse one.. and your posting is indeed an incentive for the Matrix developers to improve that

Re: [R] %*% in Matrix objects

2007-01-26 Thread Martin Maechler
Jose == Jose Quesada [EMAIL PROTECTED] on Fri, 26 Jan 2007 05:24:12 +0100 writes: Jose Dear R users, Jose I need to normalize a bunch of row vectors. At a certain point I need to divide a matrix by a vector of norms. I find that the behavior of Matrix objects differs from normal

[R] %*% in Matrix objects

2007-01-25 Thread Jose Quesada
Dear R users, I need to normalize a bunch of row vectors. At a certain point I need to divide a matrix by a vector of norms. I find that the behavior of Matrix objects differs from normal matrix objects. Example the following code examples differ only in xnormed changing from normal to Matrix

[R] Types of objects?

2007-01-01 Thread Raymond Balise
Is there a list of object types used by R? Is there a function that I can use to tell the type of an object? Thanks a bunch, Ray [[alternative HTML version deleted]] __ R-help@stat.math.ethz.ch mailing list

Re: [R] Types of objects?

2007-01-01 Thread Dieter Menne
Raymond Balise iteachtyping at gmail.com writes: Is there a list of object types used by R? Is there a function that I can use to tell the type of an object? typeof() Dieter __ R-help@stat.math.ethz.ch mailing list

Re: [R] Types of objects?

2007-01-01 Thread Raymond Balise
What I am looking for is a function that goes with section 2.8 of the Introduction to R PDF that ships with R. It says that the R objects are vectors, matrices, factors, lists, data frames and functions. Is there a function that returns this level of information or is that taxonomy just

Re: [R] Types of objects?

2007-01-01 Thread Gabor Grothendieck
Try class, typeof and mode. On 1/1/07, Raymond Balise [EMAIL PROTECTED] wrote: What I am looking for is a function that goes with section 2.8 of the Introduction to R PDF that ships with R. It says that the R objects are vectors, matrices, factors, lists, data frames and functions

Re: [R] Using multiple objects in a for loop

2006-11-25 Thread Ales Ziberna
You should use assign(temp,get(on[j])) or just temp-get(on[j]) as the on[j] IS just a character string. If you want to get the object with that name, use get. Ales Ziberna Daniel Yanosky pravi: I have a situation where I want to perform the same manipulations to multiple R objects

[R] Using multiple objects in a for loop

2006-11-24 Thread Daniel Yanosky
I have a situation where I want to perform the same manipulations to multiple R objects in series. I have constructed a vector () to serve as a list of the objects. However, my assign() assigns the object name (on[j]) as a character string to temp and not the object itself

[R] dumping/loading objects with 'tsp' attribute

2006-11-23 Thread Antonio, Fabio Di Narzo
real problem should be restated as: how to safely dump (and then load) an object which has a (perhaps valid) tsp attribute? More generally: can someone suggest me a safer way to dump/restoring R objects? Tnx all, Antonio. -- Antonio, Fabio Di Narzo Ph.D. student at Department of Statistical

Re: [R] dumping/loading objects with 'tsp' attribute

2006-11-23 Thread Prof Brian Ripley
(temp.dat)) [1] ts myts unlink(temp.dat) In other words, my real problem should be restated as: how to safely dump (and then load) an object which has a (perhaps valid) tsp attribute? More generally: can someone suggest me a safer way to dump/restoring R objects? save/load. ?dput comes

Re: [R] dumping/loading objects with 'tsp' attribute

2006-11-23 Thread Antonio, Fabio Di Narzo
a safer way to dump/restoring R objects? save/load. Ok. That seems to be the final statement: to be sure about the result, I have to use binary files for storing R objects (even pure data objects with attached attributes) instead of dumped R code. I will accept that (infact, as I can read

Re: [R] dumping/loading objects with 'tsp' attribute

2006-11-23 Thread Gabor Grothendieck
which has a (perhaps valid) tsp attribute? More generally: can someone suggest me a safer way to dump/restoring R objects? save/load. Ok. That seems to be the final statement: to be sure about the result, I have to use binary files for storing R objects (even pure data objects

Re: [R] dumping/loading objects with 'tsp' attribute

2006-11-23 Thread Gabor Grothendieck
problem should be restated as: how to safely dump (and then load) an object which has a (perhaps valid) tsp attribute? More generally: can someone suggest me a safer way to dump/restoring R objects? save/load. Ok. That seems to be the final statement: to be sure about

Re: [R] dumping/loading objects with 'tsp' attribute

2006-11-23 Thread Antonio, Fabio Di Narzo
)) [1] ts myts unlink(temp.dat) In other words, my real problem should be restated as: how to safely dump (and then load) an object which has a (perhaps valid) tsp attribute? More generally: can someone suggest me a safer way to dump/restoring R objects

[R] refer to objects with sequential names

2006-08-27 Thread Wensui Liu
Dear Listers, If I have several glm objects with names glm1, glm2 and want to apply new data to these objects. Instead of typing predict(glm1, newdata)... 100 times, is there way I could do so in a loop? Thank you so much! wensui [[alternative HTML version deleted]]

Re: [R] refer to objects with sequential names

2006-08-27 Thread Renaud Lancelot
Assuming newdata is the same for all the models and is included in a data.frame called New: list_glm - paste(glm, 1:10, sep = ) sapply(list_glm, function(x) predict(get(x), newdata = New)) Best, Renaud 2006/8/27, Wensui Liu [EMAIL PROTECTED]: Dear Listers, If I have several glm objects

Re: [R] Saving R objects

2006-07-24 Thread Nair, Murlidharan T
] Sent: Sun 7/23/2006 10:11 PM To: Nair, Murlidharan T Cc: r-help@stat.math.ethz.ch Subject: Re: [R] Saving R objects It depends on what information you want to save and how the program on the other end needs it. For the save version I would at least use ascii = TRUE to get it in a more readable

Re: [R] Saving R objects

2006-07-24 Thread Gabor Grothendieck
-help@stat.math.ethz.ch Subject: Re: [R] Saving R objects It depends on what information you want to save and how the program on the other end needs it. For the save version I would at least use ascii = TRUE to get it in a more readable fashion. Look at file.show(mult_test.dat) file.show

[R] Saving R objects

2006-07-23 Thread Nair, Murlidharan T
I am trying to find the best way to save the follwoing object I am creating library(multcomp) data(recovery) Dcirec-simint(minutes~blanket, data=recovery, conf.level=0.9, alternative=less) I am probably not doing it the most efficient way I think. Here is what I am doing a-print(Dcirec)

Re: [R] Saving R objects

2006-07-23 Thread Gabor Grothendieck
It depends on what information you want to save and how the program on the other end needs it. For the save version I would at least use ascii = TRUE to get it in a more readable fashion. Look at file.show(mult_test.dat) file.show(mult.out) # but use ascii=TRUE on your save statement. to see

[R] extending family() objects

2006-05-19 Thread Simon.Bond
Dear R-help, The family collection of objects is very useful since I can perform some of the calculations involved when fitting glms easily in a vectorized manner. I would like to extend them in the following manner: I want to supply a vector of family names such as c(poisson, gamma,beta), and

Re: [R] moving/copy objects between work space

2006-05-02 Thread Uwe Ligges
Anne S Jacobson wrote: Hi, I know there must be a way to do this, but I went through a couple 'Intro to R' books and didn't see how to do this. How do I move/copy objects from one work space to another? I have been saving the objects I want to move/copy separately then load them into

[R] plotting groupedData objects

2006-05-01 Thread Osman Al-Radi
Dear R-Help, I am using R2.3.0, nlme library on Windows XP. I created a grouped data object with y, subject, group and time variables. I can plot the data using plot.nfnGroupedData(form=y~time|subject,outer=~group) This gives me individual curves (connected points) for each subject in

[R] moving/copy objects between work space

2006-05-01 Thread Anne S Jacobson
Hi, I know there must be a way to do this, but I went through a couple 'Intro to R' books and didn't see how to do this. How do I move/copy objects from one work space to another? I have been saving the objects I want to move/copy separately then load them into another work space. Is there a

Re: [R] Time Series Objects/ MC Simulation

2006-04-07 Thread Spencer Graves
I don't have a direct answer to your question, but in case you are interested in a general introduction to time series capabilties in R, I will suggest the following: 1. Ch. 14 in Venables and Ripley (2002) Modern Applied Statistics with S, 4th ed. (Springer) 2.

[R] Time Series Objects/ MC Simulation

2006-04-05 Thread Keith Sabol
I am attempting to value convertible bonds through a Monte Carlo approach. I want to express call schedules as date-price tuples. Naturally, these tuples need to be expanded to match the frequency of the innovations in the MC process. 1. Is there a straigh-forward way to accomplish this

Re: [R] Where does R 2.2.1 store objects?

2006-03-20 Thread Liaw, Andy
'. Andy From: Leon Thank you for pointing out. For the archive, R stores the objects in .RData file, usually in ~/.RData. Gabor Grothendieck [EMAIL PROTECTED] writes: This is a FAQ. http://cran.r-project.org/doc/FAQ/R-FAQ.html#What-are-the-differences- between-R-and-S_003f

[R] Where does R 2.2.1 store objects?

2006-03-19 Thread Leon
Dear all, New to R. I'm reading Ripley's book of Modern Applied Statistics with S-PLUS. It says that the objects will be stored in the .Data sub-directory of current working directory. I have searched around in my system and can't find such dir. Any ideas? -- Leon

Re: [R] Where does R 2.2.1 store objects?

2006-03-19 Thread Gabor Grothendieck
This is a FAQ. http://cran.r-project.org/doc/FAQ/R-FAQ.html#What-are-the-differences-between-R-and-S_003f On 3/19/06, Leon [EMAIL PROTECTED] wrote: Dear all, New to R. I'm reading Ripley's book of Modern Applied Statistics with S-PLUS. It says that the objects will be stored in the .Data

Re: [R] Where does R 2.2.1 store objects?

2006-03-19 Thread Leon
Thank you for pointing out. For the archive, R stores the objects in .RData file, usually in ~/.RData. Gabor Grothendieck [EMAIL PROTECTED] writes: This is a FAQ. http://cran.r-project.org/doc/FAQ/R-FAQ.html#What-are-the-differences-between-R-and-S_003f On 3/19/06, Leon [EMAIL PROTECTED

[R] Subtracting timeseries objects

2005-11-15 Thread tom wright
Sorry to keep posting but I want to do this right and I'm hoping for some pointers I now have two time series objects which I need to subtract. Unfortunatly the two series dont have the same sample rates. When I try to subtract them avgSub-avg1-avg2 The time series object is clever enough to

Re: [R] Subtracting timeseries objects

2005-11-15 Thread Gabor Grothendieck
On 11/15/05, tom wright [EMAIL PROTECTED] wrote: Sorry to keep posting but I want to do this right and I'm hoping for some pointers I now have two time series objects which I need to subtract. Unfortunatly the two series dont have the same sample rates. When I try to subtract them

Re: [R] Subtracting timeseries objects

2005-11-15 Thread Prof Brian Ripley
On Tue, 15 Nov 2005, tom wright wrote: Sorry to keep posting but I want to do this right and I'm hoping for some pointers I now have two time series objects which I need to subtract. Unfortunatly the two series dont have the same sample rates. When I try to subtract them avgSub-avg1-avg2

[R] reading matrix objects into a list

2005-10-13 Thread Paul Baer
OK, I've tried to be a good citizen and use the searchable archives, but with three search strings I haven't found the answer to what must really be a simple question. I want to create a list of objects from a set of matrices (in this case, 300x300). Suppose the first matrix is A. I tried:

Re: [R] reading matrix objects into a list

2005-10-13 Thread Huntsinger, Reid
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Paul Baer Sent: Thursday, October 13, 2005 3:41 PM To: r-help@stat.math.ethz.ch Subject: [R] reading matrix objects into a list OK, I've tried to be a good citizen and use the searchable archives

Re: [R] access assigned objects

2005-08-12 Thread Uwe Ligges
Beth Wilmot wrote: Dear list, I am trying to write a function that will make a matrix of each row of a data frame (4 columns), calculate a fisher.test on each resulting matrix and assign a vector of the p-values. I have gotten through making the matrices, but cannot calculate the

[R] access assigned objects

2005-08-11 Thread Beth Wilmot
Dear list, I am trying to write a function that will make a matrix of each row of a data frame (4 columns), calculate a fisher.test on each resulting matrix and assign a vector of the p-values. I have gotten through making the matrices, but cannot calculate the fisher.test. fm-function(x)

[R] Handling R Objects in C++

2005-02-03 Thread Àííà
Hello! I want R to call some functions from my DLL, which is written on C++ using Microsoft Visual C++ 6.0. I've looked through Writing R extensions manual and FAQ for Windows. I achieved, that R can call void functions without parameters from my C++ DLL. Then I included R headers files to my

[R] converting R objects to C types in .Call

2005-01-25 Thread Edzer J. Pebesma
Is there a specific reason why, instead of CHAR(STRING_ELT(chstr, 0)); The S-Plus compatible CHARACTER_POINTER(chstr)[0] does not work in R? -- Edzer __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do

Re: [R] converting R objects to C types in .Call

2005-01-25 Thread Prof Brian Ripley
On Tue, 25 Jan 2005, Edzer J. Pebesma wrote: Is there a specific reason why, instead of CHAR(STRING_ELT(chstr, 0)); The S-Plus compatible CHARACTER_POINTER(chstr)[0] does not work in R? Yes. This is really a question for R-devel, but briefly, R and S-PLUS store character vectors in very

[R] converting R objects to C types in .Call

2005-01-24 Thread Faheem Mitha
Dear People, I'm trying to write an R wrapper for a C++ library, using .Call. I've never used .Call before. I'm currently having some difficulties converting a R character string to a C one. Here is a little test program. #include R.h #include Rinternals.h #include stdio.h SEXP testfn(SEXP

Re: [R] converting R objects to C types in .Call

2005-01-24 Thread Barry Rowlingson
Faheem Mitha wrote: SEXP testfn(SEXP chstr) { char * charptr = CHAR(chstr); printf(%s, charptr); } I am sure I am making an obvious mistake, but can someone help me to sort it out? Thanks in advance. Please cc me, I'm not subscribed. Firstly, R is expecting an SEXP as a return value! And

Re: [R] converting R objects to C types in .Call

2005-01-24 Thread Prof Brian Ripley
On Mon, 24 Jan 2005, Faheem Mitha wrote: I'm trying to write an R wrapper for a C++ library, using .Call. I've never used .Call before. I'm currently having some difficulties converting a R character string to a C one. Here is a little test program. #include R.h #include Rinternals.h #include

Re: [R] converting R objects to C types in .Call

2005-01-24 Thread Faheem Mitha
Hi Barry, Thanks for your reply. On Mon, 24 Jan 2005, Barry Rowlingson wrote: Firstly, R is expecting an SEXP as a return value! Ouch... I haven't found anything that says this explicitly, but it looks like .Call expects a SEXP to be returned to R. At any rate, trying to use void instead gives a

[R] test multiple objects for being equal length

2004-12-09 Thread Manuel Gutierrez
I could not find any help pages on How to test many objects for being of equal length Something like identical for more than two objects? x-1:6 y-1:10 z-3:5 ## For two objects I can do: identical(length(x),length(y)) ## For more than two I currently can do:

Re: [R] test multiple objects for being equal length

2004-12-09 Thread Eric Lecoutre
Hi Manuel, First, encapsulate yoyr objects within a list. That will help you manipulate all them at once and ensures that the final function will work with whatever number of vectors. » ll - list(x,y,z) » sapply(ll,length) [1] 6 10 3 Then you can use your length(unique(...))==1 Another way is

RE: [R] test multiple objects for being equal length

2004-12-09 Thread BXC (Bendix Carstensen)
PROTECTED] www.biostat.ku.dk/~bxc -- -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Manuel Gutierrez Sent: Thursday, December 09, 2004 9:09 AM To: [EMAIL PROTECTED] Subject: [R] test multiple objects for being equal length I

RE: [R] test multiple objects for being equal length

2004-12-09 Thread Liaw, Andy
Wrapping the suggestions into a function: sameLength - function(...) { + n - sapply(list(...), length) + all(n == n[1]) + } sameLength(double(1), double(2)) [1] FALSE sameLength(double(1), double(1), list(x=1)) [1] TRUE [Note that if you have lots of objects to compare,

[R] beginner questions: objects and scripts

2004-10-14 Thread Terry Mu
hi, I got some questions on using R, 1. How do I check and edit definition of an object? for example, x - 1:100 then after a while I want to check how x is defined. list(x) or whatever functions I know only list its content, but I want to see its definition, without scrolling up and down,

Re: [R] beginner questions: objects and scripts

2004-10-14 Thread Douglas Bates
Terry Mu wrote: hi, I got some questions on using R, 1. How do I check and edit definition of an object? for example, x - 1:100 then after a while I want to check how x is defined. list(x) or whatever functions I know only list its content, but I want to see its definition, without

Re: [R] beginner questions: objects and scripts

2004-10-14 Thread Duncan Murdoch
On Thu, 14 Oct 2004 07:00:01 -0700 (PDT), Terry Mu [EMAIL PROTECTED] wrote : hi, I got some questions on using R, 1. How do I check and edit definition of an object? for example, x - 1:100 then after a while I want to check how x is defined. list(x) or whatever functions I know only list

Re: [R] beginner questions: objects and scripts

2004-10-14 Thread Mike Prager
[...]How to save my work in current session as a nice script? again, I want to save objects as they are defined, not numbers, other than copy / paste. I tried dump(), etc. In another word, how do you work with R?[...] Many people use the ESS (Emacs Speaks Statistics) package for Emacs or XEmacs

Re: [R] beginner questions: objects and scripts

2004-10-14 Thread Mike Prager
At 10/14/2004 10:45 AM Thursday, you wrote: [...]How to save my work in current session as a nice script? again, I want to save objects as they are defined, not numbers, other than copy / paste. I tried dump(), etc. In another word, how do you work with R?[...] Many people use the ESS (Emacs

Re: [R] beginner questions: objects and scripts

2004-10-14 Thread Kjetil Brinchmann Halvorsen
Terry Mu wrote: hi, I got some questions on using R, 1. How do I check and edit definition of an object? for example, x - 1:100 You should'nt really redefine assignment, but something like - - function(xyz4, value) { v - deparse(substitute(value)) xname -

Re: [R] Plotting groupedData objects

2004-08-26 Thread Deepayan Sarkar
Quoting David Scott [EMAIL PROTECTED]: On Thu, 26 Aug 2004, Deepayan Sarkar wrote: Quoting David Scott [EMAIL PROTECTED]: I am trying to create a plot similar to Figure 3.2 in Bates and Pinheiro. I have repeated measurements on about 80 subjects from 2 treatment groups.

Re: [R] Plotting groupedData objects

2004-08-26 Thread David Scott
On Thu, 26 Aug 2004, Deepayan Sarkar wrote: Quoting David Scott [EMAIL PROTECTED]: On Thu, 26 Aug 2004, Deepayan Sarkar wrote: Quoting David Scott [EMAIL PROTECTED]: I am trying to create a plot similar to Figure 3.2 in Bates and Pinheiro. I have repeated

Re: [R] Plotting groupedData objects

2004-08-26 Thread Deepayan Sarkar
Quoting David Scott [EMAIL PROTECTED]: I am trying to create a plot similar to Figure 3.2 in Bates and Pinheiro. I have repeated measurements on about 80 subjects from 2 treatment groups. I would like to have the panels for the two treatment groups in separate groups and within those

Re: [R] Plotting groupedData objects

2004-08-26 Thread David Scott
On Thu, 26 Aug 2004, Deepayan Sarkar wrote: Quoting David Scott [EMAIL PROTECTED]: I am trying to create a plot similar to Figure 3.2 in Bates and Pinheiro. I have repeated measurements on about 80 subjects from 2 treatment groups. I would like to have the panels for the two

[R] Plotting groupedData objects

2004-08-25 Thread David Scott
I am trying to create a plot similar to Figure 3.2 in Bates and Pinheiro. I have repeated measurements on about 80 subjects from 2 treatment groups. I would like to have the panels for the two treatment groups in separate groups and within those groups have the panels ordered on maximum value

[R] modes of objects

2004-05-27 Thread Laura Holt
Hi R People: I am looking for some objects: objects(pat=f) [1] dufus f f1 fake.df ff fm1 one.df one1.df x.dfxf mode(objects(pat=f)) [1] character I would like to determine the mode of these objects. For instance, dufus and f are functions, while fake.df and one.df

Re: [R] modes of objects

2004-05-27 Thread Berton Gunter
sapply(ls(), function(x)mode(get(x))) Cheers, Bert Laura Holt wrote: Hi R People: I am looking for some objects: objects(pat=f) [1] dufus f f1 fake.df ff fm1 one.df one1.df x.dfxf mode(objects(pat=f)) [1] character I would like to determine the mode of

[R] Fw: add objects to svm plot

2004-05-17 Thread Sean Davis
Reposting to the group for input Thanks for any help you can provide. Sean - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, May 17, 2004 4:22 AM Subject: add objects to svm plot at 06.38 14/05/2004 -0400, you wrote: It might be helpful if you

Re: [R] how add objects to an svm graphic

2004-05-15 Thread ale . ambrosi
Hi all, First of all thanks for the answers. I'd like to add some objects to a plot.svm graphic. To give a more precise idea here I make a simple example. First I train a SVM. m.svm - svm(status~., data = dati.svm, kernel=radial, cross=20, scale=TRUE ) Then I generates a

[R] how add objects to an svm graphic

2004-05-14 Thread ale . ambrosi
Dear all, I'm not able to solve easily the following simple problem. I really hope someone can give me some hints. I trained an svm (e1071). Now I'd like to show the results graphically. I used plot.svm and I'd like to add some other objects to the plot: points, (coloured) ellipses to indicate

RE: [R] how add objects to an svm graphic

2004-05-14 Thread Liaw, Andy
You probably won't be able to do that without modifying plot.svm(). It calls filled.contour() like this: filled.contour(xr, yr, matrix(as.numeric(preds), nr = length(xr), byrow = TRUE), plot.axes = { axis(1) axis(2)

sorry (was Re: [R] copying R objects in C)

2004-05-06 Thread Tamas Papp
On Thu, May 06, 2004 at 04:33:02PM +0200, Tamas Papp wrote: [something utterly stupid] I somehow missed the end of the subject line. I sincerely apologize for my stupid and irrelevant answer. Tamas -- Tamás K. Papp E-mail: [EMAIL PROTECTED] Please try to send only (latin-2) plain text, not

Re: [R] copying R objects in C

2004-05-06 Thread Tamas Papp
You can tell what a function does by looking at its help page, eg: ?duplicate There is no such function in R (1.9.0), so I don't see how you came across that function name. R performs a deep copy on demand, and generally you should not worry about this, just use the assignment operator -.

Re: [R] copying R objects in C

2004-05-06 Thread Prof Brian Ripley
On Thu, 6 May 2004, Tamas Papp wrote: You can tell what a function does by looking at its help page, eg: ?duplicate There is no such function in R (1.9.0), so I don't see how you came across that function name. It's a C function (see the subject line), except that the external symbol

Re: [R] copying R objects in C

2004-05-06 Thread Thomas Lumley
On Thu, 6 May 2004, Tamas Papp wrote: You can tell what a function does by looking at its help page, eg: ?duplicate There is no such function in R (1.9.0), so I don't see how you came across that function name. R performs a deep copy on demand, and generally you should not worry about

Re: [R] copying R objects in C

2004-05-06 Thread Roger D. Peng
The source for `duplicate' and its usage in the R source seems to imply that it copies objects in general. I've never used it though, so my $0.02 has been devalued. -roger Csardi Gabor wrote: answer to myself: the 'duplicate' function does this, am I right? It seems so Gabor On Thu, May 06,

Re: [R] copying R objects in C

2004-05-05 Thread Csardi Gabor
answer to myself: the 'duplicate' function does this, am I right? It seems so Gabor On Thu, May 06, 2004 at 02:18:19AM +0200, Csardi Gabor wrote: Dear R Users, do you know a way to copy an R object using C code? I know that there is a copyMatrix and also a copyVector function. There is

[R] Handling R Objects in C

2004-02-26 Thread pascal dessaux
Hello I want to handle R from a C/C++ project developped with Microsoft Visual C++.Net I put a multiproject solution,and one project is a win32 and dedicated for R manipulation; When I put in this project the example code from Written R extension 4.7 Handling R objects in C p39: #include R.h

Re: [R] Handling R Objects in C

2004-02-26 Thread Prof Brian Ripley
extension 4.7 Handling R objects in C p39: (Note: page numbers are useless as they depend on the page size you used when producing the manual.) #include R.h #include Rdefines.h SEXP ab; PROTECT(ab=NEW_NUMERIC(2)) ; I got an unresolved external in the link, because I don't know what I

[R] reference to objects

2004-01-16 Thread Giampiero Salvi
Hi, is there a way to reference to a data object without copying it? For example I have a huge matrix called dist and I want two objects obj1 and obj2 to have a memeber dist that points to the matrix, but I don't want, for memory reasons, to copy the matrix twice. As far as I understand the

Re: [R] reference to objects

2004-01-16 Thread Eric Lecoutre
Hi, You will find some pieces of information about the way to handle such things at: http://www.maths.lth.se/help/R/ Programming with references Note that you will have to download and install the package developped by the author, Henrik Bengtsson HTH, Eric At 14:22 16/01/2004, Giampiero

Re: [R] reference to objects

2004-01-16 Thread Giampiero Salvi
] cc: Sent by: Subject: [R] reference to objects [EMAIL PROTECTED] ath.ethz.ch 01/16/2004 08:22 Hi, is there a way to reference to a data object without copying

Re: [R] reference to objects

2004-01-16 Thread Giampiero Salvi
Thank you, I'll read the documentation... Giampiero On Fri, 16 Jan 2004, Eric Lecoutre wrote: Hi, You will find some pieces of information about the way to handle such things at: http://www.maths.lth.se/help/R/ Programming with references Note that you will have to download and install

Re: [R] with for objects

2003-12-04 Thread Hadley Wickham
Hi Gavin, Thanks for your suggestion - it wasn't quite what I wanted, but at least it got me thinking in the right direction. I realised I didn't really need automatic access to all the slots/methods of a function, just to some I used commonly. So I wrote a function that generates a list

Re: [R] with for objects

2003-12-02 Thread Gavin Simpson
Hadley Wickham wrote: Yes, that is a (big) problem. What do you suggest as an alternative? I am experimenting visualising microarray data using trellis. I end up with a whole lot of calls like xyplot(maA(swirl[,1]) ~ maM(swirl[,1]) | maPrintTip(swirl[,1])) and then if I want to plot the same

  1   2   >