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 the above following , it seemed to be not working . Can you please
help.

Thanks

	[[alternative HTML version deleted]]

