Displaying 7 results from an estimated 7 matches for "vect1".
Did you mean:
vect
2011 Mar 29
3
Reversing order of vector
Dear R helpers
Suppose I have a vector as
vect1 = as.character(c("ABC", "XYZ", "LMN", "DEF"))
> vect1
[1] "ABC" "XYZ" "LMN" "DEF"
I want to reverse the order of this vector as
vect2 = c("DEF", "LMN", "XYZ", "ABC")
Kindly...
2006 Jul 04
1
Problems when computing the 1rst derivative of mixtures of densities
...e first distribution).
To determine the maximum likelihood estimator I use the Newton-Rapdon
Iteration. But when
computing the first derivative I get a none linear function (with several
asymptotes) which is completely
absurd.
This is my function to compute the first derivative:
phy=function(teta,vect1,vect2){
return( sum(( vect2 - vect1) / (( 1 - teta) * vect1 + teta * vect2)))
}
note: vect1 and vect2 contains values of the two distributions computed
from sample previously extracted.
Beside, vect2 - vect1 is constant and ( 1 - teta) * vect1 + teta * vect2) is
linear and always defined so...
2008 Nov 18
4
How do I generate multiple (similar) objects within R?
Hi,
I wonder if anyone knows how to generate a list of objects, e.g. ten
vectors with names: vect1, vect2, ... , vect10.
My own idea was to use something like:
for (i in 1:10)
print(paste("vect", i,"<-NULL",sep=""))
but the result is:
"vect1<-NULL"
...
"vect10<-NULL"
and not
vect1<-NULL
...
vect10<-NULL
as I would lik...
2009 Nov 24
4
Method
Hello, i would like to ask you another question. Is exist anymethod to
vectors that tells me the last element?That is to say,I have a vector, I
want to return the position of last element. I hope having explained.
A greeting,
Ignacio.
--
View this message in context: http://old.nabble.com/Method-tp26493442p26493442.html
Sent from the R help mailing list archive at Nabble.com.
2010 Sep 14
4
Problems with "pdf" device using "plot" "glht" function on "multcomp" library.
...quot;Patron80g","Patron80g")),
Nitratos=c(72.40,100.50, 138.30,
178.33,79.01,74.16,
23.70, 15.80,16.20,
88.93,113.01,86.53))
pdf("plot1.pdf")
m1<-aov(Nitratos~Descripcion-1,data=Sx)
vect1<-table(Sx$Descripcion)
K<-contrMat(vect1,base=4)
dnk<-glht(m1,linfct=K)
summary(dnk)
old.par<-par(no.readonly = TRUE)
par(mai=c(1,2,1.25,1),mgp=c(3,1,0))
print(plot(dnk,las=1,xlab=""))
print(abline(v=0,lty=2))
par(old.par)
dev.off()
2008 Mar 13
3
Splitting a set of vectors in a list
...please suggest something? Thanks
Example.
mylist <- list(aa=c("cat","peach" ), bb=c("dog",
"apple", "iron"),
cc = c("rabbit", "orange", "zinc", "silk"))
myfun <- function(dff) dff[1]
vect1 <- unlist(lapply(mylist, myfun))
Looking for the perfect gift? Give the gift of Flickr!
2009 Sep 01
3
data frame
HI, R user,
I generate the vectors with the same length. I want to put each vector into each column of data frame. Why it doesnt work`?
rm<-data.frame()
for(a in 1:6){
rm[,a]<-getmeasure(p1,a,speech)
}
thanks a lot
Tammy
_________________________________________________________________
Share your memories online with anyone you want.