search for: fun4

Displaying 7 results from an estimated 7 matches for "fun4".

Did you mean: fun
2012 Nov 16
1
[LLVMdev] Failure while calling a function in GDB session
Hi All, I compiled the following code on my linux PC using clang with PIE option- struct struct4 {char a; char b; char c; char d; }; struct struct4 foo4 = {'a','2','c','4'}; struct struct4 fun4() { return foo4; } int main() { fun4(); return 0; } > clang -g -fPIE structs.c In GDB session when i call p/c fun4() i get something like below- (gdb) p/c fun4() Cannot access memory at address 0x34633261 Disassemble of the code is as follows - (gdb) disassemble Dump of assembler code...
2012 Nov 15
0
[LLVMdev] Unable to call a function in GDB when build with -fPIE
Hi All, I compiled the following code on my linux PC using clang with PIE option- struct struct4 {char a; char b; char c; char d; }; struct struct4 foo4 = {'a','2','c','4'}; struct struct4 fun4() { return foo4; } int main() { fun4(); return 0; } > clang -g -fPIE structs.c In GDB session when i call p/c fun4() i get something like below- (gdb) p/c fun4() Cannot access memory at address 0x34633261 Disassemble of the code is as follows - (gdb) disassemble Dump of assembler code...
2020 May 02
1
issues with environment handling in model.frame()
...nv): object 'y' not found model.frame is used by xtabs() and aggregate() so the following won't work either: fun3 <- function(x, y) xtabs(x, warpbreaks, y) fun3(~wool, with(warpbreaks, breaks < 15)) #> Error in eval(substitute(subset), data, env): object 'y' not found fun4 <- function(x, y) aggregate(x, warpbreaks, length, subset = y) fun4(breaks ~ wool, with(warpbreaks, breaks < 15)) #> Error in eval(substitute(subset), data, env): object 'y' not found The subset argument uses NSE, though no help file among aggregate, xtabs or model.frame suggests...
2012 Nov 11
2
changing the signs in rows or columns in matrices and check them if they are identical
Dear R users, i have this problem with matrices i want to check between two matrices if they are isomorphic i will give an example for what excactly i want   1 -1  1                                 -1  1   1 -1   1  -1                                1  -1  -1   1  1   -1                                1   1  -1 this two matrices are isomorphic beacause if i change the first 2 columns the matrices
2002 Apr 12
1
Problems with memory
...-vsize=10M --max-vsize=100M --min-nsize=500k --max-nsize=1M I've been had problems when executing a loop like: attach("data.Rdata") for (i in 1:n) { object1<-fun1(data...) object2<-fun2(...object1) object3<-fun3(...object2) object4[,i]<-fun4(...object3) rm("object1","object2","object3") } After few interactions it stops with the message: "Error: cannot allocate vector of size 7890 Kb In addition: Warning message: Reached total allocation of 127Mb: see help(memory.size)" I thought that u...
2011 Oct 01
1
error using ddply to generate means
...= c(12L, 24L, 36L, 48L), class = "data.frame") fun3 gics_sector_name bebitpcchg ticker 12 Financials -0.5674491 UBSN VX Equity 24 Financials 0.9960064 LLOY LN Equity 36 Materials NA AI FP Equity 48 Materials -42.7587479 AKE FP Equity fun4<-ddply(fun3,c("sector"),summarise,avgbebitchg=mean(bebitpcchg,na.rm=TRUE)) Error in `[.data.frame`(x, order(x, na.last = na.last, decreasing = decreasing)) : undefined columns selected This is a small sample of my data. I?m probably overlooking some problem in my syntax, but would b...
2010 Apr 15
4
Does "sink" stand for anything?
Hello Everyone,   Learning about R and its wonderful array of functions. If it's not obvious, I usually try to find out what a function stands for. I think this helps me remember better.   One function that has me stumped is "sink." Can anyone tell me if this stands for something?   Thanks,   Paul         __________________________________________________ [[alternative HTML