[Dplr-commits] r978 - pkg/dplR/man
noreply at r-forge.r-project.org
noreply at r-forge.r-project.org
Mon Mar 23 15:27:43 CET 2015
Author: mvkorpel
Date: 2015-03-23 15:27:43 +0100 (Mon, 23 Mar 2015)
New Revision: 978
Modified:
pkg/dplR/man/bai.in.Rd
pkg/dplR/man/bai.out.Rd
pkg/dplR/man/ccf.series.rwl.Rd
pkg/dplR/man/chron.Rd
pkg/dplR/man/cms.Rd
pkg/dplR/man/combine.rwl.Rd
pkg/dplR/man/common.interval.Rd
pkg/dplR/man/corr.rwl.seg.Rd
pkg/dplR/man/corr.series.seg.Rd
pkg/dplR/man/crn.plot.Rd
pkg/dplR/man/detrend.Rd
pkg/dplR/man/detrend.series.Rd
pkg/dplR/man/ffcsaps.Rd
pkg/dplR/man/fill.internal.NA.Rd
pkg/dplR/man/gini.coef.Rd
pkg/dplR/man/glk.Rd
pkg/dplR/man/hanning.Rd
pkg/dplR/man/insert.ring.Rd
pkg/dplR/man/interseries.cor.Rd
pkg/dplR/man/morlet.Rd
pkg/dplR/man/net.Rd
pkg/dplR/man/plot.rwl.Rd
pkg/dplR/man/po.to.wc.Rd
pkg/dplR/man/pointer.Rd
pkg/dplR/man/powt.Rd
pkg/dplR/man/print.redfit.Rd
pkg/dplR/man/rasterPlot.Rd
pkg/dplR/man/rcs.Rd
pkg/dplR/man/read.ids.Rd
pkg/dplR/man/redfit.Rd
pkg/dplR/man/rwi.stats.running.Rd
pkg/dplR/man/rwl.stats.Rd
pkg/dplR/man/sea.Rd
pkg/dplR/man/seg.plot.Rd
pkg/dplR/man/sens1.Rd
pkg/dplR/man/sens2.Rd
pkg/dplR/man/skel.plot.Rd
pkg/dplR/man/spag.plot.Rd
pkg/dplR/man/strip.rwl.Rd
pkg/dplR/man/tbrm.Rd
pkg/dplR/man/wavelet.plot.Rd
pkg/dplR/man/wc.to.po.Rd
pkg/dplR/man/write.compact.Rd
pkg/dplR/man/write.crn.Rd
pkg/dplR/man/write.rwl.Rd
pkg/dplR/man/write.tridas.Rd
pkg/dplR/man/write.tucson.Rd
pkg/dplR/man/xskel.ccf.plot.Rd
pkg/dplR/man/xskel.plot.Rd
Log:
Added library() calls: examples run even if default packages are detached.
Modified: pkg/dplR/man/bai.in.Rd
===================================================================
--- pkg/dplR/man/bai.in.Rd 2015-03-23 14:22:41 UTC (rev 977)
+++ pkg/dplR/man/bai.in.Rd 2015-03-23 14:27:43 UTC (rev 978)
@@ -50,6 +50,8 @@
\seealso{ \code{\link{bai.out}} }
\examples{
library(graphics)
+library(stats)
+library(utils)
## Toy
n <- 100
## Make three fake tree-ring series to show that these funcs work on rwl objects
Modified: pkg/dplR/man/bai.out.Rd
===================================================================
--- pkg/dplR/man/bai.out.Rd 2015-03-23 14:22:41 UTC (rev 977)
+++ pkg/dplR/man/bai.out.Rd 2015-03-23 14:27:43 UTC (rev 978)
@@ -50,8 +50,10 @@
Nevada Reno, \acronym{USA}. Patched and improved by Mikko Korpela. }
\seealso{ \code{\link{bai.in}} }
\examples{
+library(graphics)
+library(utils)
\dontrun{
-library(graphics)
+library(stats)
## Toy
n <- 100
## Make three fake tree-ring series to show that these funcs work on rwl objects
Modified: pkg/dplR/man/ccf.series.rwl.Rd
===================================================================
--- pkg/dplR/man/ccf.series.rwl.Rd 2015-03-23 14:22:41 UTC (rev 977)
+++ pkg/dplR/man/ccf.series.rwl.Rd 2015-03-23 14:27:43 UTC (rev 978)
@@ -102,6 +102,7 @@
\bold{28}(4), 251\enc{–}{--}258.
}
\examples{
+library(utils)
data(co021)
dat <- co021
## Create a missing ring by deleting a year of growth in a random series
Modified: pkg/dplR/man/chron.Rd
===================================================================
--- pkg/dplR/man/chron.Rd 2015-03-23 14:22:41 UTC (rev 977)
+++ pkg/dplR/man/chron.Rd 2015-03-23 14:27:43 UTC (rev 978)
@@ -46,7 +46,9 @@
\seealso{ \code{\link{read.rwl}}, \code{\link{detrend}},
\code{\link{ar}}, \code{\link{crn.plot}}
}
-\examples{data(ca533)
+\examples{library(graphics)
+library(utils)
+data(ca533)
ca533.rwi <- detrend(rwl = ca533, method = "ModNegExp")
ca533.crn <- chron(ca533.rwi, prefix = "CAM")
plot(ca533.crn,xlab="Year",ylab="RWI")
Modified: pkg/dplR/man/cms.Rd
===================================================================
--- pkg/dplR/man/cms.Rd 2015-03-23 14:22:41 UTC (rev 977)
+++ pkg/dplR/man/cms.Rd 2015-03-23 14:27:43 UTC (rev 978)
@@ -65,6 +65,7 @@
}
\seealso{ \code{\link{detrend}}, \code{\link{chron}}, \code{\link{rcs}} }
\examples{library(graphics)
+library(utils)
data(gp.rwl)
data(gp.po)
gp.rwi <- cms(rwl = gp.rwl, po = gp.po)
Modified: pkg/dplR/man/combine.rwl.Rd
===================================================================
--- pkg/dplR/man/combine.rwl.Rd 2015-03-23 14:22:41 UTC (rev 977)
+++ pkg/dplR/man/combine.rwl.Rd 2015-03-23 14:27:43 UTC (rev 978)
@@ -30,7 +30,8 @@
\author{ Christian Zang. Patched by Mikko Korpela. }
-\examples{data(ca533)
+\examples{library(utils)
+data(ca533)
data(co021)
combi1 <- combine.rwl(list(ca533, co021))
## or alternatively for data.frames to combine
Modified: pkg/dplR/man/common.interval.Rd
===================================================================
--- pkg/dplR/man/common.interval.Rd 2015-03-23 14:22:41 UTC (rev 977)
+++ pkg/dplR/man/common.interval.Rd 2015-03-23 14:27:43 UTC (rev 978)
@@ -37,6 +37,7 @@
\seealso{ \code{\link{seg.plot}} }
\examples{
+library(utils)
data(co021)
co021.s <- common.interval(co021, type="series", make.plot=TRUE)
co021.y <- common.interval(co021, type="years", make.plot=TRUE)
Modified: pkg/dplR/man/corr.rwl.seg.Rd
===================================================================
--- pkg/dplR/man/corr.rwl.seg.Rd 2015-03-23 14:22:41 UTC (rev 977)
+++ pkg/dplR/man/corr.rwl.seg.Rd 2015-03-23 14:27:43 UTC (rev 978)
@@ -127,7 +127,8 @@
\code{\link{corr.series.seg}}, \code{\link{skel.plot}},
\code{\link{series.rwl.plot}}, \code{\link{ccf.series.rwl}}
}
-\examples{data(co021)
+\examples{library(utils)
+data(co021)
crs <- corr.rwl.seg(co021, seg.length = 100, label.cex = 1.25)
names(crs)
## Average correlation and p-value for the first few series
Modified: pkg/dplR/man/corr.series.seg.Rd
===================================================================
--- pkg/dplR/man/corr.series.seg.Rd 2015-03-23 14:22:41 UTC (rev 977)
+++ pkg/dplR/man/corr.series.seg.Rd 2015-03-23 14:27:43 UTC (rev 978)
@@ -77,7 +77,8 @@
\code{\link{corr.series.seg}}, \code{\link{skel.plot}},
\code{\link{series.rwl.plot}}, \code{\link{ccf.series.rwl}}
}
-\examples{data(co021)
+\examples{library(utils)
+data(co021)
dat <- co021
## Create a missing ring by deleting a year of growth in a random series
flagged <- dat$"641143"
Modified: pkg/dplR/man/crn.plot.Rd
===================================================================
--- pkg/dplR/man/crn.plot.Rd 2015-03-23 14:22:41 UTC (rev 977)
+++ pkg/dplR/man/crn.plot.Rd 2015-03-23 14:27:43 UTC (rev 978)
@@ -56,7 +56,9 @@
\author{ Andy Bunn. Patched and improved by Mikko Korpela. }
\seealso{ \code{\link{chron}}
}
-\examples{data(cana157)
+\examples{library(graphics)
+library(utils)
+data(cana157)
crn.plot(cana157,xlab='Year',ylab='RWI')
plot(cana157,xlab='Year',ylab='RWI', main='Twisted Tree Heartrot Hill')
# with added spline
Modified: pkg/dplR/man/detrend.Rd
===================================================================
--- pkg/dplR/man/detrend.Rd 2015-03-23 14:22:41 UTC (rev 977)
+++ pkg/dplR/man/detrend.Rd 2015-03-23 14:27:43 UTC (rev 978)
@@ -90,7 +90,8 @@
}
\author{ Andy Bunn. Improved by Mikko Korpela. }
\seealso{ \code{\link{detrend.series}} }
-\examples{data(ca533)
+\examples{library(utils)
+data(ca533)
## Detrend using modified exponential decay. Returns a data.frame
ca533.rwi <- detrend(rwl = ca533, method = "ModNegExp")
Modified: pkg/dplR/man/detrend.series.Rd
===================================================================
--- pkg/dplR/man/detrend.series.Rd 2015-03-23 14:22:41 UTC (rev 977)
+++ pkg/dplR/man/detrend.series.Rd 2015-03-23 14:27:43 UTC (rev 978)
@@ -192,6 +192,7 @@
related to negative output values is based on work by Jacob Cecile. }
\seealso{ \code{\link{detrend}} }
\examples{library(stats)
+library(utils)
## Using a plausible representation of a tree-ring series
gt <- 0.5 * exp (-0.05 * 1:200) + 0.2
noise <- c(arima.sim(model = list(ar = 0.7), n = 200, sd = 0.5))+2
Modified: pkg/dplR/man/ffcsaps.Rd
===================================================================
--- pkg/dplR/man/ffcsaps.Rd 2015-03-23 14:22:41 UTC (rev 977)
+++ pkg/dplR/man/ffcsaps.Rd 2015-03-23 14:27:43 UTC (rev 978)
@@ -50,14 +50,15 @@
\seealso{ \code{\link{hanning}}, \code{\link{detrend}} }
-\examples{docFile <- system.file("doc", "math-dplR.pdf", package="dplR")
+\examples{library(graphics)
+library(utils)
+docFile <- system.file("doc", "math-dplR.pdf", package="dplR")
cat("See the following PDF for mathematical details:\n")
cat(docFile, sep="\n")
\dontrun{
if (interactive() && requireNamespace("Biobase")) {
Biobase::openPDF(docFile)
}
-library(graphics)
## Use series CAM011 from the Campito data set
data(ca533)
series <- ca533[, "CAM011"]
Modified: pkg/dplR/man/fill.internal.NA.Rd
===================================================================
--- pkg/dplR/man/fill.internal.NA.Rd 2015-03-23 14:22:41 UTC (rev 977)
+++ pkg/dplR/man/fill.internal.NA.Rd 2015-03-23 14:27:43 UTC (rev 978)
@@ -54,6 +54,7 @@
}
\examples{
library(graphics)
+library(stats)
foo <- data.frame(x1=c(rnorm(5), NA, NA, rnorm(3)),
x2=c(rnorm(10)),
x3=c(NA, NA, rnorm(3), NA, rnorm(4)),
Modified: pkg/dplR/man/gini.coef.Rd
===================================================================
--- pkg/dplR/man/gini.coef.Rd 2015-03-23 14:22:41 UTC (rev 977)
+++ pkg/dplR/man/gini.coef.Rd 2015-03-23 14:27:43 UTC (rev 978)
@@ -40,6 +40,7 @@
if (interactive() && requireNamespace("Biobase")) {
Biobase::openPDF(docFile)
}}
+library(utils)
data(ca533)
ca533.rwi <- detrend(rwl = ca533, method = "ModNegExp")
ca533.crn <- chron(ca533.rwi, prefix = "CAM")
Modified: pkg/dplR/man/glk.Rd
===================================================================
--- pkg/dplR/man/glk.Rd 2015-03-23 14:22:41 UTC (rev 977)
+++ pkg/dplR/man/glk.Rd 2015-03-23 14:27:43 UTC (rev 978)
@@ -56,7 +56,8 @@
Netherlands, 276 p.
}
-\examples{data(ca533)
+\examples{library(utils)
+data(ca533)
ca533.glk <- glk(ca533)
mean(ca533.glk, na.rm = TRUE)
}
Modified: pkg/dplR/man/hanning.Rd
===================================================================
--- pkg/dplR/man/hanning.Rd 2015-03-23 14:22:41 UTC (rev 977)
+++ pkg/dplR/man/hanning.Rd 2015-03-23 14:27:43 UTC (rev 978)
@@ -28,6 +28,7 @@
\seealso{ \code{\link[stats]{filter} } }
\examples{library(graphics)
+library(utils)
data(ca533)
yrs <- as.numeric(rownames(ca533))
y <- ca533[, 1]
Modified: pkg/dplR/man/insert.ring.Rd
===================================================================
--- pkg/dplR/man/insert.ring.Rd 2015-03-23 14:22:41 UTC (rev 977)
+++ pkg/dplR/man/insert.ring.Rd 2015-03-23 14:27:43 UTC (rev 978)
@@ -30,7 +30,8 @@
\author{ Andy Bunn. Patched and improved by Mikko Korpela. }
\seealso{ \code{\link{dplR}}
}
-\examples{data(gp.rwl)
+\examples{library(utils)
+data(gp.rwl)
series <- gp.rwl$"50A"
names(series) <- rownames(gp.rwl)
series <- series[!is.na(series)]
Modified: pkg/dplR/man/interseries.cor.Rd
===================================================================
--- pkg/dplR/man/interseries.cor.Rd 2015-03-23 14:22:41 UTC (rev 977)
+++ pkg/dplR/man/interseries.cor.Rd 2015-03-23 14:27:43 UTC (rev 978)
@@ -56,7 +56,8 @@
}
\author{ Andy Bunn, patched and improved by Mikko Korpela }
\seealso{ \code{\link{rwl.stats}}, \code{\link{rwi.stats}} }
-\examples{data(gp.rwl)
+\examples{library(utils)
+data(gp.rwl)
foo <- interseries.cor(gp.rwl)
# compare to:
# corr.rwl.seg(rwl=gp.rwl,make.plot=FALSE)$overall
Modified: pkg/dplR/man/morlet.Rd
===================================================================
--- pkg/dplR/man/morlet.Rd 2015-03-23 14:22:41 UTC (rev 977)
+++ pkg/dplR/man/morlet.Rd 2015-03-23 14:27:43 UTC (rev 978)
@@ -44,7 +44,8 @@
}
\author{ Andy Bunn. Patched and improved by Mikko Korpela. }
\seealso{ \code{\link{wavelet.plot}} }
-\examples{data(ca533)
+\examples{library(utils)
+data(ca533)
ca533.rwi <- detrend(rwl = ca533, method = "ModNegExp")
ca533.crn <- chron(ca533.rwi, prefix = "CAM", prewhiten = FALSE)
Years <- as.numeric(rownames(ca533.crn))
Modified: pkg/dplR/man/net.Rd
===================================================================
--- pkg/dplR/man/net.Rd 2015-03-23 14:22:41 UTC (rev 977)
+++ pkg/dplR/man/net.Rd 2015-03-23 14:27:43 UTC (rev 978)
@@ -76,7 +76,8 @@
\author{
Mikko Korpela
}
-\examples{data(ca533)
+\examples{library(utils)
+data(ca533)
ca533.rwi <- detrend(rwl = ca533, method = "ModNegExp")
ca533.net <- net(ca533.rwi)
tail(ca533.net$all)
Modified: pkg/dplR/man/plot.rwl.Rd
===================================================================
--- pkg/dplR/man/plot.rwl.Rd 2015-03-23 14:22:41 UTC (rev 977)
+++ pkg/dplR/man/plot.rwl.Rd 2015-03-23 14:27:43 UTC (rev 978)
@@ -29,7 +29,9 @@
\seealso{
\code{\link{read.rwl}}
}
-\examples{data(co021)
+\examples{library(graphics)
+library(utils)
+data(co021)
plot(co021, plot.type="seg")
plot(co021, plot.type="spag")
plot(co021, plot.type="spag", zfac=2)
Modified: pkg/dplR/man/po.to.wc.Rd
===================================================================
--- pkg/dplR/man/po.to.wc.Rd 2015-03-23 14:22:41 UTC (rev 977)
+++ pkg/dplR/man/po.to.wc.Rd 2015-03-23 14:27:43 UTC (rev 978)
@@ -38,6 +38,7 @@
}
\examples{
\dontrun{
+library(utils)
data(gp.po)
all(wc.to.po(po.to.wc(gp.po)) == gp.po)
}
Modified: pkg/dplR/man/pointer.Rd
===================================================================
--- pkg/dplR/man/pointer.Rd 2015-03-23 14:22:41 UTC (rev 977)
+++ pkg/dplR/man/pointer.Rd 2015-03-23 14:27:43 UTC (rev 978)
@@ -112,6 +112,7 @@
\seealso{ \code{\link{skel.plot}} }
\examples{## Pointer years calculation on ring-width series. Returns a data.frame.
+library(utils)
data(gp.rwl)
py <- pointer(rwl=gp.rwl, rgv.thresh=10, nseries.thresh=75,
round.decimals=2)
Modified: pkg/dplR/man/powt.Rd
===================================================================
--- pkg/dplR/man/powt.Rd 2015-03-23 14:22:41 UTC (rev 977)
+++ pkg/dplR/man/powt.Rd 2015-03-23 14:27:43 UTC (rev 978)
@@ -34,7 +34,8 @@
}
\seealso{\code{\link{rcs}}
}
-\examples{data(gp.rwl)
+\examples{library(utils)
+data(gp.rwl)
gp.pt <- powt(gp.rwl)
}
\author{
Modified: pkg/dplR/man/print.redfit.Rd
===================================================================
--- pkg/dplR/man/print.redfit.Rd 2015-03-23 14:22:41 UTC (rev 977)
+++ pkg/dplR/man/print.redfit.Rd 2015-03-23 14:27:43 UTC (rev 978)
@@ -69,7 +69,8 @@
\seealso{
\code{\link{redfit}}
}
-\examples{data(ca533)
+\examples{library(utils)
+data(ca533)
t <- as.numeric(row.names(ca533))
x <- ca533[[1]]
idx <- which(!is.na(x))
Modified: pkg/dplR/man/rasterPlot.Rd
===================================================================
--- pkg/dplR/man/rasterPlot.Rd 2015-03-23 14:22:41 UTC (rev 977)
+++ pkg/dplR/man/rasterPlot.Rd 2015-03-23 14:27:43 UTC (rev 978)
@@ -88,7 +88,9 @@
requires one of the following \code{\link{capabilities}}:
\code{"png"}, \code{"aqua"} or \code{"cairo"}.
}
-\examples{plot(1:5, type = "n")
+\examples{library(graphics)
+library(stats)
+plot(1:5, type = "n")
foo <- runif(5, min = 1, max = 5)
rasterPlot(quote(points(foo)))
}
Modified: pkg/dplR/man/rcs.Rd
===================================================================
--- pkg/dplR/man/rcs.Rd 2015-03-23 14:22:41 UTC (rev 977)
+++ pkg/dplR/man/rcs.Rd 2015-03-23 14:27:43 UTC (rev 978)
@@ -90,7 +90,8 @@
}
\seealso{ \code{\link{detrend}}, \code{\link{chron}}, \code{\link{cms}},
\code{\link{ffcsaps}} }
-\examples{data(gp.rwl)
+\examples{library(utils)
+data(gp.rwl)
data(gp.po)
gp.rwi <- rcs(rwl = gp.rwl, po = gp.po, biweight = TRUE,
rc.out = TRUE, make.plot = FALSE)
Modified: pkg/dplR/man/read.ids.Rd
===================================================================
--- pkg/dplR/man/read.ids.Rd 2015-03-23 14:22:41 UTC (rev 977)
+++ pkg/dplR/man/read.ids.Rd 2015-03-23 14:27:43 UTC (rev 978)
@@ -248,7 +248,8 @@
\author{ Andy Bunn (original version) and Mikko Korpela (patches,
\code{\var{stc}="auto"}, \code{\var{fix.typos}}, etc.). }
\seealso{ \code{\link{rwi.stats}}, \code{\link{read.rwl}} }
-\examples{data(ca533)
+\examples{library(utils)
+data(ca533)
read.ids(ca533, stc = c(3, 2, 3))
autoread.ids(ca533)
}
Modified: pkg/dplR/man/redfit.Rd
===================================================================
--- pkg/dplR/man/redfit.Rd 2015-03-23 14:22:41 UTC (rev 977)
+++ pkg/dplR/man/redfit.Rd 2015-03-23 14:27:43 UTC (rev 978)
@@ -368,6 +368,7 @@
# Note the long-term low-freq signal in the data. E.g.,
# crn.plot(cana157)
+library(utils)
data(cana157)
yrs <- as.numeric(rownames(cana157))
x <- cana157[, 1]
Modified: pkg/dplR/man/rwi.stats.running.Rd
===================================================================
--- pkg/dplR/man/rwi.stats.running.Rd 2015-03-23 14:22:41 UTC (rev 977)
+++ pkg/dplR/man/rwi.stats.running.Rd 2015-03-23 14:27:43 UTC (rev 978)
@@ -223,7 +223,8 @@
\seealso{ \code{\link{detrend}}, \code{\link{cor}},
\code{\link{read.ids}}, \code{\link{rwi.stats}},
\code{\link{corr.rwl.seg}} }
-\examples{data(gp.rwl)
+\examples{library(utils)
+data(gp.rwl)
data(gp.po)
gp.rwi <- cms(rwl = gp.rwl, po = gp.po)
gp.ids <- read.ids(gp.rwl, stc = c(0, 2, 1))
Modified: pkg/dplR/man/rwl.stats.Rd
===================================================================
--- pkg/dplR/man/rwl.stats.Rd 2015-03-23 14:22:41 UTC (rev 977)
+++ pkg/dplR/man/rwl.stats.Rd 2015-03-23 14:27:43 UTC (rev 978)
@@ -66,7 +66,8 @@
}
\author{ Andy Bunn. Slightly improved by Mikko Korpela. }
\seealso{ \code{\link{rwi.stats}}, \code{\link{read.rwl}} }
-\examples{data(ca533)
+\examples{library(utils)
+data(ca533)
rwl.stats(ca533)
summary(ca533)
}
Modified: pkg/dplR/man/sea.Rd
===================================================================
--- pkg/dplR/man/sea.Rd 2015-03-23 14:22:41 UTC (rev 977)
+++ pkg/dplR/man/sea.Rd 2015-03-23 14:27:43 UTC (rev 978)
@@ -60,6 +60,7 @@
}
\examples{library(graphics)
+library(utils)
data(cana157)
event.years <- c(1631, 1742, 1845)
cana157.sea <- sea(cana157, event.years)
Modified: pkg/dplR/man/seg.plot.Rd
===================================================================
--- pkg/dplR/man/seg.plot.Rd 2015-03-23 14:22:41 UTC (rev 977)
+++ pkg/dplR/man/seg.plot.Rd 2015-03-23 14:27:43 UTC (rev 978)
@@ -23,7 +23,8 @@
}
\author{ Andy Bunn. Patched and improved by Mikko Korpela. }
\seealso{ \code{\link{spag.plot}} }
-\examples{data(co021)
+\examples{library(utils)
+data(co021)
seg.plot(co021, main = "Campito Mountain")
}
\keyword{ hplot }
Modified: pkg/dplR/man/sens1.Rd
===================================================================
--- pkg/dplR/man/sens1.Rd 2015-03-23 14:22:41 UTC (rev 977)
+++ pkg/dplR/man/sens1.Rd 2015-03-23 14:27:43 UTC (rev 978)
@@ -35,7 +35,8 @@
}
\author{ Mikko Korpela, based on original by Andy Bunn }
\seealso{ \code{\link{sens2}}, \code{\link{rwl.stats}} }
-\examples{data(ca533)
+\examples{library(utils)
+data(ca533)
ca533.rwi <- detrend(rwl = ca533, method = "ModNegExp")
sens1(ca533.rwi[, 1])
}
Modified: pkg/dplR/man/sens2.Rd
===================================================================
--- pkg/dplR/man/sens2.Rd 2015-03-23 14:22:41 UTC (rev 977)
+++ pkg/dplR/man/sens2.Rd 2015-03-23 14:27:43 UTC (rev 978)
@@ -34,7 +34,8 @@
}
\author{ Mikko Korpela, based on original by Andy Bunn }
\seealso{ \code{\link{sens1}}, \code{\link{rwl.stats}} }
-\examples{data(ca533)
+\examples{library(utils)
+data(ca533)
ca533.rwi <- detrend(rwl = ca533, method = "ModNegExp")
sens2(ca533.rwi[, 1])
}
Modified: pkg/dplR/man/skel.plot.Rd
===================================================================
--- pkg/dplR/man/skel.plot.Rd 2015-03-23 14:22:41 UTC (rev 977)
+++ pkg/dplR/man/skel.plot.Rd 2015-03-23 14:27:43 UTC (rev 978)
@@ -75,7 +75,7 @@
\author{ Andy Bunn. Patched and improved by Mikko Korpela. }
\seealso{ \code{\link{Devices}}, \code{\link{hanning}} }
-\examples{library(grDevices)
+\examples{library(utils)
data(co021)
x <- co021[,33]
x.yrs <- as.numeric(rownames(co021))
@@ -85,6 +85,7 @@
## On a raw ring width series - dated with names
skel.plot(x, yr.vec = x.yrs, sname = x.name, master = TRUE)
\dontrun{
+library(grDevices)
## Try cross-dating
y <- co021[, 11]
y.yrs <- as.numeric(rownames(co021))
Modified: pkg/dplR/man/spag.plot.Rd
===================================================================
--- pkg/dplR/man/spag.plot.Rd 2015-03-23 14:22:41 UTC (rev 977)
+++ pkg/dplR/man/spag.plot.Rd 2015-03-23 14:27:43 UTC (rev 978)
@@ -36,7 +36,8 @@
}
\author{ Andy Bunn. Patched and improved by Mikko Korpela. }
\seealso{ \code{\link{seg.plot}} }
-\examples{data(co021)
+\examples{library(utils)
+data(co021)
spag.plot(co021)
spag.plot(co021, zfac = 2)
}
Modified: pkg/dplR/man/strip.rwl.Rd
===================================================================
--- pkg/dplR/man/strip.rwl.Rd 2015-03-23 14:22:41 UTC (rev 977)
+++ pkg/dplR/man/strip.rwl.Rd 2015-03-23 14:27:43 UTC (rev 978)
@@ -77,6 +77,7 @@
\code{\link{rwi.stats}}
}
\examples{
+library(utils)
data(anos1)
anos1.ids <- read.ids(anos1, stc = c(4, 3, 1))
srwl <- strip.rwl(anos1, ids = anos1.ids, verbose = TRUE)
Modified: pkg/dplR/man/tbrm.Rd
===================================================================
--- pkg/dplR/man/tbrm.Rd 2015-03-23 14:22:41 UTC (rev 977)
+++ pkg/dplR/man/tbrm.Rd 2015-03-23 14:27:43 UTC (rev 978)
@@ -53,7 +53,8 @@
\author{ Mikko Korpela }
\seealso{ \code{\link{chron}} }
\examples{
-
+library(stats)
+library(utils)
foo <- rnorm(100)
tbrm(foo)
mean(foo)
Modified: pkg/dplR/man/wavelet.plot.Rd
===================================================================
--- pkg/dplR/man/wavelet.plot.Rd 2015-03-23 14:22:41 UTC (rev 977)
+++ pkg/dplR/man/wavelet.plot.Rd 2015-03-23 14:27:43 UTC (rev 978)
@@ -85,7 +85,9 @@
}
\author{ Andy Bunn. Patched and improved by Mikko Korpela. }
\seealso{ \code{\link{morlet}}, \code{\link{ffcsaps}}}
-\examples{data(ca533)
+\examples{library(stats)
+library(utils)
+data(ca533)
ca533.rwi <- detrend(rwl = ca533, method = "ModNegExp")
ca533.crn <- chron(ca533.rwi, prefix = "CAM", prewhiten = FALSE)
Years <- as.numeric(rownames(ca533.crn))
@@ -96,6 +98,8 @@
\dontrun{
## Alternative palette with better separation of colors
if (require(RColorBrewer)) {
+ ## RColorBrewer (1.1.2) uses but does not import rgb()
+ library(grDevices)
wavelet.plot(out.wave, key.cols=rev(brewer.pal(10, "Spectral")),
useRaster = NA)
}
Modified: pkg/dplR/man/wc.to.po.Rd
===================================================================
--- pkg/dplR/man/wc.to.po.Rd 2015-03-23 14:22:41 UTC (rev 977)
+++ pkg/dplR/man/wc.to.po.Rd 2015-03-23 14:27:43 UTC (rev 978)
@@ -35,7 +35,8 @@
\seealso{
\code{\link{po.to.wc}}, \code{\link{rcs}}, \code{\link{read.tridas}}
}
-\examples{data(gp.po)
+\examples{library(utils)
+data(gp.po)
all(wc.to.po(po.to.wc(gp.po)) == gp.po)
}
\keyword{ manip }
Modified: pkg/dplR/man/write.compact.Rd
===================================================================
--- pkg/dplR/man/write.compact.Rd 2015-03-23 14:22:41 UTC (rev 977)
+++ pkg/dplR/man/write.compact.Rd 2015-03-23 14:27:43 UTC (rev 978)
@@ -54,7 +54,8 @@
\seealso{ \code{\link{write.rwl}}, \code{\link{write.tucson}},
\code{\link{write.tridas}}, \code{\link{read.compact}}
}
-\examples{data(co021)
+\examples{library(utils)
+data(co021)
fname <- write.compact(rwl.df = co021,
fname = tempfile(fileext=".rwl"),
append = FALSE, prec = 0.001)
Modified: pkg/dplR/man/write.crn.Rd
===================================================================
--- pkg/dplR/man/write.crn.Rd 2015-03-23 14:22:41 UTC (rev 977)
+++ pkg/dplR/man/write.crn.Rd 2015-03-23 14:27:43 UTC (rev 978)
@@ -76,7 +76,8 @@
\author{ Andy Bunn. Patched and improved by Mikko Korpela. }
\seealso{ \code{\link{chron}}, \code{\link{read.crn}}
}
-\examples{data(ca533)
+\examples{library(utils)
+data(ca533)
ca533.rwi <- detrend(rwl = ca533, method = "ModNegExp")
ca533.crn <- chron(ca533.rwi, prefix = "CAM")
fname1 <- write.crn(ca533.crn, tempfile(fileext=".crn"))
Modified: pkg/dplR/man/write.rwl.Rd
===================================================================
--- pkg/dplR/man/write.rwl.Rd 2015-03-23 14:22:41 UTC (rev 977)
+++ pkg/dplR/man/write.rwl.Rd 2015-03-23 14:27:43 UTC (rev 978)
@@ -40,7 +40,8 @@
\code{\link{write.compact}}, \code{\link{write.tridas}},
\code{\link{read.rwl}}
}
-\examples{data(co021)
+\examples{library(utils)
+data(co021)
co021.hdr <- list(site.id = "CO021",
site.name = "SCHULMAN OLD TREE NO. 1, MESA VERDE",
spp.code = "PSME", state.country = "COLORADO",
Modified: pkg/dplR/man/write.tridas.Rd
===================================================================
--- pkg/dplR/man/write.tridas.Rd 2015-03-23 14:22:41 UTC (rev 977)
+++ pkg/dplR/man/write.tridas.Rd 2015-03-23 14:27:43 UTC (rev 978)
@@ -368,7 +368,8 @@
\code{\link{write.compact}}, \code{\link{write.crn}},
\code{\link{read.tridas}} }
-\examples{## Write raw ring widths
+\examples{library(utils)
+## Write raw ring widths
data(co021)
fname1 <- write.tridas(rwl.df = co021,
fname = tempfile(fileext=".xml"), prec = 0.01,
Modified: pkg/dplR/man/write.tucson.Rd
===================================================================
--- pkg/dplR/man/write.tucson.Rd 2015-03-23 14:22:41 UTC (rev 977)
+++ pkg/dplR/man/write.tucson.Rd 2015-03-23 14:27:43 UTC (rev 978)
@@ -101,7 +101,8 @@
\code{\link{write.rwl}}, \code{\link{write.compact}},
\code{\link{write.tridas}}
}
-\examples{data(co021)
+\examples{library(utils)
+data(co021)
co021.hdr <- list(site.id = "CO021",
site.name = "SCHULMAN OLD TREE NO. 1, MESA VERDE",
spp.code = "PSME", state.country = "COLORADO",
Modified: pkg/dplR/man/xskel.ccf.plot.Rd
===================================================================
--- pkg/dplR/man/xskel.ccf.plot.Rd 2015-03-23 14:22:41 UTC (rev 977)
+++ pkg/dplR/man/xskel.ccf.plot.Rd 2015-03-23 14:27:43 UTC (rev 978)
@@ -64,7 +64,8 @@
\author{ Andy Bunn. Patched and improved by Mikko Korpela. }
\seealso{ \code{\link{ccf}}
}
-\examples{data(co021)
+\examples{library(utils)
+data(co021)
dat <- co021
#corrupt a series
bad.series <- dat$"641143"
Modified: pkg/dplR/man/xskel.plot.Rd
===================================================================
--- pkg/dplR/man/xskel.plot.Rd 2015-03-23 14:22:41 UTC (rev 977)
+++ pkg/dplR/man/xskel.plot.Rd 2015-03-23 14:27:43 UTC (rev 978)
@@ -64,7 +64,8 @@
\author{ Andy Bunn. Patched and improved by Mikko Korpela. }
\seealso{ \code{\link{ccf}}
}
-\examples{data(co021)
+\examples{library(utils)
+data(co021)
dat <- co021
#corrupt a series
bad.series <- dat$"641143"
More information about the Dplr-commits
mailing list