Rows to columns to access filenames

Hi

I have an R script in my protocol. And the R script takes 4 file names in the specified directory as parameters. Now I need to get these 4 file names into separate variables and pass it to the R script as parameters.

I tried using ListFiles to get the list of files in that directory. But I get all file names in a single column named 'Path'. I tried to iterate through the list of file names in 'Path' and assign it to separate variables but in vain. Could you please provide me a solution for the above problem? I am quite new to Pipeline Pilot so might be a silly question. Thanks for your help.

Regards

Abdul Basith