| To: | <s-news@wubios.wustl.edu> |
|---|---|
| Subject: | accessing a column of a matrix using strings |
| From: | "Leeds, Mark" <mleeds@mlp.com> |
| Date: | Sun, 27 Jul 2003 19:53:53 -0400 |
| Thread-index: | AcNUmlW6E57L2vWuSh2fuoWvgLIkhA== |
| Thread-topic: | accessing a column of a matrix using strings |
|
I think this
question is pretty basic but i have been stuck for a
while.
i have a matrix
whose columns are strings such as "8344", "8312" etc.
later on, in a
program, i have a variable called ticker1 which is a string
such as the above.
so , i want to access the column corresponding
to whatever string
ticker1 is.
i tried
matrix[,ticker1] : this gives me back weird stuff which i
kind
of
expected.
i tried
matrix[,get(ticker1)] : this gives me back "object "8344" not
found.
does anyone know how
to do this ? i'm gonna play
around some more but
thanks in advance.
mark
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | pairs( ) plot question, Paul, David A |
|---|---|
| Next by Date: | Re: accessing a column of a matrix using strings, Spencer Graves |
| Previous by Thread: | pairs( ) plot question, Paul, David A |
| Next by Thread: | Re: accessing a column of a matrix using strings, Spencer Graves |
| Indexes: | [Date] [Thread] [Top] [All Lists] |