search for: text2

Displaying 20 results from an estimated 50 matches for "text2".

Did you mean: text
2019 Mar 26
4
GSoC19: Improve LLVM binary utilities
(Adding just a bit to Jake's response) On Tue, Mar 26, 2019 at 11:31 AM Jake Ehrlich via llvm-dev < llvm-dev at lists.llvm.org> wrote: > Hi Seiya, > > What should I prioritize? I suppose that improving llvm-objcopy is the >> most crucial work in this summer. > > > This is an opinion that will vary a lot from person to person. > +1! And don't forget that
2013 May 18
3
OT: Script Help
Sorry for the off topic, but don't a better resource. I'm not great at scripting, but need a quick script to modify a file. I have a long file that has lines like this: some text some text2 CN=DATA.OU=XYZ.O=CO some text3 some text4 And this repeats, but XYZ changes. "DATA" is always called data. (it's being renamed basically) I need to change the middle line but leave the rest of the file as is like this: some text some text2 CN=XYZ_DATA.OU=XYZ.O=CO some text3 some...
2009 Oct 26
1
regular expressions
Dear list, I have the following text to parse (originating from readLines as some lines have unequal size), st = c("START text1 1 text2 2.3", "whatever intermediate text", "START text1 23.4 text2 3.1415") from which I'd like to extract the lines starting with "START", and group the subsequent fields in a data.frame in this format: text1 text2 1 2.3 23.4 3.1415 All the lines co...
2009 Sep 04
2
transforming a badly organized data base into a list of data frames
Dear R-ers! I have a badly organized data base in Excel. Once I read it into R it looks like this (all variables become factors because of many spaces and other characters in Excel): x<-data.frame(A=c("","Name1","text1","text2","text3","","","","Name2","text1","text2","text3","","","Name3","text1","text2","text3","","Name1","text1","text2"...
2013 Jan 27
2
Unexpected behavior with abbreviation of an argument to paste
R 2.15.1 OS X Colleagues, I encountered the following unexpected behavior today: The following command yielded the expected result: paste(c("TEXT1", "TEXT2"), collapse="|") Result: [1] "TEXT1|TEXT2" However, abbreviating "collapse" by even one character: paste(c("TEXT1", "TEXT2"), collaps="|") yielded the following: [1] "TEXT1 |" "TEXT2 |" > My experience ha...
2009 Sep 06
1
struggling with "split" function
I am very sorry for such a simple question, but I am struggling with "split". I have the following data frame: x<-data.frame(A=c(NA,NA,NA,NA,"split",NA,NA,NA,NA,"split",NA,NA,NA,NA,"split",NA,NA,NA,NA), B=c("Name1","text1","text2","text3",NA,"Name2","text1","text2","text3",NA,"Name3","text1","text2","text3",NA,"Name4","text1","text2","text3"), C=c(NA,1,NA,3,NA,NA,4,5,6,NA,NA,7,8,9,NA,NA,3,3,...
2006 Mar 26
2
Shared Columns in an STI
I have a an STI table which acts_as_tree, that has a large number of classes/types. My common fields are: id parent_id name description with 4 more text fields, I could cover most of my classes if I could redefine the name of the field like this. text1 AS address1 text2 AS address2 text3 AS zipcode For one class and text 1 AS model_number text2 AS vendor Is there a construct that will allow me to do this? Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060326/624...
2006 Mar 02
0
Combining plaintext and plotmath expressions
...p="") ## substitute to avoid interpretation of "for" text1<-gsub("for","f*or",text1,fixed=TRUE) ## substitute ~ for spaces to avoid errors in parsing text1<-gsub(" ","~",text1,fixed=TRUE) ## see if we have a parsable expression text2<-try(parse(text=parmlabel),silent=TRUE) ## if not parsable then concatenate another way if(class(text2)=="try-error" | length(text2)==0){ text2<-gsub(" ","~",parmlabel) exprtitle<-paste(text1,text2,sep="~") } else{ exprtitle<-paste(...
2017 Sep 28
2
Searching for Enumerated Items using str_count() from the stringr package
...l character closed parenthesis: > Count<-str_count(text3,keywords) Error in stri_count_regex(string, pattern, opts_regex = opts(pattern)) : Syntax error in regexp pattern. (U_REGEX_RULE_SYNTAX) === Here is example code: text1<-"This is a list: 1) Number 1 2) Etc 3) Etc" text2<-"This is NOT a list: Blah, blah, blah Blah, blah, blah" text3<-c(text1,text2) text3 {keywords<-c(paste(0:9,"\\)"),paste(0:9,"\\)",sep=""), paste(0:9,"."),paste(0:9,".",sep=""),"-","*")} keywords...
2005 Sep 08
1
Converting a matrix to a dataframe: how to prevent conversion to factor
...TEXT <- paste("Text", 1:4, sep="") NUMBERS <- 10 + 4:1 MATRIX <- cbind(TEXT, NUMBERS) FRAME <- as.data.frame(MATRIX) > str(FRAME) `data.frame': 4 obs. of 2 variables: $ TEXT : Factor w/ 4 levels "Text1","Text2",..: 1 2 3 4 $ NUMBERS: Factor w/ 4 levels "11","12","13",..: 4 3 2 1 One work-around is to write the matrix (or the dataframe) to a file, then read the file back using the as.is argument. write.table(MATRIX, "JUNK", row.names=F) NEWFRAME...
2024 Nov 25
1
Problemas usando paquete textreuse
...). En la documentación del paquete los archivos los cargan desde ¿Alguien sabe cómo se hace? He conseguido calcular la similitud de jaccard utilizando este paquete, pero para ello he empleado el siguiente código. library(pdftools) library(textreuse) text1 <- pdf_text("uno.pdf") text2 <- pdf_text("dos.pdf") full_text1 <- paste(text1, collapse = " ") full_text2 <- paste(text2, collapse = " ") a <- tokenize_words(full_text1) b <- tokenize_words(full_text2) jaccard_similarity(a, b) Gracias [[alternative HTML version deleted]]
2009 Oct 20
1
plotting labels (not values) on xy plot
I have 2 vectors, x and y and have done an xy plot. I want to plot the label (name?) of the vector on the plot rather than the value. text(x,y, labels = x) gives me the value of x. text(x,y, labels = labels(x)) gives me something like c("text1","text2"..) plotted for each point text(x,y, labels = names(x)) gives nothing print(x) gives me [,1] text1 0.000000000 text2 0.000000000 text3 -0.029027359 text4 -0.088602806 so how do 'text1' written rather than the value? I know there is a way but I am just...
2008 Jan 11
1
Remote form for, Form.serialize and parameter arrays
...r and have an attribute list containing an array all goes fine and it results in parameters like: {"some_attributes"=>[{"title"=>"first_title", "text" => "text1"}, {"title"=>"second_title", "text"=>"text2"}]} However whenever I submit the same form with remote_form_for then it generates the following array: {"some_attributes"=>[{"title"=>"first_title"}, {"title"=>"second_title"}, {"text"=>"text1"}, {"text&q...
2008 Dec 22
0
Align legend title
...text.col) + inset = 0, xpd, title.col = text.col, title.adj = 0.5) { ## the 2nd arg may really be `legend' if(missing(legend) && !missing(y) && @@ -259,11 +259,11 @@ xt <- xt + x.intersp * xchar if(plot) { - if (!is.null(title)) - text2(left + w/2, top - ymax, labels = title, - adj = c(0.5, 0), cex = cex, col = title.col) + if(!is.null(title)) + text2(left + w/2 + ((w - tw) * (title.adj - 0.5)), top - ymax, + labels = title, adj = c(0.5, 0), cex = cex, col = title.col) - t...
2017 Sep 28
0
Searching for Enumerated Items using str_count() from the stringr package
...gt; Error in stri_count_regex(string, pattern, opts_regex = opts(pattern)) : > Syntax error in regexp pattern. (U_REGEX_RULE_SYNTAX) > > > === > > Here is example code: > > > text1<-"This is a list: > 1) Number 1 > 2) Etc > 3) Etc" > > text2<-"This is NOT a list: > Blah, blah, blah > Blah, blah, blah" > > text3<-c(text1,text2) > text3 > > {keywords<-c(paste(0:9,"\\)"),paste(0:9,"\\)",sep=""), > paste(0:9,"."),paste(0:9,".",sep=""),&...
2008 May 24
2
How to pass variable of for loop on read table text
Hi, I have a couple of text and would like to automate of reading these multiple files using (namely; text1.txt, text2.txt....) for(y in 3:10){ data$y<-read.table('text$y.txt')} But it seems not allow. Any idea? Thanks. [[alternative HTML version deleted]]
2011 Jul 05
1
How to translate string to variable inside a command in an easy way in R
I want to write a function that get 2 strings y and z and does the following R command. temp<-qq1[qq1$z==y,] for example if it get y="AMI" and z="PrimaryConditionGroup" It should do the following temp<-qq1[qq1$PrimaryConditionGroup=="AMI",] I could do it by the following function that is ugly and I wonder if there is an easier way to do it espacielly when temp
2000 Nov 07
2
par(las=.) gives wrong "adj" for mtext() (PR#726)
For R Version 1.1.1 and R-devel (Linux)... Sorry, there's no time to fix myself now {e.g., after starting a new device} : par(las=3); plot(1:10); par(las=1) ; mtext("mtext") Gives a left-adjusted (as for adj = 0) mtext, even if par("adj") is still 0.5 Note that I'm also not convinced that mtext() should follow par("las") as it does in the
2011 Apr 29
3
Change the text size of the title in a legend of a R plot.
Hello, Is it possible to change the text size of the title in a legend of a R plot? I tried to directly change the title.cex argument but it seems not to work. Trying : Horizo <- c(1,2,6,10,20) legtext <- paste(Horizo,sep="") legend("topleft", legend=legtext,col=col,text.col=col,lwd=lwd, lty=lty,cex=1.1,ncol=3,title = "Horizons",title.col
2006 Mar 17
6
Updated the xml code to be more object-oriented
I changed the code to be more prototype-esque, and created a class called XMLDoc. I may add more functionality to it later, hence the more generic name, but you do something like this to convert XML to a hash: XMLDoc = Class.create(); Object.extend(XMLDoc.prototype, { initialize: function (xmlDoc) { this.element = xmlDoc; }, asHash: function () { if (! this._xmlHash) {