Skip to content
Back to formatted view

Raw Message

Message-ID: <7BD626BBA7717A49816E995DF152C04A3AB600@intra2003.ric.si>
Date: 2005-03-11T09:00:16Z
From: Gasper Cankar
Subject: name of object from character vector

Hello everyone!

A simple question (I'm not sure about the answer):

How can I give a name to my data.frame from a character vector of names? 
For example, each data.frame is a table of results for a subject and I have a vector of subject names like

b <- c("math", "geography", "history")

How do I create a data.frame named "math" by calling b[1]? 

I'm importing data via RODBC in one big loop for all subjects and
I want them separated so I'll be able to load them one at a time later on. 

Thanks for your help,

Gasper


Gasper Cankar
National Examinations Centre
Slovenia
+386 1 54 84 682
gasper.cankarATric.si