search for: zann

Displaying 6 results from an estimated 6 matches for "zann".

Did you mean: yann
2008 Dec 16
8
sliding window over a large vector
Hi all, I have a very large binary vector, I wish to calculate the number of 1's over sliding windows. this is my very slow function slide<-function(seq,window){ n<-length(seq)-window tot<-c() tot[1]<-sum(seq[1:window]) for (i in 2:n) { tot[i]<- tot[i-1]-seq[i-1]+seq[i] } return(tot) } this works well for for reasonably sized vectors. Does
2008 Dec 24
2
Using 'cat' on data frame
Dear all, I have the following data frame: > raw.count Var1 Freq 1 AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA 707 2 AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAC 14 3 AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAT 3 But why when printint it using 'cat', it doesn't print the desired string "AAA" ? > cat(raw.count$Var1,
2008 Dec 24
1
selecting a subset of a matrix based on a value occurring in 5 records
Hello, >I am hoping for some advice as to how I might create a subset of a >matrix. The matrix is 176 x 3530. The rows are individual records >and the columns words. I want to create a new matrix that only >consists of words which occur in at least 5 records. For example, >if column 7 is "charges" and this only appears in 4 records/rows >this variable would not
2007 Oct 03
0
Call for participation: Comparative Methods in R Hackathon
...that the funds, as well as the space, for this event are limited, and the organizers need to balance the skills of the attendees, so not all qualified applicants can be guaranteed acceptance. The Organizing Committee From NESCent: Hilmar Lapp, Brian O'Meara, Samantha Price, Todd Vision, Amy Zanne From UC Berkeley: Steven Kembel
2007 Dec 20
2
factor manipulation: edgelist to a matrix?
Hello All, I have had considerable bad luck with attempting the following with for loops. Here is the problem: # Suppose we have a data.frame with the following data, which can be considered a type of edgelist (for those with networks backgrounds): # # V1 V2 # 1 A # 1 A # 1 B # 2 A # 3 C # 3 A # 3 C # 3 B # # I want the output of the function to produce a matrix, such that #each factor of
2009 Jul 23
1
[PATCH server] changes required for fedora rawhide inclusion.
...<)Xs9SvNbG&E|eF$8Bao1ijXyw7Sqx!HkOB7c04u>$aj(l6a}mV zpZWJ5vx~-jJ5pk~Z!8Lbd6Pn7Rjq`HgQ)~r->0i9_DU_|p{tnqzgw37G^bfAQ-x1l z$uz!O98Nf{QpwgM#G+>MOuCxu6^94_A&^7t`gMzjqYP!pDCgq1BKpw82`i;EDf_qX zf&6YC9Zf3voABE**zD?ZpBoFA!e`NH113`9PD5W?j^#w<nrNmnq1DAO(;s6bb)P_C z%@Y9Q>~|4J^wjL~-zaNN?L%w-AXvXX;mXr=yO!(~RrSNYk3p5o5~g1_s at kRcie?~K z3eaiIiNu0$%%;2U!>4e*msMWWdRLf`PLT<2Nv8ebs4=?K=c>j}8|PHsF@;WiLU^Q9 z7g+loC57|N%~mtqk{96}iXRKzKx>YpY3rhsB)6XP;X;k>fmB%*@aW|Od5GP)be64_ zi$Q*!Tj+LdKX43AKIPub3QsPttBE?js=R^>i@!P+z(v|i_yvd6P%YmXP!DM(UU0=W zsCFSPRR7YotUF`8sWgbzOw6R43`*rHK...