Home>
I need to apply a function to mydata1 variable. Her name, i.e. "mydata1", I create it manually and put it in the datai variable. How can I isolate the mydata1 variable (its value) if I know that its name "mydata1" is in the datai variable? That is, I know that datai contains the name of the variable I need, but the very name of this variable is "kind of" unknown to me.
it is very likely that you want something a little different. for example, something like this: Is it possible to create multiple databases using a for loop?
aleksandr barakin2021-12-15 17:44:03-
Answer # 1
use the function
get ()
from the packagebase
...example:
mydata1 < -42 datai < -'mydata1' get (datai) # > [1] 42
Created on 2021-12-15 by the reprex package(v1.0.0)
Trends
- python - you may need to restart the kernel to use updated packages error
- dart - flutter: the instance member'stars' can't be accessed in an initializer error
- php - coincheck api authentication doesn't work
- php - i would like to introduce the coincheck api so that i can make payments with bitcoin on my ec site
- [php] i want to get account information using coincheck api
- the emulator process for avd pixel_2_api_29 was killed occurred when the android studio emulator was started, so i would like to
- javascript - how to check if an element exists in puppeteer
- sh - 'apt-get' is not recognized as an internal or external command, operable program or batch file
- i want to check the type of a shell script variable
- i want to call a child component method from a parent in vuejs
Please clarify your specific problem or provide more detailed information on what exactly you need. As it stands, it is difficult to understand exactly what you are asking.
Дух сообщества2021-12-15 15:36:34