search for: listoftables

Displaying 7 results from an estimated 7 matches for "listoftables".

2009 May 18
1
Barchart in lattice - wrong order of groups, data labels on top of each other, and a legend question
...as.factor(data$group) lapply(data,table,exclude=NULL) tables<-lapply(data,function(x){ out<-table(x) out<-prop.table(out) out<-round(out,3)*100 return(out) }) str(tables[2]) ##### Section 2: Generating a list of tables with percentages to be plotted in barcharts - just run: ##### listoftables<-list() for(i in 1:(length(data)-1)) { listoftables[[i]]<-data.frame() } for(i in 1:length(listoftables)) { total<-table(data[[i+1]]) groups<-table(data[[1]],data[[i+1]]) total.percents<-as.data.frame(t(as.vector(round(total*100/sum(total),1)))) groups.percents<-...
2012 Jan 16
4
Add grid lines to levelplot
I'm using the levelplot function in the lattice package. I am plotting a grid of cells and I want grid lines drawn between cells. I've spent a lot of time trying different options. I've also looked at panel.levelplot. The border parameter seems to be ignored or it doesn't mean cell border color. The panel.levelplot calls grid.rect but forces lwd=1e-5 instead the passed lwd. On
2004 Dec 29
3
using get() in assign()
I'm trying to rename the columns in a list of data.frames using the following... for(i in 1:length(filenames)) { assign(names(get(filenames[i])), c("name", "infood", "time") ) } R returns no errors, but the names are unchanged in the data.frames. The original names were things like > names(get(filenames[2])) [1] "Tc45w4.V1" "Tc45w4.V2"
2012 Aug 20
3
A LaTeX question -- Hope people won't mind
Hello All, Hope people won't mind my posting a LaTeX question here. I know a lot of people who use R are also using LaTeX. I'm in a bit of a rush to complete a document and am having trouble with one aspect of the formatting. I'm creating a list of tables using: \listoftables I also have some table captions that contain the number of patients in an anlysis like: \caption{Results for Random Forest Model Using Scoring Data (N = 700)} The tables look great. Trouble is that LaTeX inserts the "(N = 700)" into the text in the List of Tables at the beginning of th...
2004 Dec 28
3
read.table from a list of filenames
I am wondering if it is possible to read.table repeatedly from a list of file names into a new list of table names. For example: filenames <- list.files() then with a function like rf <- function(i) { word??(filename[i]) <- read.table(filenames[i]) } I can't seem to find a function like word?? that will be the object of another operation. If this worked, then I could repeat
2009 Jan 10
1
Hmisc-xtable label
...INTER CHINOOK JUVENILE PRODUCTION} \author{Felipe D. Carrillo} \date{January 5, 2009} \pagestyle{headings} \parskip 7.2pt \begin{document} \setkeys{Gin}{width=1.1\textwidth} \maketitle \tableofcontents The hyperlink of table 1 doesn't work!!!! but the hyperlink of table 2 works OK \newpage \listoftables \listoffigures \section{Introduction} \label{sec:introduction} Winter-run Chinook salmon is one of four distinct "runs" of Chinook salmon (Oncorhynchus tshawytscha).... \section{Study Area} The Sacramento River is the largest river system in California, flowing south through 600 kilometer...
2009 Jan 15
2
Interface to open source Reporting tools
...rillo} > \date{January 5, 2009} > \pagestyle{headings} > \parskip 7.2pt > \begin{document} > \setkeys{Gin}{width=1.1\textwidth} > \maketitle > > \tableofcontents > The hyperlink of table 1 doesn't work!!!! but the hyperlink of table 2 > works OK > \newpage > \listoftables > \listoffigures > \section{Introduction} > \label{sec:introduction} > Winter-run Chinook salmon is one of four distinct "runs" of Chinook salmon > (Oncorhynchus tshawytscha).... > \section{Study Area} > The Sacramento River is the largest river system in California,...