search for: string1

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

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 fixe...
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]]
2017 Mar 18
5
AD integration not working after move/version
...moved, only change otherwise is that we had to change to ISO8859-1 for locale, not the argument “LOCALE” that was not longer supported. # Global parameters [global] log file = /var/samba/log/clientlog.%m dns proxy = No acl check permissions = False netbios aliases = string1 server string = string1 name resolve order = hosts bcast realm = DOMAIN.NET password server = server3.string1.net sever4.string1.net # wins server = x.x.x.x local master = no workgroup = WGNAME os level = 0 domain master = no...
2011 Jun 18
3
how to subtract one string from another in R
Dear R Group 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...
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...
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] "str...
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
...e: 4 From: Duncan Murdoch <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 st...
2017 Mar 18
0
AD integration not working after move/version
...step forward to a supported Samba version. :-) https://wiki.samba.org/index.php/Samba_Release_Planning > # Global parameters > [global] > log file = /var/samba/log/clientlog.%m > dns proxy = No > acl check permissions = False > netbios aliases = string1 > server string = string1 > name resolve order = hosts bcast > realm = DOMAIN.NET > password server = server3.string1.net sever4.string1.net > # wins server = x.x.x.x > local master = no > workgroup = WGNAME > os...
2010 Mar 27
1
string width calculation
...ONT) mtext("Y", cex=2, adj=??, family=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&...
2003 Apr 28
1
Red Hat 9 regex symbol conflict
...ation in REGS (if 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));...
2017 Mar 18
0
AD integration not working after move/version
...status of the integration in any > way? You will probably need to join the new domain member again. > # Global parameters > [global] > log file = /var/samba/log/clientlog.%m > dns proxy = No > acl check permissions = False > netbios aliases = string1 > server string = string1 > name resolve order = hosts bcast > realm = DOMAIN.NET > password server = server3.string1.net sever4.string1.net > # wins server = x.x.x.x > local master = no > workgroup = WGNAME > os...
2009 Jan 10
0
RMySQL CREATE TABLE error
...HERE participant = '005_avg' AND roi = '1033' AND nogestureFDR > 1.95;") 9 > dbSendQuery(con, temp1) <MySQLResult:(436,20,1)> 10 > dbSendQuery(con, temp2) <MySQLResult:(436,20,2)> 11 > dbSendQuery(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_signa...
2017 Mar 18
2
AD integration not working after move/version
...n domain: failed to connect to AD: Server not found in Kerberos database > > >> # Global parameters >> [global] >> log file = /var/samba/log/clientlog.%m >> dns proxy = No >> acl check permissions = False >> netbios aliases = string1 >> server string = string1 >> name resolve order = hosts bcast >> realm = DOMAIN.NET >> password server = server3.string1.net sever4.string1.net >> # wins server = x.x.x.x >> local master = no >> workgroup = W...
2007 Aug 26
2
Character position command
This is a very simple question, so I apologize I couldn't find it online: I want to shorten the string 'apples.pears' to 'apples'. string='apples.pears' string1=substr(string,0,x) For x above, I would like to have a command like charAt(string,"."), i.e. the position of the period in the word, but I can't seem to find a charAt command in R. Thank you. [[alternative HTML version deleted]]
2006 Jun 19
2
fuzzy search
...at are people 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/.
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 recommen...
2012 May 08
1
Extracting Hash-tagged word from Tweets
...ort @hollandtrade @dutchembassyUK" (Tweet download) I want a code that will extract this: #Dutch companies #london2012, #olympics, #sport I have used the under-listed code in Stringr which return these outputs I did not require: > str_extract_all("#<-a-z, #<-A-Z", "[[string1:string10]]") [[1]] character(0) > str_extract_all("#<-a-z, #<-A-Z", "[[string9]]") [[1]] character(0) > str_extract_all("#=[1:10]", "#+a-z") [[1]] character(0) str_extract_all("#=[1:10]", "#+") [[1]] [1] "#"...
2013 Nov 21
1
[LLVMdev] Problem with labels
......)* @scanf(i8* %format, i32* %ptr) ret void } define void @writeInteger(i32 %integer) { %format = getelementptr [3 x i8]* @.intFormat, i32 0, i32 0 call i32 (i8*, ...)* @printf(i8* %format, i32 %integer) ret void } @b = private global i32 0 @c = private global i32 0 @a = private global i32 0 @.string1 = internal unnamed_addr constant [8 x i8] c"valeur:\00" define void @find() { %tmp1 = load i32* @c store i32 %tmp1, i32* @b Until2: %a6 = load i32* @a %b7 = load i32* @b %conditionVar5 = icmp slt i32 %a6, %b7 br i1 %conditionVar5, label %EndUntil4, label %Call3 Call3: call void @diff() b...