| To: | s-news@lists.biostat.wustl.edu |
|---|---|
| Subject: | Indirect references in SPLUS |
| From: | Santosh <santosh2005@gmail.com> |
| Date: | Sun, 21 Jan 2007 22:54:07 -0800 |
| Domainkey-signature: | a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:mime-version:content-type; b=TOqs4EpSgiApEPlwf9Rrgeo5iL5baYANHg42TcYHIUQ9Y33oxNdgELGNHjLTxbRQg8nMB2T61xLKwBINfIRJi9B9C0WNWWIokdAaZZL+XFkr8tRObl7waZJpZKiMxZ1x/7MM/p7vhbCyKFeQwLweqsnGcip31E3/iq9qkA2Dy5Y= |
|
Dear SPlus Users, Is there a way to work with indirect references in SPlus? For example, DataColumn <- "Resist" MatrixColumn <- "ExpnsnCoeff"' ScalarColumn <- "Voltage" As I don't know the syntax, I would like illustrate using the examples given below. In conventional SPLUS notation, if "df" is a generic dataframe that consists of vectors "Resist", "ExpnsnCoeff", "Voltage", "df$Resist", "df$ExpnsnCoeff", "df$Voltage" notation may be used to for data handling in respective vectors of the data frame. Instead of the above notation, I would like to use an indirect reference like: Assuming that the syntax to provide indirect references is curly braces, e.g. ${DataColumn}, "df${DataColumn}" indirectly accesses the vector "df$Resist"; similarly "df${MatrixColumn}" calls "df$ExpnsnCoeff" vector indirectly, and so on.. Hope the above question is clear; please do feel free to ask if you have any additional questions. Regards, Santosh |
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | hairlines in graphics, Dennis Fisher |
|---|---|
| Next by Date: | Re: hairlines in graphics, Prof Brian Ripley |
| Previous by Thread: | hairlines in graphics, Dennis Fisher |
| Next by Thread: | Re: Indirect references in SPLUS, rich |
| Indexes: | [Date] [Thread] [Top] [All Lists] |