Displaying 1 result from an estimated 1 matches for "p38_annual".
2009 Sep 28
2
Help with time series
...tored as ascii files prior to reading them into R.
After reading the data sets read into R with no problem and I can us the ts
function to coerce them to time series, sometimes this works and sometimes
it fails.
For example.
P38_SubB <-
read.table("A:\\Data\\Output\\Sparrow\\Hydro_Data\\P38_Annual.txt",
header=TRUE, skip=1, sep=",", stringsAsFactors=FALSE)
P38_SubB$GS <- rep(0.85, dim(P38_SubB)[1]) # GS is the
ground surface elevation, which is not included in the initial file.
P38_SubB$Depth <- as.numeric(P38_SubB$P38_stage) -
as.numeric(P38_SubB$GS)...