search for: string2

Displaying 20 results from an estimated 37 matches for "string2".

Did you mean: string
2003 Feb 21
4
Perl question
I'm working on the installer code, but I don't know Perl well enough. What is a good Perl equivalent of the R statement if ( s %in% c('string1', 'string2', 'string3') ) ... I can do it with if (s == "string1" || s == "string2" || s == "string3") ... but I've got a feeling there's a better way to do it using associative arrays. The real example will have about a dozen fixed strings that I wa...
2004 Dec 02
3
combine two strings
Hello, I would like to combine two strings while using R. For instance, string1 <- "abcde" string2 <- "WXYZ" I'd like to combine string1 and string2 into Sting3; and string3 should be "abcdeWXZY". Would you please tell me how to do it? Thank you very much Ben-Yang [[alternative HTML version deleted]]
2005 Jul 04
1
Colors in mtext
I want to assign different colors to different strings using mtext(...). However, when I use something like mtext(text=c("string1","string2","string3"), col=c("black","blue","red"), side=3, line=0) string2 and string3 are printed over string1. When I use paste("string1","string2","string3"), the series of strings are printed one over each other, but I still...
2011 May 08
3
%in% operator - NOT IN
Hello everyone, I am attempting to use the %in% operator with the ! to produce a NOT IN type of operation. Why does this not work? Suggestions? > data2[data1$char1 %in% c("string1","string2"),1]<-min(data1$x1) > data2[data1$char1 ! %in% c("string1","string2"),1]<-max(data1$x1)+1000 Error: unexpected '!' in "data2[data1$char1 !" Thanks! Dan XXXX [[alternative HTML version deleted]]
2006 Apr 04
1
Indexing a vector by a list of vectors
Hello R-help - I have vec <- c("string1", "string2", "string3") ind <- list(c(1,2),c(1,2,3)) I want "vec" indexed by each vector in the list "ind". The first element of the list I want would be vec[c(1,2)], the second element would be vec[c(1,2,3)], like the following. [[1]] [1] "string1" "stri...
2009 Jan 22
4
text vector clustering
Hi, I am a new user of R using R 2.8.1 in windows 2003. I have a csv file with single column which contain the 30,000 students names. There were typo errors while entering this student names. The actual list of names is < 1000. However we dont have that list for keyword search. I am interested in grouping/cluster these names as those which are similar letter to letter. Are there any
2003 Feb 23
0
unsubscribe
...urdoch <murdoch@stats.uwo.ca> To: r-devel@stat.math.ethz.ch Date: Fri, 21 Feb 2003 14:43:21 -0500 Subject: [Rd] Perl question I'm working on the installer code, but I don't know Perl well enough. What is a good Perl equivalent of the R statement if ( s %in% c('string1', 'string2', 'string3') ) ... I can do it with if (s == "string1" || s == "string2" || s == "string3") ... but I've got a feeling there's a better way to do it using associative arrays. The real example will have about a dozen fixed strings that I want t...
2010 Mar 27
1
string width calculation
...mily=DIFFERENTFONT) My question regards how to calculate "adj" for the second string. I tried the following (different strings here and the same font was used for both strings - even under these circumstances, it does not work correctly): > STRING1 <- "0123456789 0" > STRING2 <- " x " > pdf("GREEK.pdf", width=10, height=8) > par(mfrow=c(1,1)) > WIDTH1 <- strwidth("0123456789", cex=1, units="inches", family="", font=1) > WIDTH2 <- strwidth("0", cex=1, units="inches&q...
2003 Apr 28
1
Red Hat 9 regex symbol conflict
...REGS and BUFFER->no_sub are nonzero). */ ! extern int re_search _RE_ARGS ((struct re_pattern_buffer *buffer, const char *string, int length, int start, int range, struct re_registers *regs)); /* Like `re_search', but search in the concatenation of STRING1 and STRING2. Also, stop searching at index START + STOP. */ ! extern int re_search_2 _RE_ARGS ((struct re_pattern_buffer *buffer, const char *string1, int length1, const char *string2, int length2, int start, int range, struct re_registers *regs, int stop)); --- 473,486 ----...
2009 Jan 10
0
RMySQL CREATE TABLE error
...ery(con, temp3) <MySQLResult:(436,20,3)> 12 > query.string1 <- paste("SELECT t.timeseries_id, t.timeseries_signal FROM MyTemporaryTable1 t, MyTemporaryTable3 v WHERE t.participant = v.participant AND t.roi = v.roi AND t.voxel_id = v.voxel_id;",sep="") 13 > query.string2 <- paste("SELECT t.timeseries_id, t.timeseries_signal FROM MyTemporaryTable2 t, MyTemporaryTable3 v WHERE t.participant = v.participant AND t.roi = v.roi AND t.voxel_id = v.voxel_id;",sep="") 14 > series1 <- dbGetQuery(con, query.string1) Error in mysqlExecStatement(c...
2011 Jun 18
3
how to subtract one string from another in R
...oup Here is what i am trying to do.. but couldnt figure out how.. string<-"ABC DEFG HIJKLM NOPQ RSTUV WXY" string1<-substr(string,1,4) I want to create an R object string 2 ( following the logic shown).. R does not allow string subtraction.. any suggestions how to achieve this? string2<-string-string1 (it should now hold "DEFG HIJKLM NOPQ RSTUV WXY" I want to loop this till i reach the end of the original string.. stringn<-"WXY" Any help would be appreciated. Regards Vijayan Padmanabhan [[alternative HTML version deleted]]
2006 Jun 19
2
fuzzy search
...ople doing to find records based on fuzzy string matches? For example, if you wanted to find a Person with name "David Heinemeier Hansson" but searched using the string "Dave Hansson". Currently I am find_by_sql that calls the PostgreSQL function "levenshtein(string1, string2)" which returns results with a score indicating how close the matches are. It is OK, but nowhere good as I would hope. Any better suggestions? thanks, Jeff -- Posted via http://www.ruby-forum.com/.
2011 Nov 17
2
how to read a freetext line ?
hi everyone . Here I have a text where there are some integer and string variables.But I can not read them by readLines and scan the text is : weight ;30;130 food:2;1;12 color:white;black the first column is the names of the variables and others are the value of them. the column in different line are different. Can anyone help me ? -- TANG Jie Email: totangjie@gmail.com Tel: 0086-2154896104
2002 Jun 24
1
pointer warnings
...problem I'm getting from a Redhat 6.2 distribution. When I compile OpenSSH 3.3p1 with OpenSSL 0.9.6d gcc 2.95, glibc-2.1.3-22, I get problems with In file included from /usr/include/string.h:346, from includes.h:30, from ssh-keyscan.c:9: /usr/include/bits/string2.h: In function `__strcpy_small': and then a whole series of lines that look like: ssh-keyscan.c:790: warning: pointer of type `void *' used in arithmetic The error does not only occur in ssh-keyscan.c, but when every file is compiled. Is it safe to ignore this, or do I need to resolve...
2012 Apr 19
1
Compare String Similarity
Dear All, I need to estimate the level of similarity of two strings. For example: string1 <- c("depending","audience","research", "school"); string2 <- c("audience","push","drama","button","depending"); The words in string may occur in different order though. What function would you recommend to use to estimate similarity (e.g., levenstein, distance)? Appreciate for any advices. -Alex [[...
2019 Jan 22
3
Samba + BIND9 DLZ. DNS dosen't resolve FQDN, only short hostname
Rowland, thank You, but this removes only the NS record, but the faulty domain A records remain. How to deal with them, I don't know. They behave unlike the ordinary A records. Name=, Records=8, Children=0     SOA: serial=27, refresh=900, retry=600, expire=86400, minttl=3600, ns=blacktux.interbronz.local., email=hostmaster.interbronz.local. (flags=600000f0, serial=27, ttl=3600)     NS:
2010 Nov 05
2
segmentation fault in blazer_status().
...UPS lost: status read failed! blazer_usb[2985]: Communications with UPS re-established today i've started ups service again with attached (c)gdb session for final hunting... Program received signal SIGSEGV, Segmentation fault. __strspn_c2 (cmd=<value optimized out>) at /usr/include/bits/string2.h:1063 (gdb) up #1 blazer_status (cmd=<value optimized out>) at blazer.c:214 (gdb) p val $1 = 0x0 (gdb) p buf $5 = "(239.0\000\062\063\071.0\000\062\063\071.0\000\060\062\063\000\065\060.0\000\061\063.6\030\064\064.0\000\060\060\060\060\061\060\060\061", '\000' <rep...
2017 Oct 10
2
Cannot install igraph package
...see a lot more logs, specifically, the items before that Error > occurs. Thanks, Tom. Below, you can find more logs: --------------------- # define strdup igraph_i_strdup In file included from /usr/include/string.h:634:0, from src/foreign-gml-parser.y:54: /usr/include/bits/string2.h:208:0: note: this is the location of the previous definition # define strdup(s) __strdup (s) gcc -m64 -I/usr/include/R -DNDEBUG -I/usr/local/include -DUSING_R -I. -Iinclude -Ics -Iglpk -Iplfit -ICHOLMOD/Include -IAMD/Include -ICOLAMD/Include -ISuiteSparse_config -I/usr/local/include -O2 -g...
2010 Jul 07
3
use sliding window to count substrings found in large string
Hello together, I'm looking for advice on how to do some tests on strings. What I want to do is the following: (just an example, real strings/sequence are about 200-400 characters long) given set of Strings: String1 abcdefgh String2 bcdefgop use a sliding window of size x to create an vector of all subsequences of size x found in the set (order matters! ). Now create, for every string in the set, an vector containing the counts on how often each subsequence was found in this particular string. It would be great if someone...
2011 Apr 19
2
Simple question
...using read.csv, so I can't just edit my way out of this as my csv file has 200 lines---and counting, if there is a more elegant way of doing this, let me know, my .csv file has other values in columns, and each string that I'm reading in has a different number of elements, so, for example, string2 might be "1,3,5,7,9" and string3 might be "7". My bigger problem is that I probably am not handling the data.frame object properly. In other words, I might be so bass-ackward that I'm doomed to fail without handling the original read-in properly. A sample of my .csv file...