search for: abd

Displaying 20 results from an estimated 102 matches for "abd".

Did you mean: abc
2010 Jul 15
1
Proper use of grep
I just need to confirm something with pattern matching folks. I have a factor with the following levels in a very large data set: > levels(all$Classical.Statistic) [1] "" "AB;ABD" "CollapsedSteps" "CR_P" "CR_Prop;CR_P;AB" [6] "NMK" "NMK;P" "NMK;P;ABD" "P" "ABD" [11] "...
2006 May 09
3
remove Punctuation characters
Hi, I want to remove all punctuation characters in a string. I was trying it use a regular expressions but it doesn't work. Here is a sample os what i want: str <- 'ABD - remove de punct, and dot characters.' str <- gsub('[:punct:]','',str) str "'ABD remove de punct and dot characters" is there any function that do this kind of thing? Thanks to all. Filipe Almeida [[alternative HTML version deleted]]
2010 Aug 04
6
applying strsplit to a whole column
I am sorry, I'd like to split my column ("names") such that all the beginning of a string ("X..") is gone and only the rest of the text is left. x<-data.frame(names=c("X..aba","X..abb","X..abc","X..abd")) x$names<-as.character(x$names) (x) str(x) Can't figure out how to apply strsplit in this situation - without using a loop. I hope it's possible to do it without a loop - is it? Thanks a lot! -- Dimitri Liakhovitski Ninah Consulting www.ninah.com
2007 Jul 23
0
Problem w/ MySQL update from perl AGI script
...quot;; $dbh = DBI->connect($dsn,username,password); $drh = DBI->install_driver("mysql"); $AGI = new Asterisk::AGI; my %input = $AGI->ReadParse(); my $ANI = $input{'CALLERIDNUM'}; my $TIMESTAMP = $input{'TIMESTAMP'}; $AGI->answer(); $AGI->stream_file('ABdeli-greeting'); $AGI->stream_file('ABdeli-instructions'); my $Q1 = $AGI->get_data('ABdeli-q1', 5000, 1); my $Q2 = $AGI->get_data('ABdeli-q2', 5000, 1); my $Q3 = $AGI->get_data('ABdeli-q3', 5000, 1); my $Q4 = $AGI->get_data('ABdeli-q4', 5000,...
2005 Nov 09
2
Sort a dataframe
Dear All, How can I sort a data frame (using one of the column)? Thanks for your support. Regards. Abd. Rahman Kassim (PhD) Head Forest Ecology Branch Forest Management & Ecology Program Forestry and Conservation Division Forest Research Institute Malaysia Kepong 52109 Selangor, Malaysia ***************************************** Checked by TrendMicro Interscan Messaging Security. For any enqui...
2005 Nov 10
2
polynomials transformation
Dear All, Need some help in polynomials transformation to get the coefficients. I have tried "poly.transform" as applied in S-plus but it does not work. Thanks in advanced for any helps. Regards. Abd. Rahman Kassim (PhD) Head Forest Ecology Branch Forest Management & Ecology Program Forestry and Conservation Division Forest Research Institute Malaysia Kepong 52109 Selangor, Malaysia ***************************************** Checked by TrendMicro Interscan Messaging Security. For any enqui...
2006 Jan 19
2
Legend Outside Plot Dimension
Dear All, I'm trying to attach a legend outside the plot (Inside plot OK), but failed. Any help is very much appreciated. Thanks. Abd. Rahman Kassim, PhD Forest Management & Ecology Program Forestry & Conservation Division Forest Research Institute Malaysia Kepong 52109 Selangor MALAYSIA ***************************************** Checked by TrendMicro Interscan Messaging Security. For any enquiries, please contact FRIM I...
2003 Jul 17
3
how to divide a string into characters? - for comparing strings that is
...uot; -> c("A","B","C"). How can this be accomplished? I tried cut() and split(), but they do something else, it seems. The purpose for doing this is to find the number of common (and uncommon) characters, i.e. ultimately I want something like this: > foo("ABD","ADE") c(2,1) # 2 in x are in y, 1 in y is not in x > foo("AB","ADE") c(1,2) # 1 in x is in y, 2 in y are not in x Maybe I even do not need the string splitting? I hope I was clear in stating my problem. Thank you for your valuable input, David
2012 May 30
2
Sorting a data set
I am a novice user of R and am stumbling on how to order a dataset produced during my session. I have a 1863 row X 14 column dataset that I want to put out to a file. I want the output sorted by the first column and then by the second column both in ascending order. The first column is character and the second is numeric (I hope). I used an "as.numeric" function to assign that
2009 Jun 29
1
difference between --no-implied-dir abd --keep-dirlinks ?
Hi, I have gone through the rsync documentation and also tested same both --no-implied-dir and --keep-dirlinks options. My question is what is the difference between these options in below scenario? I have /foo/bar is the symlink to /foo/baz at source and same directory structure with symlink is there at destination. When I sync the data from /foo/bar/* with --relative option specified, I am
2006 Feb 13
2
Plotting contour & filled.contour in one graph
...did not overlap well on the same plots. How can I have both filled.contour and contour on the same graph? The commands that I have written are as follows: filled.contour(0:15,0:10,t(matrix(Total.C,nrow=11,ncol=16))) contour(0:15,0:10,as.matrix(elev),add=T) Thanks for anay assistance. Regards. Abd Rahman Kassim Forest Research Institute Malaysia Kepong 52109 Selangor, MALAYSIA ***************************************** ***************************************** [[alternative HTML version deleted]]
2006 Mar 29
2
write.table command
...own below: > write.table(soil.dat,file="C:/soil.rdata") > load("C:/soil.rdata") Error: bad restore file magic number (file may be corrupted)-- no data loaded I can figure out the error message. Any assistance to solve the problem is very much appreciated. Regards. Abd. Rahman Kassim, PhD Forest Management & Ecology Program Forestry & Conservation Division Forest Research Institute Malaysia Kepong 52109 Selangor Malaysia Fax: 603-62729852 Tel: 603-62797179 ***************************************** ***************************************** [[alterna...
2015 Jun 16
4
Ayuda boxplot ggplot2
Hola a todos Me gustaría saber si me pueden ayudar con lo siguiente. Realicé un Boxplot usando ggplot2 para visualizar el comportamiento de dos variables. Visualmente no se notan las diferencias porque la gráfica de la derecha (parásitos en el abdomen) llega hasta 20 en el eje y. ¿Cómo puedo hacer para que las dos gráficas muestren la misma escala en el eje Y, es decir, que las dos lleguen a 60? Adjunto el boxplot y a continuación el código que usé para producirlo. vplayout <- function(x, y) viewport(layout.pos.row = x, layout.pos.col =...
2006 May 11
1
[Globalize] Enhancement - zip code regexes for each country
Was just playing around with trying to sort out validation of zip/postcodes depending on what country the user lived in, and was wondering if anyone has done this in a nice way? Seems to me that it would be a relatively simple addition to Globalize to add a regex for zip code validation to the things already in there? Or am I missing a trick? Thanks geoff -------------- next part --------------
2007 Sep 06
3
WINE
I have downloaded Ububtu abd used Add/Remove to install Wine. I can not get it to work. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.winehq.org/pipermail/wine-users/attachments/20070906/86803328/attachment.htm
2011 Apr 02
3
Plotting MDS (multidimensional scaling)
...1", ylab="Coordinate 2", main="Metric MDS",type="n") text(fit1$points, labels = c('A','B','C'), cex=1) So far so good, until I add more points. Now assume, I add a fourth point D at {0,2*sqrt(3)}. This produces the rectangular triangle ABD with hypothenuse BD that encompasses the smaller triangle ABC such that C lies in the middle between B and D. Then, MDS should reproduce the rectangular triangle ABD and the equilateral triangle ABC within it. However, even though distance matrix d2 below still indicates that ABC is an equilateral...
2009 Mar 11
1
matrix multiplication, tensor product, block-diagonal and fast computation
...3, as.data.frame) Adf1 <- lapply(X=Adf0, FUN=as.matrix, nrow=4, ncol=4) M3 <- mapply(FUN="%*%", Adf1, as.data.frame(M)) # fourth solution (often too large block-diagonal matrix) Alist <- NULL for(i in 1:3){ # better way to create such list for bdiag Alist[[i]] <- A[,,i] } Abd <- bdiag(Alist) M4 <- matrix(as.matrix(Abd %*% c(M)), nrow=4, ncol=3) ---------- This mail has been sent through the MPI for Demographic ...{{dropped:10}}
2010 Aug 05
2
try-error within for loop
...][[5]][[1]]] hgenus<-mydata2$tgenus[mydata2$tspecies%in%com[[i]][[5]][[1]]] hspecies<-mydata2$tspecies[mydata2$tspecies%in%com[[i]][[5]][[1]]] hier<-cbind(hspecies,hgenus,hfamily,horder,hclass) s<-nrow(hier) s<-ifelse(s>1000,s/10,s) taxa<-taxa2dist(hier[sample(s,replace=F),]) abd<-t(cbind(c(1:s),rep(1,s))) taxdiv<-taxondiveO(abd,taxa) if(class(result)=="try-error") result[[i]] <- NA else result[[i]] <-taxdiv #it doesnt work result[[i]]<-as.data.frame(result[[i]])[1,]},silent=T) taxind<-do.call(rbind,result) taxind[1:5,] number D Dsta...
2006 Mar 17
1
Adding axis limit to log-log plot
...b="Stand density(trees per ha)",ylab="Quadratic mean dbh (cm)",ylim=c(0,50)) Error in plot.window(xlim, ylim, log, asp, ...) : Infinite axis extents [GEPretty(0,1.#INF,5)] In addition: Warning message: Nonfinite axis limits [GScale(-1.#INF,1.69897,2, .); log=1] Thanks Abd. Rahman Kassim, PhD Forest Management & Ecology Program Forestry & Conservation Division Forest Research Institute Malaysia Kepong 52109 Selangor Malaysia Fax: 603-62729852 Tel: 603-62797179 ***************************************** ***************************************** [[alterna...
2013 Nov 18
3
Sending a matrix in an email
...ould like to send this matrix using sendmailR. How can I convert this simple matrix to a format which can be used as the body variable in sendmailR? I see how I can create a file attachment using mime_part but I would like to send the matrix in the body of the email. The matrix looks like: ABD DEF GHI JKL MNO TOT [1,] 0.44 0.81 1.67 0.37 0.31 -1.18 All the conversions I have tried end up sending the matrix without the colnames. Thanks. [[alternative HTML version deleted]]