[R] extract printed value from a function

Duarte Viana viana.sptd at gmail.com
Thu Feb 24 12:26:12 CET 2011


Hello all,

This shouldn't be difficult, but I am not able to extract a printed
value from a function and assign it to an object.

In my case,

> library(DAAG)
> twotPermutation(c(2,3,4),c(3,6,5),plotit=F)
[1] 0.298

I would like to assign this result to an object.

Thanks,

Duarte



More information about the R-help mailing list