MathGroup Archive 2010

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

Search the Archive

Writing functions in packages that define values of global variables

  • To: mathgroup at smc.vnet.net
  • Subject: [mg113725] Writing functions in packages that define values of global variables
  • From: "Blackwell, Keith" <Keith.Blackwell at rbccm.com>
  • Date: Tue, 9 Nov 2010 03:53:06 -0500 (EST)

Is there a way to have functions inside packages define global
variables?

Specifically, is there a way to have a function that imports a data set
and then cuts it up and defines the pieces as variables that I can
access with other functions I've written in a notebook.

For instance, if I always want it to take the dates from the data and
define them as variable called Dates or whatever.
________________________________________

This E-Mail (including any attachments) may contain privileged or confident=
ial information.  It is intended only for the addressee(s) indicated above.

The sender does not waive any of its rights, privileges or other protection=
s respecting this information. 

Any distribution, copying or other use of this E-Mail or the information it=
 contains, by other than an intended recipient, is not sanctioned and is pr=
ohibited.

If you received this E-Mail in error, please delete it and advise the sende=
r (by return E-Mail or otherwise) immediately.

This E-Mail (including any attachments) has been scanned for viruses.

It is believed to be free of any virus or other defect that might affect an=
y computer system into which it is received and opened.

However, it is the responsibility of the recipient to ensure that it is vir=
us free.

The sender accepts no responsibility for any loss or damage arising in any =
way from its use.

E-Mail received by or sent from RBC Capital Markets is subject to review by=
 Supervisory personnel.

Such communications are retained and may be produced to regulatory authorit=
ies or others with legal rights to the information.

IRS CIRCULAR 230 NOTICE:  TO COMPLY WITH U.S. TREASURY REGULATIONS, WE ADVI=
SE YOU THAT ANY U.S. FEDERAL TAX ADVICE INCLUDED IN THIS COMMUNICATION IS N=
OT INTENDED OR WRITTEN TO BE USED, AND CANNOT BE USED, TO AVOID ANY U.S. FE=
DERAL TAX PENALTIES OR TO PROMOTE, MARKET, OR RECOMMEND TO ANOTHER PARTY AN=
Y TRANSACTION OR MATTER.



  • Prev by Date: Re: x and y labels in ArrayPlot
  • Next by Date: Re: How to apply Fourier transform to speech signals?
  • Previous by thread: Re: pause button for Dynamic?
  • Next by thread: Re: Writing functions in packages that define values of global variables