Data Entry and Storage (flash cards)

Question 1

What should each column hold? What should each row hold?

  • One column for each type of information
  • One row for each observation

Question 2

How many pieces of information belong in a single cell?

1

Question 3

A spreadsheet marks uncertain measurements by coloring the cells.

Why is this a problem, and what should be done instead?

Computers can’t easily read color, fonts, or italics as data.

Put the information in its own column.

Question 4

What is wrong with the column name body mass (g)?

Spaces and special characters like ( ) @ * ^ mean special things to computers.

Use snake_case (body_mass_g) or CamelCase (bodyMassG) instead.

Question 5

When two rules for naming things in a data set?

  • Short and meaningful
  • Consistent in naming, abbreviation, and capitalization

Question 6

A dataset has missing masses written as -999.

What should you use instead?

A good null value like NA.

-999 is a number, so it will silently end up in means and plots.

Question 7

What format should you use for dates?

YYYY-MM-DD (the ISO standard)

Question 8

A table repeats the site name, latitude, and longitude on all 5000 rows.

What is the tidy fix?

Use one table for each category of data.

Create a separate site table and link it to the survey table using a shared column.

Question 9

What file format should you export data to for analysis and long-term storage?

Plain text, such as CSV.

Question 10

In Excel, how do you limit what type of data can be entered into a column?

Data -> Data Validation

  • Allow limits the data type
  • Data restricts the range of values

Question 11

In Excel, how do you limit a column to a fixed list of choices?

Data -> Data Validation -> Allow -> List

Then type the values into Sources separated by commas, or select a range of cells.

This also gives you a dropdown for data entry.

Question 12

In Excel, how do you stop dates (or data that looks like dates) from being reformatted?

Select the date column, then Home -> Number -> dropdown -> Text.

Dates then stay as entered and export correctly.