# Template construction
data(btnw)
b4<-makeBinTemplate(
"btnw.wav",
frq.lim=c(2, 8),
select="auto",
name="b4",
buffer=4,
amp.cutoff=-31,
binary=TRUE)
\dontrun{
#If using the 'acoustics' schema verbatim:
dbUploadTemplate(
templates = b4,
analyst = 1,
locationID = "MABI01",
date.recorded = "2012/05/22",
recording.equip = "SM2",
species.code = "BTNW",
type = "BIN")
#'acoustics' schema, different database name:
dbUploadTemplate(
templates = b4,
which.one = 1,
db.name = "LocalSQLdb",
uid = "EntryOnly",
pwd = "07H23BBM",
analyst = 1,
locationID = "MABI01",
date.recorded = "2012/05/22",
recording.equip = "SM2",
species.code = "BTNW",
type = "BIN")}Run the code above in your browser using DataLab