Add_New_Groups: Add Survey Groups Quickly

View source: R/tools.R

Add_New_GroupsR Documentation

Add Survey Groups Quickly

Description

This allows you to batch create a set of groups in the survey, which saves a lot of clicking around in the GUI.

Provide a data.table for the Group_Add_Table argument that has the following columns:

  • sid

  • group_name

The function will create the groups in the respective surveys, and return the same table with a new column, "new_gid" with the assigned gids for those newly added groups.

Usage

Add_New_Groups(Group_Add_Table)

Arguments

Group_Add_Table

This should be a data.table that has the columns:

  • sid: the sid of the survey where you want to add the respective group

  • group_name: the name that you would like to assign the group

Examples

## Not run: 
Add_New_Groups(Group_Add_Table)

## End(Not run)


bpresentati/surveyR documentation built on March 19, 2022, 3:40 a.m.