Skip to content
Back to formatted view

Raw Message

Message-ID: <366c6f340911151715m1b28473y2b1f1b0fe8baa76c@mail.gmail.com>
Date: 2009-11-16T01:15:52Z
From: Peng Yu
Subject: How to name a tag in a list or a data.frame from a string?

Suppose I have a string variable

string='some_string'

Now I want to have a list, where <tag> is the same as the string in
the variable string. I'm wondering if this is possible in R.

list(<tag>=1:3)
data.frame(<tag>=1:3)