Hi!
In a function, I may have an instance in which all elements are equal.
x - rep(1,5)
x
[1] 1 1 1 1 1
identical(x)
Error in .Internal(identical(x, y, num.eq, single.NA, attrib.as.set)) :
'y' is missing
all.equal(x)
Error in is.expression(x) : 'x' is missing
I don't care what
Hi!
I was wondering if PERT or CPM was implemented in R.
I looked in the search engines but didn't find anything.
Since there are so many packages, I thought I'd double check via the
discussion.
Thanks,
Laura.
[[alternative HTML version deleted]]
Hello:
Here are some basic class items:
x - 1:10
class(x)
[1] integer
x.mat - matrix(1:6,nrow=2)
class(x.mat)
[1] matrix
class(x3)
[1] logical
test - function() { plot(1:10) }
class(test)
[1] function
Is there something that says vector, please? Or does it go to numeric,
logical, or
Hi
I'm trying to learn about S4 methods, classes, etc.
Is it better to use initialize or use a construction function, please?
Thank you.
Laura Smith
[[alternative HTML version deleted]]
__
R-help@r-project.org mailing list
https
Hi again List:
This time I have the following:
setClass(dog,representation(breed=numeric))
[1] dog
woof - function(x=1:10) {
+ if(!is.numeric(x))stop(Must have numeric data)
+ y - new(dog,breed=x)
+ return(y)
+ }
setMethod(plot,dog,
+ function(x,y,...) {
+ plot(x@breed,col=blue,type=l)
+ }
+ )
Hi List!
Suppose I have the following, please:
setClass(buzz,representation(x=numeric),S3methods=TRUE)
[1] buzz
x - rnorm(10)
class(x) - buzz
plot.buzz - function(x,y,...) {
+ plot.default(x,type=l,col=blue)
+ }
f - function(x) {
+ return(x^2)
+ }
Hi!
Here is a newbie question, please: what is the difference between a generic
and a method?
Thanks,
Laura
[[alternative HTML version deleted]]
__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read
Hi!
Does anyone have a numeric example for calculating BLUE and BLUP, please?
Thanks,
Laura
[[alternative HTML version deleted]]
__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide
Hi!
Here is some output from an str command:
str(CO2)
Classes nfnGroupedData, nfGroupedData, groupedData and
'data.frame': 84 obs. of 5 variables:
$ Plant: Ord.factor w/ 12 levels Qn1Qn2Qn3..: 1 1 1 1 1 1 1 2
2 2 ...
$ Type : Factor w/ 2 levels Quebec,Mississippi: 1 1 1 1
9 matches
Mail list logo