Displaying 2 results from an estimated 2 matches for "basinid".
Did you mean:
basing
2004 Aug 31
1
appending data to a dataframe
Dear R users,
I am sorry to ask you such a pathetic newbie question, but how does one
append data at the end of a data frame?
I am working with GRASS/R library, but the question is about R.
I have a data.frame containing the following variables
basinID, distoutlet, drainage_area, slope
These variables are stored for all pixels of Grass Raster objects. For each
drainage basin (basinID), I'd like to find the maximum of distoutlet. How
can I store the pair of info (bv$ID, max(bv$distoutlet)) at each step of the
for loop ?
I presume something l...
2007 May 16
1
Problem with Sweave
...tt{boxplot} and \texttt{lattice} figures into a \LaTeX{} document
<<>>=
library(verification)
library(lattice)
dat<-read.table("verification_summary_20051024_table.txt",sep="\t",header=TRUE)
\begin{center}
<<fig=TRUE,echo=FALSE>>=
boxplot(dat$MAE ~ dat$BASINID)
abline(h=1)
abline(h=0.5,col="red")
@
\end{center}
\end{document}
I get the following error:
xt4-tir:adams> echo 'Sweave("test.Rnw")' | R --vanilla --quiet
> Sweave("test.Rnw")
Writing to file test.tex
Processing code chunks ...
1 : echo term verbat...