s-news
[Top] [All Lists]

[S] S-Plus Question

To: s-news <s-news@wubios.wustl.edu>
Subject: [S] S-Plus Question
From: "paul.na" <paul.na@bankofamerica.com>
Date: Tue, 14 Dec 1999 14:49:09 -0500
Sender: owner-s-news@wubios.wustl.edu
Dear Readers,

I'd like to be able to do the following in Splus.

Say you have a dataframe called DF,
and variables V1 through Vn in this dataframe.

Say also you have a string "temp" such that
temp is "DF$V1".  For example you might have defined temp as

        temp<-paste("DF$","V1",sep="")

I'd like to be able to use this character string "temp" to access
the variable V1 in dataframe DF - for example, to be able to
assign DF$V1 to a new varible.  What do I do to "temp" to
be able to access the variable V1 in dataframe DF?

Thank you,
Matt Kurbat
-----------------------------------------------------------------------
This message was distributed by s-news@wubios.wustl.edu.  To unsubscribe
send e-mail to s-news-request@wubios.wustl.edu with the BODY of the
message:  unsubscribe s-news

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