UNIHIVE

Study Hub UNIPORT AGR 204

AGR 204 · Computer Applications to Agriculture

Data management

Types of data, designing data sheets, coding and entry, cleaning and checking, databases, backup, and data protection.

Our notes

2 min read

Types of data

  • Quantitative: numbers. Discrete (counts: number of eggs) or continuous (measurements: weight, height).
  • Qualitative: categories. Nominal (crop variety, state) or ordinal (ranked: disease score 1 to 5).
  • Primary data (you collect them) and secondary data (from NBS, FAO, reports).

Collecting and coding

  • Design the data sheet before going to the field: plot number, treatment, replicate, date, variables with units.
  • Code categories as numbers or short labels (1 = male, 2 = female) and keep a codebook that explains every code.
  • Use one code for "missing" (leave blank, or NA), never 0 (0 is a real value).
  • Phone forms (ODK, KoboToolbox, Google Forms) reduce copying errors.

Cleaning and checking

Sort each column to find impossible values (a 40 kg broiler, a negative yield); check ranges, duplicates and dates; compare totals with field notes; double-enter important data and compare.

Worked example

Plot yields (kg) entered: 12.4, 13.1, 131, 12.8. The 131 is ten times the others: most likely a typing slip for 13.1. Check the field sheet before correcting. Mean with the error = (12.4 + 13.1 + 131 + 12.8) ÷ 4 = 169.3 ÷ 4 ≈ 42.3; corrected = (12.4 + 13.1 + 13.1 + 12.8) ÷ 4 = 51.4 ÷ 4 = 12.85.
Check: 4 × 12.85 = 51.4 ✓. One error changed the mean more than threefold.

Databases

A database stores records in related tables (farmers, farms, visits), linked by keys (a farmer ID). Microsoft Access, LibreOffice Base, or online systems; queries pull out what you need ("all farmers in Etche who planted cassava"). Better than one huge spreadsheet when many people enter data.

Storage and backup

Keep the original raw file unchanged; work on a copy. Follow the 3-2-1 idea: 3 copies, on 2 kinds of storage, 1 away from the office (cloud). Name files with dates (yield_trial_2026-10-22.xlsx).

Data protection

Farmers' names, phone numbers and locations are personal data. Under the Nigeria Data Protection Act 2023, collect only what you need, tell people why, keep it secure, and do not share it without a lawful basis.

Exams usually ask: classify types of data with examples; describe steps in data cleaning; explain what a database is and its advantages; state good practice for backup and data protection.

Common mistake: entering missing values as 0. A missing weight is unknown, not zero, and zeros pull the mean down.

Written by the UniHive team in our own words. Spotted a mistake? Tell us on WhatsApp.

Read

Watch

We link to free material and never copy it. Every link was opened by our team before it went up; video data is a rough guide at 360p.

All AGR 204 topics

Report

Sign in to report this. It is free.

Is this your work (a lecturer, author or publisher)? Ask us to take it down.