search for: matb

Displaying 11 results from an estimated 11 matches for "matb".

Did you mean: mat
2006 Mar 15
7
matrix indexing
Can someone please give me a pointer here. I have two matrices matA A B C 1 5 2 4 2 2 4 3 3 1 2 4 matB A B C 1 TRUE FALSE TRUE 2 FALSE TRUE TRUE 3 FALSE FALSE FALSE how do I extract all the values from matA where the coresponding entry in matB == TRUE (or FALSE), perferably in vector form. Many thanks tom
2013 Jan 02
2
In which column and in which row a number is in a matrix
...h row a number is allocated. But, when we use the function "which" it returns the position of the number in the "vector representation of the matrix". For example: > mata<-matrix(2:7,nrow=2,ncol=3) > mata [,1] [,2] [,3] [1,] 2 4 6 [2,] 3 5 7 > matb<-matrix(2:7,nrow=3,ncol=2) > matb [,1] [,2] [1,] 2 5 [2,] 3 6 [3,] 4 7 > which(mata==4) [1] 3 > which(matb==4) [1] 3 The function "which" returns the position "3" for both, mata and matb, but If I didn't know that mata is a 2x3 matrix and...
2009 Apr 26
4
comparing matrices
I'm trying to compare two matrices made up of bits. doing a simple comparison of matA == matB yields this sort of output. [,1] [,2] [,3] [,4] [,5] [,6] [1,] FALSE TRUE FALSE TRUE TRUE FALSE [2,] TRUE TRUE TRUE TRUE TRUE TRUE [3,] FALSE TRUE FALSE FALSE FALSE TRUE [4,] FALSE TRUE TRUE FALSE FALSE FALSE [5,] TRUE TRUE TRUE TRUE FALSE FALSE [6,] TRUE TRUE TRUE TRUE...
2012 Dec 02
1
overlapping graphs in logarithmic y-axis
dear useRs, i want to overlap graphs of two matrices in such a way that the y-axis of graph should be "logarithmic" against normal x-axis. i am, unsuccessfully, trying the followings >matplot(mata, log="mata",type = "l", col="red)>lines(mata, log="matb",type = "l", col="yellow") could you please help me out on it?? thanks in advanceregards eliza [[alternative HTML version deleted]]
2009 Jun 20
1
how to apply the dummy coding rule in a dataframe with complete factor levels to another dataframe with incomplete factor levels?
...;,'bb','cc'))) dfB =data.frame(f1=factor(c('a','b','b')), f2=factor(c('aa','bb','bb'))) #dfB's factor variables have less number of levels #use model.matrix on dfA (matA<-model.matrix(~f1+f2,data=dfA)) #use model.matrix on dfB (matB<-model.matrix(~f1+f2,data=dfB)) #I actaully like to dummy code dfB using the dummy coding rule defined in model.matrix(~f1+f2,data=dfA)) #matB_wanted is below (matB_wanted<-rbind(c(1,0,0,0,0),c(1,1,0,1,0),c(1,1,0,1,0)) ) colnames(matB_wanted)<-colnames(matA) matB_wanted Can someone kindly...
2008 Dec 10
1
Error: protect () : protection stack overflow
I am attempting to create a formula using as.formula for a PLS analysis. I have used the code below successfully, but in a previous R version and with many fewer predictors. Any help getting all of these predictors into one formula would be greatly appreciated. TC.fmla <- as.formula(paste("TC ~ ", paste(vars, collapse= "+"))) As I mentioned, this code worked fine in a
2012 Nov 12
1
where is libvirt-python document??
Hi libvirt users: Who can tell me where is the fucking doc? I want to use libvirt-python in my project.But I can't found the doc. I only found "TBD" in http://libvirt.org/guide/html/Application_Development_Guide-Language_Bindings.html Did I miss something? Thanks. -- ???: http://www.xuanmingyi.com -------------- next part -------------- An HTML attachment was scrubbed... URL:
2004 Jun 10
6
Shaping incoming traffic on the other interface
...r i meant. Anybody has ideas/suggestions/comments? As an alternative, it would be a pretty good solution to tell the polishing filter to discard only packets where the source port is !22. But i''d rather stay away of a ingress policer, because i had problems with it. Thanks in advance, MatB _______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
2002 Feb 14
2
changing macintosh type and creator codes
Anytime a PC on our network copies a file to our server and a macintosh client goes to view that file, the type and creator codes are incorrect. We are running Samba for Windows clients and Xinet KA-Share for Mac clients. I think it has something to do with the resource forks. I can copy a file to the server from a Mac then copy the file from the server to a windows machine and back again
2009 Sep 23
4
save txt file
Hi, I have 2 questions: Question 1: I define 2 variables: "a", "b": > a<-rbinom(4,10,0.8) output: [1] 9 7 8 8 > b<-rbinom(2,6,0.7) output: [1] 4 5 if I write: > write.table(a, file = "filename", etc. etc. .... ) it save only the values of variable "a". There is a way to save in a .txt file the values "a" and "b" as
2011 Sep 12
3
Sieve envelope :detail "to" "extention" does not deliver to fileinto destination
Dear Listmember. I resend this with different Subject so that the spamfilter does not drop the mail, I hope ;-) I try to migrate from my current courier-mta setup fo postfix dovecot setup. I use the following scirpt to filter to the destination mailbox. ### /var/vmail/none.at/al/.dovecot.sieve # from http://wiki.dovecot.org/LDA/Sieve require ["fileinto", "envelope",