I'm trying to compile a sample Objective-C program that uses R using the
REngine wrapper. I found some code that includes the line

[re assignTo:@"a" value:ax];
re is an REngine object. The compiler and I can't find any method with the
selector assignTo:value:.


Here is the mystery statement in context:


- (IBAction)runTest:(id)sender

{

{

double a[10] = { 0.5, 1.3, 4.3, 5.3, 2.6, 1.7, 3.5, 3.3, 2.5, 1.6 };



RSEXP *ax = [[RSEXP alloc] initWithDoubleArray:a length:10];

[re assignTo:@"a" value:ax];

}

 {

RSEXP *r = [re evaluateString:@"as.double(c(mean(a), var(a)))"];

double *dr = [r doubleArray];

 [textView insertText:[NSString stringWithFormat:@"mean=%f, variance=%f\n",
dr[0], dr[1]]];

}

}


Please, can someone give me a little pointer here?

	[[alternative HTML version deleted]]

