AGR 204 · Computer Applications to Agriculture
Our notes
2 min readTypes 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
-
Data management
(opens en.wikipedia.org in a new tab)
Wikipedia, Data management, CC BY-SA 4.0 · licence
-
Database
(opens en.wikipedia.org in a new tab)
Wikipedia, Database, CC BY-SA 4.0 · licence
-
Data validation
(opens en.wikipedia.org in a new tab)
Wikipedia, Data validation, CC BY-SA 4.0 · licence
Watch
-
Best pick Introduction to Database Management Systems
11 min · ≈ 50 MB · about ₦28
(opens youtube.com in a new tab)
-
What is Data Management? [Intro to Data Migration, MDM, and Data Analytics]
11 min · ≈ 50 MB · about ₦28
(opens youtube.com in a new tab)
-
What is the Difference Between Data Management and Data Governance?
6 min · ≈ 27 MB · about ₦15
(opens youtube.com in a new tab)
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.