Skip to content
Back to formatted view

Raw Message

Message-ID: <loom.20100128T155110-902@post.gmane.org>
Date: 2010-01-28T14:55:51Z
From: oliver
Subject: select one row from data-frame by name, indirectly (as string)

Hello,

say I have a dataframe   x
and it contains rows  like "ch_01", "ch_02" and so on.

How can I select those channels iundirectly, by name?

I tried to select the data with get() but get() seems only to work
on simple variables?

Or how to do it?

I need something like that:


name1 <- "ch_01"
name2 <- "ch_02"

selected <- <function>( x, name1)


Any ideas?