To use this program, follow these steps:
Comment Package ID: knb-lter-vcr.10.4 Cataloging System:VCR.
Comment Data set title: Hog and Cobb Island nesting seabird study, part A. 1990.
Comment Data set creator: Ruth Beck -
Comment Metadata Provider: - Virginia Coast Reserve Long-Term Ecological Research Project
Comment Contact: Dr. Linda Blum - - lkb2e@virginia.edu
Comment Contact: - Information manager - Virginia Coast Reserve Long-Term Ecological Research Project - jporter@lternet.edu
Title ' Hog and Cobb Island nesting seabird study, part A. 1990' .
Comment You should replace 'PUT-LOCAL-PATH-TO-DATA-FILE-HERE' (below) with the appropriate path.
Comment to your data file (e.g., c:\mydata\datafile.txt).
GET DATA /TYPE=TXT/
/ FILE="PUT-LOCAL-PATH-TO-DATA-FILE-HERE"
/ARRANGEMENT=Fixed
/VARIABLES=
ISLAND 0-3 A SPECID 7-12 A AGE 16-16 A MONTH 20-21 F2.0 DAY 22-23 F2.0 YEAR 24-25 F2.0 COUNT 29-32 F4.0 .
execute.
VAR LABELS ISLAND 'Island where doing bird censuses- ' .
VAR LABELS SPECID 'Species ID- ' .
VAR LABELS AGE 'Age of bird- ' .
VAR LABELS MONTH 'Month of census- MM' .
VAR LABELS DAY 'Day of census- DD' .
VAR LABELS YEAR 'Year of census- YY' .
VAR LABELS COUNT 'Numbers of birds or nests seen- none' .
comment The analyses below are basic descriptions of the variables. After testing, they should be replaced.
Frequencies variables=ISLAND /order=analysis.
Frequencies variables=SPECID /order=analysis.
Frequencies variables=AGE /order=analysis.
Descriptives variables=MONTH .
Descriptives variables=DAY .
Descriptives variables=YEAR .
Descriptives variables=COUNT .
Execute.
COMMENT List cases where data is out of range.
COMMENT Note: if no out of range cases are detected, the variable names will be listed, but no actual cases.
TEMPORARY .
STRING BADVARS (A255).
IF ((NOT MISSING(MONTH)) AND (MONTH LT 1)) BADVARS=CONCAT(RTRIM(BADVARS)," ", "MONTH","-min").
IF ((NOT MISSING(MONTH)) AND (MONTH GT 12)) BADVARS=CONCAT(RTRIM(BADVARS)," ", "MONTH","-max").
IF ((NOT MISSING(DAY)) AND (DAY LT 1)) BADVARS=CONCAT(RTRIM(BADVARS)," ", "DAY","-min").
IF ((NOT MISSING(DAY)) AND (DAY GT 31)) BADVARS=CONCAT(RTRIM(BADVARS)," ", "DAY","-max").
IF ((NOT MISSING(YEAR)) AND (YEAR LT 0)) BADVARS=CONCAT(RTRIM(BADVARS)," ", "YEAR","-min").
IF ((NOT MISSING(YEAR)) AND (YEAR GT 99)) BADVARS=CONCAT(RTRIM(BADVARS)," ", "YEAR","-max").
SELECT IF (BADVARS NE "").
LIST VARIABLES=ALL.
Execute.