similar to: how to divide a string into characters? - for comparing strings that is

Displaying 20 results from an estimated 10000 matches similar to: "how to divide a string into characters? - for comparing strings that is"

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
2010 Aug 24
2
Comparing/diffing strings
Hi all, all.equal is generally very useful when you want to find the differences between two objects. It breaks down however, when you have two long strings to compare: > all.equal(a, b) [1] "1 string mismatch" Does any one know of any good text diffing tools implemented in R? Thanks, Hadley -- Assistant Professor / Dobelman Family Junior Chair Department of Statistics / Rice
2001 May 29
3
geary statistics
Hello, i' m looking for a function to compute geary statistic for spatial correlation. Thanks. -- St?phane DRAY --------------------------------------------------------------- Biom?trie et Biologie ?volutive - Equipe "?cologie Statistique" Universite Lyon 1 - Bat 711 - 69622 Villeurbanne CEDEX - France Tel : 04 72 43 27 56 Fax : 04 78 89 27 19 04 72 43 27 57 E-mail
2002 Jul 18
2
RODBC and Excel Files
Hello, I am trying to play with RODBC library and Excel Files. In my file (doubs.xls) there are 2 spreadsheets: > library(RODBC) > connection<-odbcConnect("Excel Files") > sqlTables(connection) TABLE_CAT TABLE_SCHEM TABLE_NAME TABLE_TYPE REMARKS 1 F:\\Th?se\\R\\Doubs NA Faune$ SYSTEM TABLE NA 2 F:\\Th?se\\R\\Doubs NA Milieu$
2010 Jan 09
4
parsing pdf files
I have a pdf file that I would like to parse into R: http://www.williams.edu/Registrar/geninfo/faculty.pdf For now, I open the file in Acrobat by hand, then save it "as text" and then use readLines(). That works fine but a) I am concerned that some information may be lost and b) I may be doing this a lot, so I would rather have R grab the information from the pdf file directly. So: is
2008 Oct 15
3
Removing characters and periods from character strings
Hello R-users, I have code that gives me the important variables from an analysis. I need to input these variables into a different analysis. To do this, I need to modify them slightly... 1) remove all numbers at the end of the variables, 2) remove all periods. I tried to do it with the awkward code below. It works to remove all the numbers, but when I try to remove the period everything
2017 Oct 13
1
comparing two strings from data
Combining and completing the advice from Greg and Boris the complete solution is two lines: data_2 <- read.csv("excel_data.csv", stringsAsFactors = FALSE) match_list <- match( data_2$data1, data_2$data2 ) The vector match_list will have the matching position when it exists and NA's otherwise. Its length will be the same as the length of data_2$data1. You should get
2005 Oct 21
2
Commercial license?
Hi there Is there a commercial license for using Rsync or the Rsync algorithm within a commercial product? I appreciate that Rsync as it stands is GNU and therefore it cannot be used in this way, but I thought that I would ask the list. I understand that it is open source, but we have an application that would benefit from something like Rsync and therefore thought we would ask the question. If
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
2007 Aug 22
2
[OT] IAX2 WiFi phone?
Does such a beastie exist? I've tried a couple of UT Starcom WiFi SIP phones (the F1000g and F3000 respectively), and found them both to be seriously lacking - regular crashes (especially the F3000), poor battery life, and poor reception in particular. However, whilst SIP phones are great, I'd really like an IAX2 phone if there is one, as I can make that work "natively" though
2009 Jun 30
2
IAX2 help needed...
I run a phone in a remote office using the IAX2 protocol. It mostly works fine; except that every 5 mins it loses connection with Asterisk, before reconnecting 30 seconds later; rinse & repeat. Using the IAX2 debugging, I'm seeing this a lot: Tx-Frame Retry[000] -- OSeqno: 000 ISeqno: 000 Type: IAX Subclass: POKE Timestamp: 00018ms SCall: 04050 DCall: 00000
2008 Dec 04
1
Comparing survival curves with "survdiff" "strata" help
ExpeRts, I'm trying to compare three survival curves using the function "survdiff" in the survival package. Following is my code and corresponding error message. > survdiff(Surv(st_months, status) ~ strata(BOR), data=mydata) Error in survdiff(Surv(st_months, status) ~ strata(BOR), data = mydata) : No groups to test When I check the "strata" of the variable. I get .
2009 Dec 18
1
Doubts about ADE-4
Hi, I'm having some troubles in using the ADE-4 package. I want to analyze data for the Outlying Mean Index in the function 'niche'. I've got two matrixes: one for environmental data and the other for species abundance data. But to implement the analysis, as I understand it, I need to put tocheger these two matrixes in one, as in the example provided with the package. Un
2003 Jul 08
4
how to rename rows/columns of a matrix?
Hi I get a matrix with the columns named like "X13 X22 X1 X14 ...", i.e. not successively. That has it's good reasons, but now how can I rename the columns to "X1 X2 X3 ..."? Thanks a lot, David
2010 Oct 26
4
divide column in a dataframe based on a character
Hello, If I have a dataframe: example(data.frame) zz<-c("aa_bb","bb_cc","cc_dd","dd_ee","ee_ff","ff_gg","gg_hh","ii_jj","jj_kk","kk_ll") ddd <- cbind(dd, group = zz) and I want to divide the column named group by the "_", how would I do this? so instead of the first row being x
2005 Aug 24
2
FTP timout
Hi all, I have 2 CentOS 3.5 boxes & i do backups on the LAN Recently, I always get FTP timout error with large files "700 MB and more" . i tried to log and do manual backup with FTP command and i also got the same result "FTP timeout" i tried to google and i did # modprobe ip_conntrack_ftp but still get the same timeout message Any one can help??? Hameed
2003 Jul 08
7
rbind question
Hi I am trying to replicate a vector in n rows for comparison purposes with another matrix. foo <- c(1,2,3) bar <- rbind(foo,foo) # does the trick for 2 rows bar <- rbind(rep(foo,2)) # does something else How do I generate a matrix with all rows=foo without writing 'foo' n times as arg? Thanks, David
2005 Feb 11
4
config question for proxyarp hosts?
I''ve got a serious mess of NAT on our firewall/router systems at the corporate office which seems to do nothing other than confuse the heck out of people. What I''d like to do is gradually migrate the hosts on the various DMZ networks away from private IP addresses and NAT over to public IP addresses and proxyarp. What I''m wondering, before I start this, is how do I
2006 Jan 30
6
extremely slow delete/move operations?
I've been working to migrate several hundered users on to our new mail servers, which run dovecot 0.99.11 (RHEL4). The problem I'm seeing is that deleting or moving a message seems to take a very long time. It's not uncommon for Thundirbird (1.0.7) to have delays of 5-10 seconds to delete a single message from my Inbox (<500k) and place it in my Trash folder (~100MB right
2005 Sep 27
1
oH323 Voice in one direction only
I have successfully installed oH323, but when I make a call the recipient can hear me but I can't hear anything at my end, so voice is only travelling in one direction. Client Softphone (SIP) => Asterisk => H323 Gateway. All Codecs have been loaded. Any help would be appreciated. Ade. --------------------------------- To help you stay safe and secure online, we've