To use this program, follow these steps:
# Package ID: knb-lter-vcr.113.3 Cataloging System:VCR.
# Data set title: 1992-93 Parramore Permanent Plot Baseline Data : Plot Coordinates.
# Data set creator: David Richardson -
# Data set creator: John Porter -
# Data set creator: Dr. Hank Shugart -
# Metadata Provider: - Virginia Coast Reserve Long-Term Ecological Research Project
# Contact: David Richardson - - dlr2n@virginia.edu
# Contact: David Richardson - - dlr2n@virginia.edu
# Contact: - Information manager - Virginia Coast Reserve Long-Term Ecological Research Project - jporter@lternet.edu
# You should replace 'PUT-LOCAL-PATH-TO-DATA-FILE-HERE' (below) with the appropriate path.
# to your data file (e.g., c:\mydata\datafile.txt).
infile1 <- file("PUT-LOCAL-PATH-TO-DATA-FILE-HERE", open="r")
tmp_format <- character()
tmp_format <- c(tmp_format,"F10") F
tmp_format <- c(tmp_format,"A18")
tmp_format
tmp_cols <- c(
"PLOT_N",
"UTMX",
"UTMY")
# This creates a data.frame named: dataTable1
dataTable1 <-read.fortran(infile1,tmp_format, col.names=tmp_cols, check.names=TRUE,na.strings=c("NA","."))
rm(tmp_format, tmp_cols)
tmp_var <- character()
tmp_label <- character()
tmp_var <- c(tmp_var , "PLOT_N")
tmp_label <- c(tmp_label , "Plot Number- none")
tmp_var <- c(tmp_var , "UTMX")
tmp_label <- c(tmp_label , "UTM X coordinate, NAD27- none")
tmp_var <- c(tmp_var , "UTMY")
tmp_label <- c(tmp_label , "UTM Y coordinate, NAD27- ")
labelFrame1<-data.frame(variable=tmp_var, label=tmp_label)
rm(tmp_var, tmp_label)
tmp_var <- character()
tmp_code <- character()
tmp_label <- character()
codeLabelFrame1 <- data.frame(variable=tmp_var, code=tmp_code, label=tmp_label)
rm(tmp_var, tmp_label, tmp_code)
# HERE IS A LIST OF VARIABLES from dataTable1 AND LABELS FOR THOSE VARIABLES
labelFrame1
# HERE IS A LIST OF VARIABLES TO WHICH CODES HAD BEEN ASSIGNED
codeLabelFrame1
attach(dataTable1)
# The analyses below are basic descriptions of the variables. After testing, they should be replaced.
summary(as.factor(UTMY))
summary(as.numeric(PLOT_N))
summary(as.numeric(UTMX))