Skip to main content

Read and Code Data in the Data Viewer

Read your sampled messages as a grid and enter codes in coding columns, without changing the original file.

Prefer to watch first? The walkthrough video The data viewer and coding sheet shows these steps.

Steps on this page

Steps

  1. Open the Command Palette: View, then Command Palette… (or Ctrl+Shift+P; Cmd+Shift+P on a Mac).
  2. Type AURA: Open the data viewer and press Enter.
  3. Select Pick a data file (CSV or Excel), choose your sample file (for the worksheet, your coding sheet, the file coding-form.csv in the data folder), then select Open in the data viewer.
  4. Select a column header to sort by it. Select it again to reverse the order.
  5. Select Add coding column. Type the variable name from your codebook, for example tone.
  6. Choose Allowed values (a dropdown), then type your codebook values separated by commas, for example positive, neutral, negative.
  7. When it asks Will you code this variable twice to check your reliability?, choose Code it once, unless you are coding the variable twice for a reliability check.
  8. Click the first cell in the new column, type the first letters of a code, and press Enter. The cursor moves down one row.
  9. When you have coded, select Insert rebuild code. It writes the R that joins your codes back onto the data.

What you should see

The R Companion data viewer titled coding-form (30 rows). Above the grid are the buttons Refresh, Add coding column, Hide pass 1, Insert rebuild code, and Write this view as R. The grid has the columns id, channel, and message, one Twitch chat message per row.

The data viewer after a coding column is added. The line under the buttons reads: reaction_only, row 1: 1. Saved, then the time and 1 coded cell(s). A new column named reaction_only on the right holds the code 1 in row 1, and the empty cell in row 2 is selected, ready for the next code.

Your codes save by themselves to data/derived/, one row per coded cell. The original CSV never changes.

If it does not work

If you typed a wrong code, select the cell, press Delete to clear it, and type the right code. (Keyboard undo also works: Ctrl+Z, or Cmd+Z on a Mac.)