search for: teststring

Displaying 13 results from an estimated 13 matches for "teststring".

Did you mean: test_string
2005 Mar 06
3
Search and convert string function
Hi all, I want to do this kind of function In R enviroment : For example : R <- 4 testString <- "I love $R" then search this testString, when find "$R",replace "$R" to R ,and because the value of R is 4 So the final string I want to get is "I love 4" How can I implement? Thanks advance Michael
2009 Aug 24
0
[LLVMdev] Regular Expression lib support
On Sun, Aug 23, 2009 at 8:28 PM, Chris Lattner<clattner at apple.com> wrote: > > On Aug 23, 2009, at 5:50 PM, OvermindDL1 wrote: > >> On Sun, Aug 23, 2009 at 6:32 PM, Daniel Dunbar<daniel at zuster.org> wrote: >>> >>> This is too heavy, and we don't need the extra features, and regexec >>> is well tested and much more standard. Unless there
2009 Aug 24
2
[LLVMdev] Regular Expression lib support
On Aug 23, 2009, at 5:50 PM, OvermindDL1 wrote: > On Sun, Aug 23, 2009 at 6:32 PM, Daniel Dunbar<daniel at zuster.org> > wrote: >> This is too heavy, and we don't need the extra features, and regexec >> is well tested and much more standard. Unless there is an >> overwhelming > > 'regexec' I had never heard of, figured it was a library, turns
2013 Feb 09
2
character strings with embedded commands: perl "/gee" ?
dear R experts---I am trying to replicate a perl feature. I want to be able to embed R commands inside a character string, and have the string be printed with the command executed. my perl equivalent is my $a=10; my $teststring = "the expression, $a+1, is ::$a+1::, but add one more for ::$a+2::\n"; $teststring =~ s/::(.*?)::/$1/gee; print $teststring; of course, R does not use '$' for variable names. my ultimate goal is to write something like cat("d is a ::class(d):: with names ::names(d):...
2005 Jul 18
1
levels() deletes other attributes
Dear All, it seems to me that levels() deletes other attributes. See the following example: ## example with levels f1 <- factor(c('level c','level b','level a','level c'), ordered=TRUE) attr(f1, 'testattribute') <- 'teststring' attributes(f1) levels(f1) <- c('L-A', 'L-B', 'L-C') attributes(f1) If I run it, after assigning new levels, the class is only "factor" instead of "ordered" "factor" and the $testattribute "teststring" is gone. The same happen...
2004 Dec 02
1
SJava convert problem
Consider this Java class: class myClass { final public static String[] testString () { return new String[]{"my", "name", "is"} ; } final public static int[] testInt () { return new int[]{5, 10, 15}; } final public static char[] testChar () { return new char[]{'x', 'y', 'z'...
2011 Aug 23
1
Implementing a "plugin" paradigm with R methods
...ink="foo", plugin=plugin), useInherited=c(src=TRUE, plugin=FALSE) ) out <- .plugin(src=src) } else { out <- paste("Hello world: ", src, sep="") } return(out) } ) foo(src="Teststring:-1234_56/") foo(src="Teststring:-1234_56/", plugin="punct") foo(src="Teststring:-1234_56/", plugin="digit")
2009 Dec 02
1
read.csv confused by newline characters in header (PR#14103)
Full_Name: George Russell Version: 2.10.0 OS: Microsoft Windows XP Service Pack 2 Submission from: (NULL) (217.111.3.131) The following code (typed into R --vanilla) testString <- '"B1\nB2"\n1\n' con <- textConnection(testString) tab <- read.csv(con,stringsAsFactors = FALSE) produces a data frame with with one row and one column; the name of the column is "B1.B2" (alright so far). However according to print(tab[[1,1]]) the value of t...
2011 Apr 30
3
Copying to R a rectangular array from a Java class
Bare test code: My simple Java test class source and R test code follow: public class RJavTest { public static void main(String[]args) { RJavTest rJavTest=new RJavTest(); } public final static String conStg="testString"; public final static double con0dbl=10000001; public final static double[]con1Arr=new double[] { 10001,10002,10003,10004,10005,10006 }; public final static double[][]con2Arr=new double[][] { { 101,102,103,104 },{ 201,202,203,204 },{ 301,302,303,304 } }; public final static String...
2007 Dec 11
1
unescapeHTML return incorrect string under firefox
function testUnescapeHTML() { var testString = "<div>&lt;a hrer="#"&gt;test&lt;/a&gt;</div>" } this simple test function return string "<div><a href="#">test</a></ div>" under internet explorer,and return "<a herf="#">test</a&g...
2010 Jun 14
3
remove last char of a text string
Dear R experts, is there a simple way to remove the last char of a text string? substr() function use as parameter start end only... but my strings are of different length... 01asap05a -> 01asap05 02ee04b -> 02ee04 Thank you all, Gianandrea -- View this message in context: http://r.789695.n4.nabble.com/remove-last-char-of-a-text-string-tp2254377p2254377.html Sent from the R help mailing
2009 Dec 04
0
(PR#14103) read.csv confused by newline characters in
...d wrote: > g.russell at eos-solutions.com wrote: >> Full_Name: George Russell >> Version: 2.10.0 >> OS: Microsoft Windows XP Service Pack 2 >> Submission from: (NULL) (217.111.3.131) >> >> >> The following code (typed into R --vanilla) >> >> testString <- '"B1\nB2"\n1\n' >> con <- textConnection(testString) >> tab <- read.csv(con,stringsAsFactors = FALSE) >> >> produces a data frame with with one row and one column; the name of the column >> is "B1.B2" (alright so far). However ac...
2016 Aug 19
0
Wine release 1.9.17
The Wine development release 1.9.17 is now available. What's new in this release (see below for details): - Better exception handling on 64-bit. - Various improvements in joystick support. - Some more stream support in the C++ runtime. - Font embedding improvements. - More metafile support in GDI+. - Various bug fixes. The source is available from the following locations: