Posted By: Grant
strf length-limitation - 08/18/17 14:15
Greetings all,
I'm working on a script to create a data set for R which requires a lot of input variables. As a result, the total character length per record exceeds the 1000 characters limit from the strf function. Is there a workaround for this?
for better readability I'm limiting the length of my code, but it looks like this
Thanks for any feedback!
Grant
I'm working on a script to create a data set for R which requires a lot of input variables. As a result, the total character length per record exceeds the 1000 characters limit from the strf function. Is there a workaround for this?
for better readability I'm limiting the length of my code, but it looks like this
Code:
for(i=0; i < 10; i++) { file_append(name,strf( "n%i,%i,%i,%i,%i,%i,%i,%i,%i,%i,etc...", DS, (DS + IH), (DS + IH - 10), (DS + IH - 20), (DS + IH - 30), (DS + IH - 40), (DS + IH - 50), (DS + IH - 60), (DS + IH - 70), (DS + IH - 80), (DS + IH - 90),etc...)); DS = DS - 1; }
Thanks for any feedback!
Grant