search for: text1

Displaying 20 results from an estimated 48 matches for "text1".

Did you mean: text
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...
2011 Jul 05
1
How to translate string to variable inside a command in an easy way in R
...I wonder if there is an easier way to do it espacielly when temp is not the final result that I want (so I practically do not have temp<<-temp because I do not need the function to remember temp but only to remember something else that is calculated based on temp). ugly<-function(y,z) { text1<-paste("temp<-qq1[qq1$",z,sep="") text1<-paste(text1,"==y",sep="") text1<-paste(text1,",]",sep="") eval(parse(text=text1)) temp<<-temp } -- View this message in context: http://r.789695.n4.nabble.com/How-to-t...
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"...
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/attach...
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,N...
2006 Mar 02
0
Combining plaintext and plotmath expressions
...function: expr.label<-function(title=""){ ## single quote the character # so that it is not interpreted as a comment parmlabel<-gsub("#","'#'",cfg$parmlabel[icfg]) ## make sure that a string like "Vb1-Vb2" is not interpreted as subtraction text1<-gsub("-","*'-'*",testlabel) ## if need to prepend title test, do that, and make multiple spaces single if(nchar(title)) text1<-paste(gsub(" "," ",title)," ",testlabel,sep="") ## substitute to avoid interpretation of &quot...
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 |" &gt...
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...
2017 Sep 28
2
Searching for Enumerated Items using str_count() from the stringr package
...message even though I thought that I properly escaped the special 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,".&...
2020 Nov 18
1
LTO with Linker Scripts
...e layout. I agree that the bitcode files need to convey the input section names for functions/variables and the linker needs to tell LTO about output section names. I have an ICF change which is similar in concept: https://reviews.llvm.org/rL371216 .rom : { rom.o(.text) } .text : { *(.text .text1) *(.text.*) } // *(.text .text1) and *(.text.*) are called input section descriptions What is unclear to me is whether the relevant optimization (inlining, constant merging, outlining, etc) should be isolated within an output section, or within an input section description. I think isolating o...
2005 Sep 08
1
Converting a matrix to a dataframe: how to prevent conversion to factor
...not what I intend. 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...
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]]
2008 Jan 11
1
Remote form for, Form.serialize and parameter arrays
Whenever I use regular form for 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&qu...
2017 Sep 28
0
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,"\\)",se...
2010 Jul 01
4
possible to plot number line in R?
Hallo! Is there a possibility to plot a number line in R? I would like to display 3 different Intervals on the same number line. Ideally, it would be possible to add a name to each number (e.g. Interval 1, lower cut-off...and so on). I have not found a command for this. Thank you for your help. Julia [[alternative HTML version deleted]]
2012 Jul 17
1
about different bandwidths in one graph
...sd=0.0077) # simulate x-N(0,0.0077^2) if(ker==1){h_o=2.34*n^{-0.2}} # bandwidth for Epanechnikov kernel if(ker==0){h_o=1.06*n^{-0.2}} # bandwidth for normal kernel f1=kernden(x,z,h0[1],ker) f2=kernden(x,z,h0[2],ker) f3=kernden(x,z,h0[3],ker) f4=kernden(x,z,h0[4],ker) text1=c("True","h=0.0025","h=0.00452","h=0.0009","h=0.002") data=cbind(dnorm(z),f1,f2,f3,f4) # combine them as a matrix win.graph() matplot(z,data,type="l",lty=1:5,col=1:5,xlab="",ylab="") legend(-1,0.2,text1,lty=1:5,col=1:...
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
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) {
2020 Nov 18
2
LTO with Linker Scripts
Hello All, I'd like to pick up on an RFC about "(Thin)LTO with Linker Scripts" proposed by Tobias von Koch (http://lists.llvm.org/pipermail/llvm-dev/2018-May/123252.html) a couple years back. Has this work been upstreamed or implemented in any toolchains? We're looking at bringing LTO support to our TI Arm Clang Compiler tools and would appreciate any information about similar
2006 Sep 18
2
problems in sourcing R script
...SS library for stepAIC, truehist, etc. library(MASS) # Read in the data as comma separated file N <- read.csv2("MatrixNO3_08Aug06.csv", header=TRUE, sep=";", dec=".") # Compute stepwise generalised linear regression summary(stepAIC(lm(NH4Mar04~Elevation+Soil1+Soil2+Text1+Text2+Text3+Rice+Cabbage+Squash+Chilli+Flower, N))) -------------------------------------------------------- And here is the example for reproduction: N <- structure(list(samplePCR... = as.integer(c(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26,...