search for: columnnumber

Displaying 4 results from an estimated 4 matches for "columnnumber".

2012 Jan 13
2
question: how to select a column from a dataframe in a function
Hi, I am creating a function and ran into the problem of selecting a column from a dataset. It seems as though the $ function (as in data$columnname) does not apply in the function. In simplified version: This works: testf2<-function(data,columnnumber){print(data[,columnnumber])} But this doesn't: testf<-function(data,column){print(data$column)} Even though the first solution works, I would like to be able to insert the columnname in the function, instead of the columnnumber. How do I do that? Thank you in advance, Julia [[alternati...
2007 Jul 14
1
Very basic question about REXML
...have pretty basic question abut REXML. I want to put the String "John doe" in titles array, if attribute name is equal to "93". Please see the code below. I could not find how to do it.. any help would be very appriciated. Here is the XML i am trying to parse <entrydata columnnumber="2" name="93"> <text>John doe</text> </entrydata> <entrydata columnnumber="1" name="86"> <numberlist> <number>0</number> <number>0</number> </numberlist>...
2014 Jan 23
2
[LLVMdev] How to read v3.3 dbg metadata using v3.4 LLVM
...text llvmContext; unsigned dbgKind = llvmContext.getMDKindID("dbg"); if (MDNode *N = instruction.getMetadata(dbgKind)){ DILocation location(N); fileDirectoryName = location.getDirectory(); fileName = location.getFilename(); lineNumber = location.getLineNumber(); columnNumber = location.getColumnNumber(); } [1] int main(int argc, char **argv){ return 0; } [2] define i32 @main(i32 %argc, i8** %argv) #0 { entry: %retval = alloca i32, align 4 %argc.addr = alloca i32, align 4 %argv.addr = alloca i8**, align 8 store i32 0, i32* %retval store i32 %arg...
2014 Jan 24
2
[LLVMdev] How to read v3.3 dbg metadata using v3.4 LLVM
...MDNode *N = instruction.getMetadata(dbgKind)){ >> >> DILocation location(N); >> >> fileDirectoryName = location.getDirectory(); >> >> fileName = location.getFilename(); >> >> lineNumber = location.getLineNumber(); >> >> columnNumber = location.getColumnNumber(); >> >> } >> [1] >> >> int main(int argc, char **argv){ >> >> return 0; >> >> } >> >> [2] >> >> define i32 @main(i32 %argc, i8** %argv) #0 { >> >> entry: >> >> %ret...