Convert Character String to Variable Name in R (2 Examples) | assign & do.call Functions Explained

Published: 15 July 2020
on channel: Statistics Globe
2,781
14

How to turn a character string into a variable name in the R programming language. More details: https://statisticsglobe.com/convert-c...
R code of this video:

##### Example 1

assign("my_string_1", 1:5) # Apply assign function

my_string_1 # Return variable values


##### Example 2

do.call("<-", list("my_string_2", 1:5)) # Apply do.call function

my_string_2 # Return variable values


Watch video Convert Character String to Variable Name in R (2 Examples) | assign & do.call Functions Explained online without registration, duration hours minute second in high quality. This video was added by user Statistics Globe 15 July 2020, don't forget to share it with your friends and acquaintances, it has been viewed on our site 2,781 once and liked it 14 people.