MathGroup Archive 2004

[Date Index] [Thread Index] [Author Index]

Search the Archive

Assigning names to columns of a matrix

  • To: mathgroup at smc.vnet.net
  • Subject: [mg49438] Assigning names to columns of a matrix
  • From: Gregory Lypny <gregory.lypny at videotron.ca>
  • Date: Tue, 20 Jul 2004 07:53:28 -0400 (EDT)
  • Sender: owner-wri-mathgroup at wolfram.com

Hello everyone,

I'm starting an analysis of a 7,320 x 16 matrix of data called 
sessionAData.  I'd like to assign a name to each of the 16 columns, 
that is, the variables, so that I can refer to them by name and not 
waste memory.

Would I, for example, simply create new vectors from each column of the 
matrix, such as

	investmentWeight = sessionAData[[All,6]]

to create a variable called "investmentWeight" equal to the sixth 
column of the matrix?

Or should I use Take as in

	investmentWeight = Take[sessionAData[[All,6]]] ?

	Greg


  • Prev by Date: Farey Comb Histogram
  • Next by Date: Diophantic Equations with Constraints
  • Previous by thread: Farey Comb Histogram
  • Next by thread: Diophantic Equations with Constraints