Can I convert string into an object named the same as that string value

Thank you pointfar. I made a dictionary out of my data parameter and used it to load the data, since I don’t want the shortcode user to be bothered with the dictionary.

{{ $datadict := (dict "data" (.Get "data")) }}
{{ $.Scratch.Set "site_data_slider" (index .Site.Data ($datadict.data)) }}

Reference: https://discourse.gohugo.io/t/dynamically-load-datafiles-based-on-variables/9349/2