similar to: assign value to slot of S4 object

Displaying 20 results from an estimated 9000 matches similar to: "assign value to slot of S4 object"

2003 Mar 08
3
where is kurtosis??
Dear friends, I try to get started with R and can’t estimate kurtosis of a random sample by using one command. I have installed R 1.6.2. Please help. Max --------------------------------- ur needs [[alternate HTML version deleted]]
2003 Mar 26
3
hist overlay...
thanks to all for the 2d scatter plot. i have one more. how do i plot 'hist(y1, col="red") and hist(y2,col="blue") in the same window? thanks again.
2003 Sep 05
1
namespaces and S4 methods/classes
The current version of the methods package now has a namespace. Packages using S4 methods and classes can have NAMESPACE files. New directives can be included in NAMESPACE files to import and export classes and methods. Namespaces allow cleaner definition of the API for packages, and are needed for future improvements to R. NOTE: This is a major revision. In principle, it should be back
2003 Apr 22
3
lexical scope
Hi everyone another documented feature that was a bit unexpected for me: R> x <- 19 R> f <- function(t){t+x} R> f(100) [1] 119 --as expected: x is visible from within f() ..but... R> g <- function(a){x <- 1e99 ; return(f(a))} R> g(4) [1] 23 --the "x" that is visible from within g() is just 19, which is not the one I expected it to find. R> rm(x)
2003 Sep 25
1
PlotMoth Refusing to Draw xlab
Occasionally I have had plotmath refuse to draw x-axis labels. This has happened when the label, created using expression(paste( ) ) as below, could be drawn easily in the available space. I have not reproduced that, but the following example with a clearly overly long label results in no xlab at all. I hoped that at least a truncated label would be plotted. This is probably related to my
2003 Sep 18
2
hist will not use parameter xaxs (PR#4219)
Full_Name: Mark Wall Version: 1.6.0 OS: linux Submission from: (NULL) (63.251.119.254) I want to plot a histogram of a *subset* of some data: >t = c(0:9) >hist(t,right=FALSE,breaks=10,xlim=c(0,5),xaxs="i") This means I should plot a histogram from 0 to 5 with breaks at 1,2,3,4. This should produce exactly 5 bars of frequency=1. Instead I get 5 and 1/4 bars. I do not want the
2003 Mar 06
2
Error in terms.default()
R-list -- I am working with some SPlus code and get the following error Error in terms.default(formula, data = data) : no terms component Can someone point me to a fix? The pasted formula looks ok when printed during the procedure. Thanks, Dan =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= Daniel A. Powers, Ph.D. Associate Professor of Sociology University of Texas at Austin
2003 Oct 02
3
indexing a vector
Dear All: I'd like to know how to sort and then index a vector of floats by several levels in R. For example >x<-rnorm(100) > MyLevels<-quantile(x,probs=c(0,.5,1)) > MyLevels 0% 50% 100% -2.11978442 -0.03770613 2.00186397 next i want to replace each x[i] in x by 1,2,3 or 4 depending on which quantile that x[i] falls. How do I do that in a
2003 Sep 29
2
parametric surfaces
Hi, does anyone know how to plot 3D parametric surface,e.g ellipsoid: x=a*cos(s)*cos(t), y=b*sin(s)*cos(t), z=sin(t); s in [0,2*pi], t in [-pi,pi]. Vytautas Maniusis, Vilnius University, Lithuania
2003 Feb 19
2
plotmath
There's something (probably a lot) missing in my understanding of plotmath. The LaTeX code for what I'm trying to produce is \log(-\log(\hat R)) My (probably hopeless) attempt at it uses nested group()s: expression(plain(log) * group("(", -plain(log)*group("(", \hat(R), ")"), ")")) Can anyone do it right for me, please? Thanks, Ted. Dr E.A.
2004 May 19
3
greek letters in plots
Hi, I want to write in x axis label "fitted value of lambda" (lambda in greek letter). xlab=expression(lambda) gives the "lambda", I tryed things like xlab=paste ("fitted value of ", expression(lambda)) but I didn't get the greek letter. Thanks in advance for any hint. Antonio Olinto ------------------------------------------------- WebMail Bignet - O seu
2004 May 11
2
How to draw holes generated by gpclib using plot function
Hi. I've tried to create a polygon with one hole by gpclib using following example script. holepoly <- read.polyfile(system.file("poly-ex/hole-poly.txt", package ="gpclib"), nohole = FALSE) area.poly(holepoly) plot(holepoly,poly.args=list(col="red",border="blue")) And I noticed plot function couldn't draw polygons with holes correctly.
2003 Apr 07
3
graphic question
Hi, I want to use R for some data mining project , and was wondering if it has any intercative graphical features? For example, is it possible to plot a histogram and be able to select a specific point on it and have all the data about it? or select a specific area in a curve and have all the data about it? or possibilities to zoom out and in? Thank you for your help, Mama Benchaffai School of
2003 Jul 31
6
how to make a plot without any axis-labeling
Hi. I got a problem, perhaps someone can help me....... every time, when I want to plot data, both axis are labeled by default like data[1,] and data[2,] how can I make a plot without ANY labeling? does anyone know that? thanks for helping Michael [[alternative HTML version deleted]]
2003 Feb 24
5
exact range of axes in plots
Hello. I was wondering how one can find the exact values of the range of an axis within a plot. In xlispstat it was (send plot :range 0). Thanks much, Jason
2003 Oct 23
2
GIS re-mapping / polygon overlap
In Germany the Unemployment Agency uses a sectioning of the german map that is different from the usual Administrative Boundaries. Some demographic data are available in Administrative Boundaries only, some in Unemployment Boundaries only. I would like to generate estimates in one boundary system of data availabe in the other boundary system, and would appreciate advice concerning the following
2003 Apr 23
3
Changing the size of the bounding box
Greetings all: I have to create a graph that has very specific dimensions for publication purposes. The graph is a semilog scaled graph and the axes must range from 1 to 1,000,000 on the y axis and 0 to 100 on the x axis. The x axis should be exactly 8 inches and the y axis should be exactly 5.25 inches. I've been able to set the plot area to 8 x 5.25 using the par(pin=c(8,5.25)). The
2003 Dec 05
3
.C() memory allocation
I would like to retrieve a vector of integers from a call to .C(), but I don't know its length in advance. How do I do this without making an ugly safe guess? My vector is called "sequences". I am passing the argument sequences = integer(0) in the call to .C(), then declaring the corresponding argument as int *sequences in my C code. I tried R_alloc()ing the storage in C and
2003 Jun 19
3
acf inherits problem
I think this is a bug, but perhap someone could confirm that it is not just me doing something stupid. (I vaguely recall something like this previously getting fixed in 1.7.0.) R : Copyright 2003, The R Development Core Team Version 1.7.1 (2003-06-16) > z <-matrix(rnorm(100), 100,1) > acf(as.ts(z), type="partial") Error in inherits(x, "ts") : evaluation is nested
2001 May 10
3
lookup function for density(...) objects
Hi folks: Is there a lookup function that returns the variate given the cumulative probability for an object returned by the density(...) function? > mydata _ as.vector(mymatrix) > mydata.density _ density(mydata) > mydata.p80 _ lookup(mydata.density, p=0.8) # is there any function to accomplish this task? Thanks. Rajiv. -------- Rajiv Prasad, Postdoctoral Research Associate,