You are on page 1of 1

R-bloggers

R-BLOGGERS
R news and tutorials contributed by hundreds of R bloggers

HOME ABOUT RSS ADD YOUR BLOG! LEARN R R JOBS CONTACT US

Search R-bloggers.. Go
Converting a String to a Variable
Name On-The-Fly and Vice-versa in Your e-mail here

R Subscribe

Follow @rbloggers 90.1K followers

Posted on December 28, 2010 by ramhiser in R bloggers, Uncategorized | 0 Comments


R bloggers
Like Page 79K likes
[This article was !rst published on johnramey » r, and kindly contributed to R-bloggers]. (You can
report issue about the content on this page here)

Want to share your content on R-bloggers? click here if you have a blog, or here if you don't.

! Share " Tweet

Recently, I had a professor ask me how to take a string and convert it to an R variable Most viewed posts (weekly)
name on-the-"y. One possible way is:
PCA vs Autoencoders for Dimensionality
x <- 42 Reduction
eval(parse(text = "x")) How to write the !rst for loop in R
[1] 42
10 Must-Know Tidyverse Features!
5 Ways to Subset a Data Frame in R
ANOVA vs Multiple Comparisons
Now, suppose we want to go the other way. The trick is just as simple:
How to Remove Outliers in R
Tidy modelling book published
x <- 42
deparse(substitute(x))
[1] "x"
Sponsors

Related

Example 9.34: Bland- Why R doesn’t suck Writing better R functions


Altman type plot I !rst encountered the R part four – April 17, 2018
The Bland-Altman plot is a programming language a In my last four posts I have
visual aid for assessing few years ago when I been working at
di#erences between two needed to make some automating a process, that
ways of measuring plots. Although I’ve used it I am likely to repeat many
something. For example, June 19, 2010 times, by turning it into a
June 5, 2012 In "R bloggers" April 16, 2018
In "R bloggers" In "R bloggers"

! Share " Tweet

To leave a comment for the author, please follow the link and comment on their blog:
johnramey » r.
R-bloggers.com o#ers daily e-mail updates about R news and tutorials about learning R and
many other topics. Click here if you're looking to post or !nd an R/data-science job.
Want to share your content on R-bloggers? click here if you have a blog, or here if you don't.

← Previous post Next post →

chapman.edu

Our ads respect your privacy. Read our


Privacy Policy page to learn more.

Contact us if you wish to help support R-


bloggers, and place your banner here.

Recent Posts

The First Programming Design Pattern in


pxWorks
Video: How to Scale Shiny Dashboards
Hack: The ‘[‘ in R lists
BASIC XAI with DALEX— Part 1: Introduction
Hack: The “count(case when … else … end)” in
dplyr
Curried Functions
Little useless-useful R function
The Bachelorette Ep. 1 – Every has its Thorn –
Data Analysis in R
Free Workshops for Meetup Groups
Hack: How to Install and Load Packages
Dynamically
Nucleci segmentation in R with Platypus.
rstudio::global(2021)
Raspberry Pi E-Paper Dashboard with R
Submitting R package to CRAN
The history of autonomous vehicle datasets
and 3 open-source Python apps for
visualizing them

Jobs for R-users

Junior Data Scientist / Quantitative economist


Senior Quantitative Analyst
R programmer
Data Scientist – CGIAR Excellence in
Agronomy (Ref No: DDG-
R4D/DS/1/CG/EA/06/20)
Data Analytics Auditor, Future of Audit Lead
@ London or Newcastle

python-bloggers.com
(python/data-science news)

Introduction to Transfer Learning: E#ective


Machine Learning Without Custom
Architecture
Hack: How to Create !les from Jupyter
The (Delayed) 2019 Training Review
Eight Personas Found in Every Data-Driven
Organization
How to Run Sentiment Analysis in Python
using VADER
How to create Bins in Python using Pandas
Corr-correlation

Full list of contributing R-bloggers

Archives

Select Month

Other sites

SAS blogs
Jobs for R-users

Copyright © 2020 | MH Corporate basic by MH Themes

You might also like