create the survey index directory in r code