search for: tabular

Displaying 20 results from an estimated 376 matches for "tabular".

2015 Jun 09
3
Tablas con tabular en latex
...n} \begin{document} \SweaveOpts{concordance=TRUE} \include{math} <<echo=TRUE>>= save.image() load("./.RData") library("tables") library("xtable") attach(lfebrero) @ \section*{Informe} \subsection*{Llamadas por dia} <<echo=TRUE,results=tex>>= tabular(FECHA_LLAMADA ~ 1, data=lfebrero) @ \end{document}com ************* Sin embargo obtengo el error "Missing $ inserted". Creo que el error lo genera la función latex() al general el código latex de la salida de la función tabular() Muchas gracias. Saludos. [[alternative HTML vers...
2012 Jul 26
4
Variables in a Tabular form. easily saved in a txt file
Dear all, I would like to save few variable-names with their values in a tabular form, with that I mean that files can be printed easily in R in a tabular form and also saved in a ascii file that when one opens it see also the variables in a nice tabular format. IS that possible? Below a small example of how should look results in R and in a txt file.              Posta...
2011 Oct 28
1
xtable with \begin{tabular} and only.contents
...tions and labels in my latex document rather than having them contained in my xtable output file (I haven't fully gone to sweave yet). I know I can do something like this by using the 'only.contents' argument in xtable. Unfortunately, the only.contents argument also removes the \begin{tabular}{rrrrrr} & \end{tabular} (in the example below) of the table. This means that I have to go look up each table to determine the number of columns. Is there a more automated way that I am missing? i.e only.contents but with tabular headers (but not \begin{table})? Thank you. CODE: ## Demons...
2004 Jan 20
2
Error: unknown identifier {|} in tabular format {|l|c|c|c|}
I've got a package I would like to send out for testing and have noticed a "problem" with the \tabular portion of the help "compiler" the code for inserting vertical lines, in the tabular environment, causes the build to choke, but not the check command. C:\>rcmd build --binary -docs=all nlsystemfit \tabular{|l|c|c|c|}{ \hline Method \tab Instruments \tab Objective Functi...
2004 Jan 18
0
xtable feature addition suggestion
Hi, attached follows a patch to add a feature that I think it would be useful having in the print.xtable function of the xtable package. It adds the option 'tabular.environment' to that function, which could be used to set an alternative tabular environment, as the name already suggests. This is particulary useful when dealing with long tables, which do not fit in a single page. In the default behaviour, using \begin{tabular} ... \end{tabular}, everythi...
2009 Apr 10
1
How to handle tabular form data in lmer without expanding the data into binary outcome form?
Dear R-gurus: I have a question about lmer. Basically, I have a dataset, in which each observation records number of trials (N) and number of events (Y) given a covariate combination(X) and group id (grp_id). So, my dataset is in tabular form. (in case my explanation of tabular form is unclear, please see the link: http://www.stat.psu.edu/online/development/stat504/06_logreg/11_logreg_fitmodel.htm ) My question: what is the lmer syntax for tabular data ("model Y/N=X" is the what SAS does as seen in the link above). In sp...
2013 Apr 25
0
tables: proper use of Hline() in tabular()
Dear all, I am unable to understand how Hline() works in tabular(). I've read the vignette and the help page, and here this example compiles perfectly fine: latex( tabular( Species + Hline() + 1 ~ Heading()*mean*All(iris), data=iris) ) However, if I try it on my own data it fails. Consider this: set.seed(1) Xa <- data.frame(p=rep(c("...
2012 Oct 10
6
Exporting summary plm results to latex
Dear all, I am trying to export my fixed effect results to Latex. I am using the plm package with the summary function. However, it does not look like apsrtable, stargazer, or any other package can accompany using the plm package. I am interested in a classic table with the coefficient in one row followed by the standard error in paranthesis in the next row and stars by the coefficient to show
2004 Mar 12
4
Sweave and R output: possible to suppress "Schunk" tags in *.tex file output?
Hello, I would like to fill the rows of a Latex tabular environment with output from R, as in \begin{table} \caption{Table caption.} \label{tab:events} \begin{tabular}{c r r r r r} \hline <<echo=false,results=tex>>= fill.my.table.rows() @ \end{tabular} \end{table} Sweave produces the output inside \begin{Schunk} and \end{Schun...
2013 May 24
2
xtable() with booktabs option problem
I could have sworn that yesterday xtable(file, booktabs = TRUE) was giving me toprule , midrule and bottomrule outout. Today : library(xtable) aa <- table( sample(letters[1:9], 100, replace = TRUE)) xtable(aa, booktabs = TRUE) gives me \begin{table}[ht] \centering \begin{tabular}{rr} \hline & V1 \\ \hline a & 15 \\ b & 11 \\ c & 13 \\ d & 14 \\ e & 10 \\ f & 12 \\ g & 10 \\ h & 6 \\ i & 9 \\ \hline \end{tabular} \end{table} What stunningly stupid thing am I doing? John Kane Kingston ON C...
1998 Jan 07
0
tabular environment for Rd files
I have added a preliminary version of a tabular environment to Rdconv and committed it to the current development sources. Syntax: \tabular{format}{ aaa \tab bbb \tab ccc \cr xxx \tab yyy \tab zzz } i.e., the column seperator is \tab and the line seperator is \cr format is a usual LaTeX tabular format string, e.g in the above example it...
2008 Dec 23
2
Tabular output: from R to Excel or HTML
What is the equivalent for formatted tabular output of the various very sophisticated plotting tools in R (plot, lattice, ggplot2)? In particular, I'd like to be able to produce formatted Excel spreadsheets (using color, fonts, borders, etc. -- probably via Excel XML) and formatted HTML tables (ideally through a format-independent interf...
2001 Feb 09
1
tabular data (was RE: [R] Removing "row.names")
Hi, I agree that replacing data.frames for modeling functions would be too painful. Also I agree with Thomas that new class(es) for tabular data should not inherit from data.frame, and that data.frames should conceptually inherit from some other base tabular data class. At this point I'm not suggesting anything in concrete --- I haven't sorted it out in my own mind --- but I want to point out that (1) we already have sever...
2009 Mar 05
4
including tabular information with a plot in R Graphics
...t find a solution to in the documetnation. I have a nice barplot. Below this I would also like a table with some information relating to the plot. My idea was to have the plot and table on the same graphics window so I can output them as an image file for a report. Does anybody know how to include tabular information from a dataset or table into the graphics device? Is there a better/more correct way to output tables and graphics to a single file? Thanks very much, Richie [[alternative HTML version deleted]]
2011 Apr 14
0
Reshaping and plotting tabular data
Hi- Tabular data have been provided to me within .csv files. I need to transform the data from tabular format into a dataframe with three columns. The columns need to be the table row id, table column id, and the tabulated variable. An example dataset can be downloaded here: https://docs.google.com/leaf?id=0B...
2012 Feb 26
1
Sweave Print xtable
Hi, I'm working with Sweave and I have some trouble generating table. The R code is: print(xtable(myTable, caption ="", label="tab:myTab", digits=3), tabular.environment='tabular', floating=TRUE, caption.placement="top",size="\\scriptsize") and the resulting LaTeX table is: \begin{table}[ht] \begin{center} \caption{Principal component analysis of soil dispersed in water} \label{tab:myTab} {\scriptsize \begin{...
2007 Jun 20
2
"xtable" results doesn't correspond to data.frame
...le) <- c(" "," ","number of patients","%") example.xtable <- xtable(example.table) print.xtable(example.xtable, include.rownames=FALSE) I can seem to get latex output which corresponds to the data.frame which is, \begin{table}[ht] \begin{center} \begin{tabular}{llll} \hline & & number of patients & \% \\ \hline Gender & & & \\ & Male & 3 & 0.428571428571429 \\ & Female & 4 & 0.571428571428571 \\ \hline \end{tabular} \end{center} \end{table}
2013 Apr 19
2
tables package - error message of "duplicate values"
Dear expeRts! when I try summarize data using "tabular" of tables package.. here is an example.. > a <- data.frame(a=rep(10,10),b=round(runif(10,10,20)),c=round(runif(10,40,50))) > a a b c 1 10 14 44 2 10 17 40 3 10 13 40 4 10 18 40 5 10 11 49 6 10 16 46 7 10 15 43 8 10 19 49 9 10 19 49 10 10 13 45 > tabular((a+1)~(n=1)...
2010 Nov 22
1
Problem setting the number of digits in xtable
...) > > xtmp <- xtable(tmp) > > digits(xtmp) <- c(0,0,3,4) > > print(xtmp, include.rownames = FALSE) # row names produced : > % latex table generated in R 2.12.0 by xtable 1.5-6 package > % Mon Nov 22 17:35:00 2010 > \begin{table}[ht] > \begin{center} > \begin{tabular}{rrr} > \hline > 1 & 2 & 3 \\ > \hline > -2 & -2.158 & 2.8886 \\ > 1 & 1.330 & 0.4677 \\ > -0 & 0.486 & -0.3319 \\ > \hline > \end{tabular} > \end{center} > \end{table} But this won't work : > > mydata >...
2012 Feb 17
4
How can I tabulate time series data (in RStudio or any other R editor)?
...21 22 If I click the variable "a1ts" on the workspace, I see structure(11:22, .Tsp = c(1978, 1980.75, 4), class = "ts") If I coerce the variable to become a matrix, > a1tsm<-as.matrix(a1ts) and click the variable "a1tsm", I see the vector in a tabular form and can paste it into Excel , but I don't see the dates at all V1 1 11 2 12 3 13 4 14 5 15 6 16 7 17 8 18 9 19 10 20 11 21 12 22 How could I see both the dates and the data in a tabular form? The second question is that if I have another data sequence, how can I combine the t...