similar to: Typeof for character vector in dataframe returns integer

Displaying 20 results from an estimated 7000 matches similar to: "Typeof for character vector in dataframe returns integer"

2014 Apr 03
1
question regarding lang2 command in C
Hi , I am asking too many questions , sorry for that . I am creating a data frame in C itself , reading a table . The data frame calling code looks like this ====================================== *PROTECT(dfm=lang2(install("data.frame"),df));* *SEXP res = PROTECT(eval(dfm,R_GlobalEnv));* UNPROTECT(2); return res; ================================== It works fine , now the problem
2014 Feb 07
1
How to set user read request while R install
Hi , I have installed R on my system and the user access control looks like this -rwxr-x*---* 1 root root 10578117 Feb 3 11:26 libR.so I have installed R as root , but the access control for other is not enabled by default ( at least Read option) . This can be solved using linux ways, but I am interested to know if there is any way to mention while we run R or install R packages. What I am
2014 Feb 25
1
What this error means
Hi , I am running R from C using the interpreter . Now i execute detach("package:td", unload=TRUE) And I get the following error . Any idea what it means ? *** caught segfault *** address 0x102, cause 'memory not mapped' Traceback: 1: sys.parent() 2: sys.function(sys.parent()) 3: formals(sys.function(sys.parent())) 4: match.arg(event) 5: packageEvent(pkgname,
2014 Mar 31
1
C API to get numrow of data frame
Hi , Is there any C API to the R API nrow of dataframe ? x<- data.frame() n<- nrow(x) print(n) 0 Example : My C function which deals with data frame looks like and I don't to send the number of rows of data frame .I want to detect it from the function itself, my function take data frame as argument and do some on it. I want API equivalent to nrow. I tried Rf_nrows,Rf_ncols . No
2014 Jun 25
1
Need help on calling Head from C
Hi , I am trying to call head function from C . My doubt is with the parameter n,how to pass it . PROTECT(dfm=lang3(install("data.frame"),df,ScalarLogical(FALSE))); SET_TAG(CDDR(dfm), install("stringsAsFactors")) ; SEXP res = PROTECT(eval(dfm,R_GlobalEnv)); PROTECT(head=lang3(install("head"),res,ScalarInteger(1))); head = PROTECT(eval(head,R_GlobalEnv)); I tried
2010 May 07
1
[LLVMdev] Unreachable code executed crash
Initially, tt was not a problem with the verifier, we were just inserting a wrong instruction in our pass. Also we were able to figure out the error you pointed out and our pass is running as intended!!! Thanks a lot. On Fri, May 7, 2010 at 12:02 AM, Nick Lewycky <nicholas at mxc.ca> wrote: > Adarsh Yoga wrote: > >> I was able to solve that >> > > What was wrong? I
2010 May 06
2
[LLVMdev] Unreachable code executed crash
I was able to solve that but still crashing with the same error saying "Unreachable executed". I have attached the output with this mail. Thanks in advance. On Thu, May 6, 2010 at 2:38 AM, Nick Lewycky <nicholas at mxc.ca> wrote: > Adarsh Yoga wrote: > >> Yes. Intially the pass was crashing when the module when the module >> verifier was running. I was able to
2010 May 07
0
[LLVMdev] Unreachable code executed crash
Adarsh Yoga wrote: > I was able to solve that What was wrong? I wasn't able to reproduce it and would still like to teach the verifier whatever it missed. but still crashing with the same error saying > "Unreachable executed". I have attached the output with this mail. This time you've got: %1 = load i32** getelementptr inbounds ({ i32* }* @structobj, i64 0, i32
2010 May 06
2
[LLVMdev] Unreachable code executed crash
Yes. Intially the pass was crashing when the module when the module verifier was running. I was able to solve that and now it is crashing when the bit writer pass is running. On Wed, May 5, 2010 at 8:39 PM, Nick Lewycky <nlewycky at google.com> wrote: > On 5 May 2010 17:12, Adarsh Yoga <ayoga at umail.iu.edu> wrote: > >> Hi, >> >> I've written a pass
2010 Mar 17
3
[LLVMdev] CFG Manipulation is LLVM
Hi, Is there any API within llvm that provides methods to access the CFG and do some manipulations on the CFG. Thanks, Rohith. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20100317/5536c443/attachment.html>
2010 Mar 26
0
[LLVMdev] CFG Manipulation is LLVM
Hi Rohith, > I'm actually working on building a dependence graph . I'm not able > to find the methods which llvm uses to build the CFG. Is it possible to > use the same functions do build a dependence graph ( i Know the CFG > nodes are basicblocks where as dependence graph nodes will be variables)?. LLVM does not have explicit methods to build the CFG because it is
2010 May 06
0
[LLVMdev] Unreachable code executed crash
Adarsh Yoga wrote: > Yes. Intially the pass was crashing when the module when the module > verifier was running. I was able to solve that and now it is crashing > when the bit writer pass is running. The output is wrong in @thread_pool_init: <stdin>:44:27: error: '%4' defined with type 'i1' %5 = getelementptr i32* %4, i64 %indvar ; <i32*> [#uses=1]
2014 Jun 26
1
using 2D array of SEXP for creating dataframe
Hi , For our production package i need to create a dataframein C . So I wrote the following code SEXP dfm ,head,df , dfint , dfStr,lsnm; *SEXP valueVector[2];* char *ab[3] = {"aa","vv","gy"}; int sn[3] ={99,89,12}; char *listnames[2] = {"int","string"}; int i,j; //============================= PROTECT(df = allocVector(VECSXP,2));
2010 Apr 26
2
[LLVMdev] Creating a GEP instruction.
Hi, I'm trying to create a GEP (inbounds) instruction . I was looking at the createinboundsGEP method . I didnt get the inputiterator part. My question how do i create a GEP instruction and what do i pass for the input iterator arguments. Thanks, Rohith. -------------- next part -------------- An HTML attachment was scrubbed... URL:
2010 May 02
2
[LLVMdev] Unreachable Executed error.
Hi, I've written a pass that basically does some code transformations to enable parallel execution. After the transformation llvm runs BitCode Writer pass , which is aborting with Unreachable Executed error. What does this error generally mean?. Any pointers on how to go about debugging this. Thanks, Rohith. -------------- next part -------------- An HTML attachment was scrubbed...
2010 May 06
2
[LLVMdev] Unreachable code executed crash
Hi, I've written a pass that basically does some code transformations to enable parallel execution of loops. After the transformation llvm runs BitCode Writer pass , which is aborting with Unreachable Executed error. I have attached the input llvm code and the output llvm code for reference. I am stuck at this problem for a few days now. Please let me know if you are able to find anything
2014 Jan 21
1
Using unicode from C interface of R
Hi , I am using C interface of R . If a unicode string is read , in what format I could pass it back to R ? I was trying to use the following tpStr = ( char *)val; SET_STRING_ELT(innerList , 0, mkChar(tpStr)); It does not work . If I pass it back from as RAW format to R , what package is there to read it ? I mean package for interpreting RAW data . Thanks, Sandip [[alternative HTML
2014 Mar 06
1
Create dataframe in C from table and return to R
Hi , I am trying to create a dataframe in C and sebd it back to R. Can anyone point me to the part of the source code where it is doing , let me explain the problem I am having . -------------------------------------------------------------------- My simple implementation is like this SEXP formDF() { SEXP dfm ,df , dfint , dfStr,lsnm; char *ab[3] =
2010 Apr 26
0
[LLVMdev] Creating a GEP instruction.
On Sun, Apr 25, 2010 at 5:15 PM, Rohith Goparaju <rgoparaj at umail.iu.edu> wrote: >  Hi, > >    I'm trying to create a GEP (inbounds) instruction . I was looking at the > createinboundsGEP method . I didnt get the inputiterator part. My question > how do i create a GEP instruction and what do i pass for the input iterator > arguments. Generic answer to "how do I
2010 Apr 26
1
[LLVMdev] Creating a GEP instruction.
Thanks. The problem i'm facing is i want to get the address of the first element of an array and i have also tried using the createInBoundsGEP which takes the base pointer and the index value and a name. When i try passing '0' as the index im running into problems. Thanks, Rohith. On Sun, Apr 25, 2010 at 10:27 PM, Eli Friedman <eli.friedman at gmail.com>wrote: > On Sun, Apr