search for: third

Displaying 20 results from an estimated 11321 matches for "third".

2010 Jun 29
2
How to delete rows based on replicate values in one column with some extra calcuation
...irst=c('u','b','e','k','j','c','u','f','c','e') second=c('usa','Brazil','England','Korea','Japan','China','usa','France','China','England') third=1:10 data=data.frame(first,second,third) ## You may understand values in the first column are the unique codes for those in the second column. ####So 'u' is only for usa. Replicate values appear the same rows for the first and second columns. ### Now I want to delete replicate rows with th...
2009 Jan 12
2
How to reference previous row?
I am trying to write some code where the factor references its previous value, but can't find a solution searching through the archive. > X first second 1 A 1 2 A 2 3 B 3 4 B 4 5 B 5 6 C 6 7 C 7 I need a third column, in pseudo code- If value of first=previous value of first: third=previous value of third else third = second So the third column would look like: 0 0 3 3 3 6 6 Thanks!
2010 Jun 29
3
How to delete the replicate rows by summing up the numeric columns
...irst=c('u','b','e','k','j','c','u','f','c','e') second=c('usa','Brazil','England','Korea','Japan','China','usa','France','China','England') third=1:10 data=data.frame(first,second,third) ## You may understand values in the first column are the unique codes for those in the second column. ####So 'u' is only for usa. Replicate values appear the same rows for the first and second columns. ### Now I want to delete replicate rows with th...
2016 Mar 26
2
DW_TAG_member extends beyond the bounds error on Linux
...ss_clang_type=..., class_language=lldb::eLanguageTypeUnknown, base_classes=..., member_accessibilities=..., member_function_dies=..., delayed_properties=..., default_accessibility=@0x7ffdf3888cac: lldb::eAccessPublic, is_a_class=@0x7ffdf3888cab: false, layout_info=...) at /home/engshare/third-party2/lldb/3.8.0.rc3/src/llvm/tools/lldb/source/Plugins/SymbolFile/DWARF/DWARFASTParserClang.cpp:2937 2937 parent_die.GetID()); (gdb) bt #0 0x00007f103d02533d in DWARFASTParserClang::ParseChildMembers(lldb_private::SymbolContext const&, DWARFDIE const&, lldb_private::CompilerType&, l...
2011 Sep 26
1
How to Store the executed values in a dataframe & rle function
...e1)[[2]],rle(m$Sample2)[[2]]),c(rle(m$Sample1)[[1]],rle(m$Sample2)[[1]])) # to get the last 2 columns > names(s)=c("Values","Probes") >G=1 > for(i in 1:length(s$Probes)){ + if(G==1){first<-unique(m$Chr[G:s$Probes[i]]) + second<-min(m$Start[G:s$Probes[i]]) + third<-max(m$End[G:s$Probes[i]]) + c<-cbind(first,second,third,s$Values[i],s$Probes[i]) + print (c) + G=(G+s$Probes[i])} + else if((G-1) < length(m$Sample1)) { + first<-unique(m$Chr[G:(G+s$Probes[i]-1)]) + second<-min(m$Start[G:(G+s$Probes[i]-1)]) + third<-max(m$End[G:(G+s$Probes...
2016 Mar 27
0
DW_TAG_member extends beyond the bounds error on Linux
...age=lldb::eLanguageTypeUnknown, > base_classes=..., member_accessibilities=..., > member_function_dies=..., delayed_properties=..., > default_accessibility=@0x7ffdf3888cac: lldb::eAccessPublic, > is_a_class=@0x7ffdf3888cab: false, layout_info=...) > at > /home/engshare/third-party2/lldb/3.8.0.rc3/src/llvm/tools/lldb/source/Plugins/SymbolFile/DWARF/DWARFASTParserClang.cpp:2937 > 2937 > parent_die.GetID()); > (gdb) bt > #0 0x00007f103d02533d in > DWARFASTParserClang::ParseChildMembers(lldb_private::SymbolContext const&, > DWARFDIE const&, ll...
2020 May 23
4
Assertion triggered when running simple hello-world code on iOS device using ORC/LLLazyJIT
...uld be greatly appreciated. Thank you. -- Best, Igor #4 0x0000000106696d70 in llvm::jitlink::Symbol::constructNamedDef(void*, llvm::jitlink::Block&, unsigned long long, llvm::StringRef, unsigned long long, llvm::jitlink::Linkage, llvm::jitlink::Scope, bool, bool) at /Users/igorgomon/dev/third-party/llvm-project/llvm/include/llvm/ExecutionEngine/JITLink/JITLink.h:366 #5 0x0000000106691e8c in llvm::jitlink::LinkGraph::addDefinedSymbol(llvm::jitlink::Block&, unsigned long long, llvm::StringRef, unsigned long long, llvm::jitlink::Linkage, llvm::jitlink::Scope, bool, bool) at /Users/igo...
2016 Mar 27
1
DW_TAG_member extends beyond the bounds error on Linux
...| grep -i gcc", I found the following flags being used: GNU C++ 4.9.x-google 20150123 (prerelease) -momit-leaf-frame-pointer -m64 -mtune=generic -march=x86-64 -g -O3 -O3 -std=gnu++11 -ffunction-sections -fdata-sections -fstack-protector -fno-omit-frame-pointer -fdebug-prefix-map=/home/engshare/third-party2/icu/53.1/src/icu=/home/engshare/third-party2/icu/53.1/src/icu -fdebug-prefix-map=/home/engshare/third-party2/icu/53.1/src/build-gcc-4.9-glibc-2.20-fb/no-pic=/home/engshare/third-party2/icu/53.1/src/icu -fno-strict-aliasing --param ssp-buffer-size=4 Also, per reading https://gcc.gnu.org/onli...
2010 Jan 29
2
Explanation w.r.t. rbind, please!
This is what I tried: > num.vec <- c(12.34,56.78,90.12,34.56) > names(num.vec)<-c("first","second","third","fourth") > num.vec first second third fourth 12.34 56.78 90.12 34.56 > seq<-(1:4) > num.mat<-rbind(num.vec,seq) > num.mat first second third fourth num.vec 12.34 56.78 90.12 34.56 seq 1.00 2.0...
2019 Apr 15
9
Recommended PHP 7 source for Centos 7
I know there's a couple third party repos offering PHP 7 for Centos. I prefer not to add too much third party that I don't have to and PHP 7 has been mainstream for some time now, I thought maybe it would be in EPEL by now. What is the most recommended and stable way to get an up to date PHP on Centos 7?
2014 Jul 30
2
[LLVMdev] Inconsistent third field in global_ctors (was Re: [llvm] r214321 - UseListOrder: Visit global values)
...old-style global arrays (or reject >> them?) in the .ll parser. >> > > The .ll format is not stable, so you should be able to just reject it. Looking a little deeper, it's not "old-style" exactly; rejecting this isn't trivial. - According to LangRef, the third field is optional [1]. [1]: http://llvm.org/docs/LangRef.html#the-llvm-global-ctors-global-variable - It was added in r209015 to support comdat keys. - The helper functions `llvm::appendToGlobalCtors()` and `llvm::appendToGlobalDtors()` (in ModuleUtils.cpp) will by default set up the...
2012 Mar 12
2
mapply & assign to generate functions
...a problem that I'm finding a bit tricky. I'm trying to use mapply and assign to generate curried functions. For example, if I have the function divide divide <- function(x, y) { x / y } And I want the end result to be functionally equivalent to: half <- function(x) divide(x, 2) third <- function(x) divide(x, 3) quarter <- function(x) divide(x, 4) But I want to do it using mapply and assign: mapply(assign, c("half", "third", "quarter"), lapply(2:4, function(i) {function(x) divide(x, i)}), pos = 1) The problem is in the t...
2011 Dec 22
0
mongodb Map/reduce grouping
...whowins @challenge = Challenge.where(:_id => "4ef1a6a454b53001a4000067").first $wins ={"first"=>{"id"=>"1", "score"=>"1"},"second"=>{"id"=>"2", "score"=>"2"},"third"=>{"id"=>"3", "score"=>"3"},"fourth"=>{"id"=>"4", "score"=>"4"},"fifth"=>{"id"=>"5", "score"=>"5"}} temp ={"id"=&gt...
2013 Jan 25
3
read.csv quotes within fields
...using escape-quote as the internal double quote mark. x <- data.frame(matrix(data=c("1", "string one", "another string", "2", "quotes escaped 10' 20\" 5' 30\" \"test string", "final string", "3","third row","last \" col"),ncol = 3, byrow=TRUE)) > write.csv(x, "test.csv") # NOTE that write.csv correctly created the three internal quotes ' " ' by using double quotes ' "" '. # here's what got written "","X1&quo...
2009 Mar 12
8
help with loop
Dear useRs, I'm trying to write a loop to sum my data in the following way: (the second - the first) + (the third - the second) + (the fourth - the third) + ... for each column. So, I wrote something like this:   c <- list()   for(i in 1:ncol(mydata)) {   for(j in 2:nrow(mydata)) {   c[[i]] <- sum(yc[j,i] - yc[(j-1),i])   }}} As for the columns it works pretty fine, but it only returns the last subtra...
2020 Jun 06
4
Assertion triggered when running simple hello-world code on iOS device using ORC/LLLazyJIT
...000000000000 -- 0x0000000000000000: __text + 0x0000000000000000 with 1 symbol(s)...* * 0x0000000000000000 -- 0x0000000000000000: ltmp0* *Assertion failed: (Offset < Base.getSize() && "Symbol offset is outside block"), function constructNamedDef, file /Users/igorgomon/dev/third-party/llvm-project/llvm/include/llvm/ExecutionEngine/JITLink/JITLink.h, line 366.* On Tue, Jun 2, 2020 at 12:07 PM Lang Hames <lhames at gmail.com> wrote: > Hi Igor, > > The -debug-only option should be provided to your tool's main function, > rather than to the JIT'd ma...
2014 Jul 31
2
[LLVMdev] Inconsistent third field in global_ctors (was Re: [llvm] r214321 - UseListOrder: Visit global values)
On Wed, Jul 30, 2014 at 3:46 PM, Rafael Espíndola < rafael.espindola at gmail.com> wrote: > > Looking a little deeper, it's not "old-style" exactly; rejecting this > > isn't trivial. > > > > - According to LangRef, the third field is optional [1]. > > > > [1]: > http://llvm.org/docs/LangRef.html#the-llvm-global-ctors-global-variable > > > > - It was added in r209015 to support comdat keys. > > > > - The helper functions `llvm::appendToGlobalCtors()` and > > `llvm::ap...
2016 Mar 27
0
DW_TAG_member extends beyond the bounds error on Linux
...und the following flags > being used: > GNU C++ 4.9.x-google 20150123 (prerelease) -momit-leaf-frame-pointer -m64 > -mtune=generic -march=x86-64 -g -O3 -O3 -std=gnu++11 -ffunction-sections > -fdata-sections -fstack-protector -fno-omit-frame-pointer > -fdebug-prefix-map=/home/engshare/third-party2/icu/53.1/src/icu=/home/engshare/third-party2/icu/53.1/src/icu > -fdebug-prefix-map=/home/engshare/third-party2/icu/53.1/src/build-gcc-4.9-glibc-2.20-fb/no-pic=/home/engshare/third-party2/icu/53.1/src/icu > -fno-strict-aliasing --param ssp-buffer-size=4 > > Also, per reading >...
2008 Nov 19
3
Using third-party dlls
I am in the process of trying to port a Windows library to Linux (maybe also to Mac, but let's not get ahead of ourselves). The existing library is essentially a facade layer to a number of third-party dlls (mostly COM-based, although one is .NET-based) over which I have no control. These third-party dlls have no UI of their own. Their purpose is to allow access to proprietary data formats. The optimal solution would be to use Wine to link to these third-party dlls in my Linux library, s...
2015 Jul 18
2
[LLVMdev] CMake does not propagate flags to build
'-DCMAKE_CXX_FLAGS=-fno-omit-frame-pointer -Wno-maybe-uninitialized -fPIC -fPIE' -- The C compiler identification is GNU 4.8.1 -- The CXX compiler identification is GNU 4.8.1 -- Check for working C compiler: /home/engshare/third-party2/gcc/4.8.1/centos6-native/cc6c9dc/bin/gcc -- Check for working C compiler: /home/engshare/third-party2/gcc/4.8.1/centos6-native/cc6c9dc/bin/gcc -- works -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Detecting C compile features -- Detecting C compile features - d...