Re: [R] problem with "parse"

From: Marc Kirchner <marc.kirchner_at_iwr.uni-heidelberg.de>
Date: Tue 22 Nov 2005 - 21:19:23 EST

Hello Antje,

> Is there anything I have overlooked? Can't I put special characters
> like "$" or "," into this test-character?

If I understand "?parse" correctly, you are supposed to pass a valid R expression to it and

        "u.g$par1, u.g$par2"
is not as the comma is not a valid delimiter here. However,

> parse(text="u.g$par1; u.g$par2")

expression(u.g$par1, u.g$par2)

does work (note the semicolon instead of the comma) and might be what you want.

Regards,
Marc

-- 
========================================================
Dipl. Inform. Med. Marc Kirchner
Interdisciplinary Centre for Scientific Computing (IWR)
Multidimensional Image Processing
INF 368
University of Heidelberg
D-69120 Heidelberg
Tel: ++49-6221-54 87 97
Fax: ++49-6221-54 88 50
marc.kirchner@iwr.uni-heidelberg.de


______________________________________________ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html

Received on Tue Nov 22 21:25:18 2005

This archive was generated by hypermail 2.1.8 : Tue 22 Nov 2005 - 23:23:31 EST