[R] RegExp question

Andrej andrej.kastrin at gmail.com
Wed Jun 16 18:04:20 CEST 2010


Dear all,

I'm trying to filter out the "number of leaves" (it should be 1 in the
example below) from the following string:

> string
[1] "Java-Object{J48 pruned tree\n------------------\n: 0 (15.0/3.0)\n
\nNumber of Leaves  : \t1\n\nSize of the tree : \t1\n}"

Any idea how to do that as simple as possible? Thanks in advance for
any advice.

Regards, Andrej



More information about the R-help mailing list