-
Notifications
You must be signed in to change notification settings - Fork 0
/
layers.R
34 lines (23 loc) · 974 Bytes
/
layers.R
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
##Generic files to read in test file
##Files are tab delimited.
setwd("X:/Claire/Management Strategy Evaluation/demo/inputs")
pu <- read.table("pu.dat", sep="\t", header=TRUE)
head(pu)
bound <- read.table("bound.dat", sep="\t", header=TRUE)
head(bound)
puvspr <- read.table("puvspr.dat", sep="\t", header=TRUE)
head(puvspr)
puvspr_sporder <- read.table("puvspr_sporder.dat", sep="\t", header=TRUE)
head(puvspr_sporder)
spec <- read.table("spec.dat", sep="\t", header=TRUE)
head(spec)
setwd("X:/Claire/Management Strategy Evaluation/demo")
input <- read.table("input.dat", sep="\t", header=FALSE,
blank.lines.skip=FALSE)
write.table(input, "inputout.dat", row.names=FALSE, quote=FALSE,
col.names=FALSE)
setwd("K:/marxanAuto/seed - Copy")
input <- read.table("input.dat", sep="\t", header=FALSE,
blank.lines.skip=FALSE)
write.table(input, "input.dat", row.names=FALSE, quote=FALSE,
col.names=FALSE)