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?
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
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
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
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
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
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,
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
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
: [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
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
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
-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
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)
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)
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
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
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]]
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
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
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
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
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
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
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
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
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
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
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
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
(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
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
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
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
))
[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
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]]
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
]
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
-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
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)
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
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
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
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
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
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.
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
'.
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
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
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
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
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
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
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
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:
-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
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
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)
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
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
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
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
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
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
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
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:
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
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
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,
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,
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
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
[...]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
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
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 -
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.
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
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
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
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
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
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
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
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
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
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)
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
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 -.
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
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
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,
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
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
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
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
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
]
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
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
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
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 - 100 of 111 matches
Mail list logo