I am writing R function which will read parquet file format from different path.
User variable "Path" resolves correctly. however user variable study_name which has value as "Harmo" doesn't resolve properly.
It does not set Output data frame in function with name as "Harmo", It output data Frame with "Study_name" only. I want output data frame as "Harmo" instead of "study_name".
R is typically used as a functional language, where we try to use pure functions when possible. So we would usually avoid assigning things in the global environment from inside the function, and prefer a function that just returns the right thing: