similar to: tables package - error message of "duplicate values"

Displaying 20 results from an estimated 5000 matches similar to: "tables package - error message of "duplicate values""

2013 Apr 23
2
Tables package - remove NAs and NaN
Dear Rxperts, q <- data.frame(p=rep(c("A","B"),each=10,len=30), a=rep(c(1,2,3),each=10),id=seq(30), b=round(runif(30,10,20)), c=round(runif(30,40,70))) The operation below... tabular(((p=factor(p))*(a=factor(a))+1) ~ (N = 1) + (b + c)* (mean+sd),data=q) yields some rows of NAs and NaN as shown below b c p a N mean sd mean sd A 1 10
2013 Apr 22
1
Hmisc & pdflatex
Dear Rxperts, Apologize for posting it to a wrong thread..Hence, the re-post... I am trying to use pdflatex from Hmisc, I get the error message. "pdflatex is not available"... The version of Hmisc is the latest one (got the warning that it was compiled under R version 2.15.3) . The version of R on my machine is > version platform i386-w64-mingw32 arch i386 os
2013 Mar 13
7
Export R generated tables and figures to MS Word
Dear Rxperts, I am aware of Sweave that generates reports into a pdf, but do know of any tools to generate to export to a MS Word document... Is there a way to use R to generate and export report/publication quality tables and figures and export them to MS word (for reporting purposes)? Thanks so much, Santosh [[alternative HTML version deleted]]
2012 Jul 21
2
library XML in R version 2.15.1
Hello Rxperts.. I have a peculiar situation.. XML library is not available with R2.15.1 whereas I was able to install it with R version 2.13.1. Would highly appreciate your suggestions. I am now trying to see if XML works with previous versions of R. Thanks, Santosh [[alternative HTML version deleted]]
2010 Apr 29
3
control span in panel.loess in xyplot
Dear R gurus.. Is it possible to control span settings for different values of a grouping variable, when using xyplot? an example code shown below d=data.frame(x=rep(sample(1:5,rep=F),10),y=rnorm(50),z=rep(sample(LETTERS[1:2],rep=F),25)) xyplot(y~x,data=d,groups=z,panel=panel.superpose,panel.groups=panel.loess(span=c(2/3, 3/4,1/2)) or something like..
2012 Sep 08
1
How to insert vertical space between lines of tables created with the R package 'tables'?
I have the data frame... df <- cbind(expand.grid(d=as.factor(c(2,5)), n=c(100, 200), beta=as.factor(c(0.2, 0.8)), group=LETTERS[1:2]), value=runif(16)) ... which I would like to display in a table like ... require(tables) tabular(d * beta ~ group * mean * Heading() * value, data=df) Now I would like to insert (vertical) space between every other line of the table. I checked the manual and
2013 Sep 26
2
Read shortcuts of MS Excel files through R
Dear Rxperts, Through Windows OS, I created shortcuts (paste as shortcut) to excel spreadsheets ( with "xlsx" as the file extension). I wasn't able to read the shortcuts through R and using "read" functions of "xlsx" package. exf <- "a1.xlsx.lnk" > read.xlsx(exf,1) Error in .jcall("RJavaTools", "Ljava/lang/Object;",
2009 Nov 21
3
"subset" or "condition" as argument to a function
Dear Rxperts! I was wondering if it is possible to write a function which can take in argument of a subset or condition.. Of course, I am aware of the alternate methods like coplot, par.plot, xyplot etc... I am specifically interested in using conditions/subsets with "plot".. A simple fragmented example is shown here.. pltit <- function(y,x,dat,dat1,dat2,sbst) { plot(y~x, data=dat,
2010 Mar 19
2
sapply, lattice functions
Dear R-gurus aa <- data.frame(a1=rnorm(20),b1=rnorm(20,0.8),c1=rnorm(20,0.5)) sapply(aa,function(x) histogram(x,breaks=NULL)) or px <- sapply(aa,function(x) histogram(x,breaks=NULL)) print(px,split=c(1,1,1,1),more=F) The above code does not seem to work. am I missing something? Thanks, Santosh [[alternative HTML version deleted]]
2011 Apr 08
2
a bug in "write.csv"?
Dear Rxperts! A simple example where "write.csv" does not seem to accept user specified arguments.. Why? write.csv(t(1:10),"./te1.csv",quo=F,col.names=F) Warning message: In write.csv(t(1:10), "./te1.csv", quo = F, col.names = F) : attempt to set 'col.names' ignored However, write.table does fine..
2003 Jun 24
2
R and Latex's tables
Hi R lovers! I have discovered recently that graph can be exported from R in a Latex compatible file thanks to the pictex command I would like to know if there is the equivalent while exporting datas. Let's say I have a matrix, a data.frame or a list that I would like to export as a flat text file that is immediatly transcripted into a table into latex Is there a macro or package that could
2009 Dec 09
1
Exporting Contingency Tables with xtable
Dear R-philes: I am having an issue with exporting contingency tables with xtable(). I set up a contingency and convert it to a matrix for passing to xtable() as shown below. v.cont.table <- table(v_lda$class, grps, dnn=c("predicted", "observed")) v.cont.mat <- as.matrix(v.cont.table) Both produce output as follows: observed predicted uh uh~ uh 201
2011 Oct 28
1
xtable with \begin{tabular} and only.contents
I have found that I like having my captions 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
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
2010 Jul 29
1
package xpose4 in Vista - Update
Dear R experts, There seems to be a problem (please see the error messages below) with the installation of the latest version of xpose4 (version 4.2.1) with the latest R version.(2.11.1)... I didn't face such installation problems when using version R.2.10.1 Would really appreciate your assistance in debugging installation of xpose 4..2.1 with R.2.11.1 Thanks again.. -Santosh On Wed, Jul
2009 Jul 15
2
Correlation question (from a newbie)
Hi R-users, Was wondering if there is a way to quickly compute correlations between continuous variables grouped by some categorical variables? What function do I use? Thanks much in advance. Regards, Santosh [[alternative HTML version deleted]]
2013 Mar 26
2
suggestions about import SAS Transport files to R.
Dear Rxperts! My colleagues used SAS PROC COPY to generate the xpt files that could be read by the available "xpt" file reading packages in R. However, I am unable to use the R packages for reading SAS transport files generated through SAS PROC CPORT. I have tried SASxport, Hmisc, and foreign. Any ideas/suggestions are more than welcome! Thanks so much! Santosh [[alternative HTML
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{Schunk} commands, which latex doesn't
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
2009 Dec 11
2
Frequency tables.
Hi All, I'm a SAS user but I'm very much interested in learning R. I use ODS system in SAS to make nice frequency tables. Is it possible to export the output of table() [in TABULAR FORM]? So, that I can use those directly for publications? Thank you. # R Code: library(datasets) Orange summary(Orange) # outputing this, not as it is, but in table for. is it possible? ~Kim [[alternative