apoptotic process` What I would like ...">

How to convert list variable name after $ to string

I have the following list type name:

tdat$`apoptotic process`

      

What I would like to do is extract the term after $

and then turn them into a string:

"apoptotic process"

      

How can I achieve this? I tried this but couldn't:

deparse(substitute(tdat$`apoptotic process`))

      

+3


source to share


1 answer


Just use the function names()

. Assuming the "apoptotic process" is the first item on the list tdat

:



x <- names(tdat)
x[1]
  `apoptotic process`

      

+6


source







All Articles