similar to: Print to file

Displaying 20 results from an estimated 40000 matches similar to: "Print to file"

2007 Oct 08
5
Specify plot size
Hello, I have another (possibly easy) question: How to specify the size of a plot? When I draw a plot, I can freely change the size of the window, which is nice for single plots to find the best height/width ratio, but as I need a lot of plots in my work, I want to look them all the same, so I need to specify the size in advance. Thanks for help, Christoph
2003 Jan 08
1
"methods" package changes class types?
Hi, Loading the "methods" package into R seems to change the class of a character vector from NULL to "character": > class("abcd") NULL > library("methods") > class("abcd") [1] "character" This can lead to problems. For example the "as.string" function in the "xtable" package assumes that the class of a
2002 Dec 20
3
Sweave & xtable
I'm trying to get Sweave running for automatic report generation, and it seems to run fine when just using verbatim output. However, I've ran into a problem with xtable. I would like to print the following matrix using xtable: > dim(counts) [1] 19 15 All columns are filled with real/integer numbers > 0 and < 1000. Just typing xtable(counts) gives correct LaTeX output, but
2008 Feb 04
2
maybe a bug in the system.time() function? (PR#10696)
Full_Name: Alessandra Iacobucci Version: 2.5.1 OS: Mac OS X 10.4.11 Submission from: (NULL) (193.48.71.92) Hi, I am making some intensive simulations for the testing of a Population Monte Carlo algorithm. This involves also a study of the CPU times in two different case. What I am trying to measure is the "real" CPU time, the one which is independent on the %CPU. I'm using the
2009 Sep 21
3
xtable - print - suppress output
hi, I use xtable to convert data.frames to html tables. But when I use the print-command I always get the whole output printed even if I just want to save the html table into a variable; table <- print(xtable(CERAT), type="html") How can I suppress that output is printed? thanks! [[alternative HTML version deleted]]
2009 Apr 29
3
mode(x) <- "double"
Hi, I need your help!! I imported a big coloumn vector from a txt file but it results as mode :"list" I want to change it in numeric otherwise I can't do my analysis. This is what i get: mode (data) <- "double" Error in eval(expr, envir, enclos) : (list) object cannot be coerced to type 'double' > Thanks a lot!!! Alessandra -- View this message in
2004 Aug 27
3
gsub, backslash and xtable
R Version 1.9.1 (2004-06-21) Mac OS X.3.5 Dual 2GHz PowerPC G5 GUI = "AQUA" I have a data.frame comprising percentiles with the column headings containing % characters, e.g. > (pp <- colnames(temp2)) [1] "5%" "10%" "25%" "50%" "75%" "90%" "95%" I use xtable to convert the data.frame to Latex but I want to
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
2011 Sep 28
1
Printing an xtable with type = html
I have been playing around with producing tables using xtable and the type = "html" argument when printing. For example, if xtbl is the output of a dataframe which has been run through xtable, using the command: print(xtbl, type = "html", html.table.attributes = "border = '1', align = 'center'") I would be interested to see other examples of
2009 Jun 29
2
re moving value from a vector
Hallo, I have a vector of several iterations and I have to remove /filter out all the values < than 10, how can I do this? Thanks a lot Alessandra -- View this message in context: http://www.nabble.com/removing-value-from-a-vector-tp24250608p24250608.html Sent from the R help mailing list archive at Nabble.com.
2002 Mar 03
2
Small Functions for Writing HTML Files
Hello All, I wrote this small set of functions for writing HTML files on the fly so I could do reports from R. Nothing fancy. I may expand on this and make it more generic, but for now, it works and I'm happy with it. Thought I would share them with everyone to get some feedback. Also, I'm not sure if there is already something like this available. The html-test.r file shows you
2009 Sep 20
2
xtable + print (html)
hi, I want html code via the xtable package. I have a data.frame and tried to use the print()-function. But I only get the data.frame printed - no html arround it. what do I have to change? thanks!
2009 May 26
2
Using package "exams" and xtable
Hello, I am trying to use the package "exams" to construct problem sets. I have constructed an exercise which generates a list of integers and asks the student to compute the median. rx is the vector of n numbers >str(rx) num [1:16] 21 9 8 18 4 12 17 2 9 7 ... I want to print out the entire vector as part of the problem. When I use \Sexpr(rx) only the first value (in this case
2010 Jul 22
1
pagebreak in xtable and columns'width
Dear list, I'm using the Sweave function in order to get some report. Here one chunk: <<echo=F,results=tex>>= report<-lapply(repor, function(x) { (print(xtable(data.frame(x[1:2,]), align="|l|rrr|"),floating=FALSE,tabular. environment="longtable",include.colnames=FALSE,size="\\small"))
2015 Jul 07
1
[ on call
I'm rather puzzled by this behavior: e export("caption<-", "caption", "label", "label<-", "align<-", "align", "digits<-", "digits", "display<-", "display", "xtable", "print.xtable", "toLatex.xtable") > e[[1L]] e[[1L]] export >
2009 Jul 29
2
xtable formatting: RED for negative numbers?
I've been experimenting recently with the fantastic Sweave/xtable combination for generating latex. In the xtable vignette, I found this great example of printing a ts object by months. Is there a way to modify this code to generate RED numbers inside xtable for negative results in x.ts? Thanks in advance. - Ken # Sweave/xtable snippet below
2013 Jul 15
2
tablas de R a latex
Hola: El 15/07/13 09:41, José Luis Cañadas Reche escribió: > Hola. Yo suelo utilizar knitr, con sweave creo qeu había que utilizar > print(objeto xtable) > > De esta forma, utilizando xtable > > > library(xtable) > tabla.xtable <- xtable ( tutabla) > print(tabla.xtable) No es necesario utilizar print, con xtable(tutabla) basta. Las excepciones son cuando hay que
2005 Aug 30
2
xtable
I have installed package xtable with su -c 'R CMD INSTALL xtable' and got this promising feedback: * Installing *source* package 'xtable' ... ** R ** data ** help >>> Building/Updating help pages for package 'xtable' Formats: text html latex example * DONE (xtable) Despite that, R returns: Error: couldn't find function "print.xtable"
2004 Jan 08
2
Sweave & xtable
I am just starting to learn Sweave (really neat tool). I am pretty early in the learning curve (I had to think a moment ago whether a # or % was the appropriate comment character). I have successfully incorporated simple graphics and outputs, but am having trouble getting a latex (xtable) table to function properly. Latex is seemingly treating the xtable code as input or verbatim text. That
2009 Jul 29
1
xtable formatting: RED for negative numbers?
I've been experimenting recently with the fantastic Sweave/xtable combination for generating latex. In the xtable vignette, I found this great example of printing a ts object by months. Is there a way to modify this code to generate RED numbers inside xtable for negative results in x.ts? Thanks in advance. - Ken # Sweave/xtable snippet below