search for: newtst

Displaying 9 results from an estimated 9 matches for "newtst".

Did you mean: newest
2017 Jul 14
0
Help with R script
@Don your solution does not solve Vijayan's scenario 2. I used spread and gather for that. An alternative solution to insert mising Fval - picking up with Don's newtst - is newtst <- c("FName: fname1", "Fval: Fval1.name1", "FName: fname2", "Fval: Fval2.name2", "FName: fname3", "FName: fname4", "Fval: fval4.fname4") newtst_new <- vector(mode = "character", length = sum(grepl(&q...
2015 Feb 03
2
[LLVMdev] RFC: Constant Hoisting
...mm.isSignedIntN(8)) return TCC_Free; -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20150202/56d432d0/attachment.html> -------------- next part -------------- A non-text attachment was scrubbed... Name: newtst.c Type: text/x-csrc Size: 1534 bytes Desc: not available URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20150202/56d432d0/attachment.c>
2015 Feb 03
2
[LLVMdev] RFC: Constant Hoisting
Yes, it does seem to be a regression (and not pilot error) although I can't imagine how. I pulled a new tree and recompiled. Untouched and unpatched the bugs are there. newtst.c newtst.ll and newtst.s are attached. LLVM (http://llvm.org/): LLVM version 3.7.0svn DEBUG build with assertions. Built Feb 2 2015 (22:14:40). Default target: x86_64-apple-darwin14.1.0 Host CPU: penryn /Users/Chris/Desktop/llvm-svn/build/Debug+Asserts/bin/clang -S -O2 -emit-llvm -arc...
2017 Jul 13
2
Help with R script
...: Fval1.name1", "Fval: ", "FName: fname2", "Fval: Fval2.name2", "FName: fname3") tst <- data.frame(x = ex.dat, stringsAsFactors=FALSE) sp <- strsplit(tst$x, ':', fixed=TRUE) chk <- unlist(lapply(sp, function(txt) txt[2] != ' ')) newtst <- tst[chk,,drop=FALSE] This both assumes and requires that ALL of the rows are structured as in the example data in the original question. For example: if any row is missing the ?:?, it will fail. If the ?:? is not followed by a space character it may fail (I have not checked) -Don -- D...
2010 Jul 19
3
"ACCTGMX" to "1223400" in R?
Hi, I am a newbie in R and was working on some DNA data represented as strings of A,C,T and G (also wild-character like M and X). I use the Bioconductor package in R. Currently I need to convert a string of the form "ACCTGMX" to "1223400" i.e. A is replaced by 1, C with 2, T with 3, G with 4 and any other character with a 0. I checked with 'replace' and also with a
2015 Feb 03
3
[LLVMdev] RFC: Constant Hoisting
Hi Chris, If you have everything setup to test, can you generate the LLVM IR with -03 from 3.4.1 and 3.5 to be sure they match. Then we can focus on the backend. Thanks, Mehdi > On Feb 3, 2015, at 1:58 AM, Chris Sears <chris.sears at gmail.com> wrote: > > So between 3.4.1 and 3.5 since it isn't in 3.4.1 and it is in the current XCode. -------------- next part
2015 Feb 03
2
[LLVMdev] RFC: Constant Hoisting
...elease. It's pretty much already narrowed. > > 3.4.1 generates correct assembly (except bug #2 is here as well, see below) > 3.5 (XCode) generates correct IR and bad assembly > > So the problem seems to show up with 3.5. The attached IR is from 3.5 XCode clang -S -O3 -emit-llvm newtst.c. > > There are TWO bugs here. There's the Constant Hoisting bug (#1) and the failure to match a AND/CMP (#2). My current theory for #1 is that Constant Hoisting for the X86 is relatively recent or that Costing changed and that what we're seeing is that it worked correctly before. I...
2017 Jul 13
0
Help with R script
Hi Vijayan, one way going about it *could* be this: library(dplyr) library(tidyr) library(purrr) ex_dat <- c("FName: fname1", "Fval: Fval1.name1", "Fval: ", "FName: fname2", "Fval: Fval2.name2", "FName: fname3") data.frame(x = ex_dat) %>% separate(x, c("F1", "F2"), sep = ": ") %>% filter(F2
2017 Jul 13
2
Help with R script
Dear R-help Group Scenario 1: I have a text file running to 1000 of lines...that is like as follows: [922] "FieldName: Wk3PackSubMonth" [923] "FieldValue: Apr" [924] "FieldName: Wk3PackSubYear" [925] "FieldValue: 2017" [926] "FieldName: Wk3Code1" [927] "FieldValue: " [928] "FieldValue: K4" [929] "FieldName: