s-news
[Top] [All Lists]

RE Retrieving a data frame name as a character string

To: s-news@lists.biostat.wustl.edu
Subject: RE Retrieving a data frame name as a character string
From: gerald.jean@dgag.ca
Date: Tue, 10 Feb 2009 08:55:25 -0500
In-reply-to: <499183BA.40006@earthlink.net>
Hello,

deparse(substitute(z)) will do the job.

Have fun,

Gérald Jean
Conseiller senior en statistiques,
VP Planification et Développement des Marchés,
Desjardins Groupe d'Assurances Générales
télephone            : (418) 835-4900 poste (7639)
télecopieur          : (418) 835-6657
courrier électronique: gerald.jean@dgag.ca

"In God we trust, all others must bring data"  W. Edwards Deming

s-news-owner@lists.biostat.wustl.edu a écrit sur 2009/02/10 08:40:10 :

> Hi,
>
> I have a simple function that has as an argument a data frame name.
> Inside the function, I use the data frame for various calculations.  But
> I'd also like to convert that data frame name to a character string.
> For example, I have
>
> x <- function(z){ x <- z; ## use z in calculations; ## now convert z to
> a string}
>
> x{data.fe)
>
> What S+ function does this?
>
> Thanks,
>
> Walt
>
>
>
> --
> ________________________
>
> Walter R. Paczkowski, Ph.D.
> Data Analytics Corp.
> 44 Hamilton Lane
> Plainsboro, NJ 08536
> ________________________
> (V) 609-936-8999
> (F) 609-936-3733
> dataanalytics@earthlink.net
> www.dataanalyticscorp.com
>
> --------------------------------------------------------------------
> This message was distributed by s-news@lists.biostat.wustl.edu.  To
> unsubscribe send e-mail to s-news-request@lists.biostat.wustl.edu with
> the BODY of the message:  unsubscribe s-news



Le message ci-dessus, ainsi que les documents l'accompagnant, sont destinés
uniquement aux personnes identifiées et peuvent contenir des informations
privilégiées, confidentielles ou ne pouvant être divulguées. Si vous avez
reçu ce message par erreur, veuillez le détruire.

This communication ( and/or the attachments ) is intended for named
recipients only and may contain privileged or confidential information
which is not to be disclosed. If you received this communication by mistake
please destroy all copies.




Faites bonne impression et imprimez seulement au besoin !
Think green before you print !

Le message ci-dessus, ainsi que les documents l'accompagnant, sont destinés 
uniquement aux personnes identifiées et peuvent contenir des informations 
privilégiées, confidentielles ou ne pouvant être divulguées. Si vous avez reçu 
ce message par erreur, veuillez le détruire.

This communication (and/or the attachments) is intended for named recipients 
only and may contain privileged or confidential information which is not to be 
disclosed. If you received this communication by mistake please destroy all 
copies.

<Prev in Thread] Current Thread [Next in Thread>