Displaying 20 results from an estimated 200 matches similar to: "Re: R: Problem from Philippe Glaziou"
2003 Jun 13
1
problem with latex of object summary reverse
Hi,
I have the following problem (library Hmisc loaded,
iris data loaded, R Version 1.7.0 (2003-04-16), packages
updated, running on a linux Debian i386):
> summary(Species~Sepal.Length,method="reverse")->a
> a
Descriptive Statistics by Species
+------------+-----------------+-----------------+-----------------+
| |setosa |versicolor |virginica
2010 Jun 18
1
Latex problem in Hmisc (3.8-1) and Mac Os X with R 2.11.1
Dear all,
I did post this more or less identical mail in a follow up to another
question I posted, but under another heading. I try again, but now
under the correct header.
upon running this code (from the Hmisc library-latex function) I
believe the call to summary.formula is allright and produces wonderful
tables, but the latex command results in a correct formatted table but
where all the
2006 Oct 28
1
(kein Betreff)
Frank Harrell rote in a message dating from Oct 8th:
> n.group is an argument to latex.default in the Hmisc package
I must admit that I can't find it in the function head,
which reads on my installation:
function (object, title = first.word(deparse(substitute(object))),
file = paste(title, ".tex", sep = ""), append = FALSE, label = title,
rowlabel = title,
2008 Jul 25
2
Package Hmisc, functions summary.formula() and latex(), options pdig, pctdig, eps and prmsd
Un texte encapsul? et encod? dans un jeu de caract?res inconnu a ?t? nettoy?...
Nom : non disponible
URL : <https://stat.ethz.ch/pipermail/r-help/attachments/20080725/bcafe250/attachment.pl>
2009 Aug 19
2
[Hmisc] latex() with ctable=T inserting unwanted empty line in .tex file when used on summary.formula(method="reverse") object
Dear useRs,
When I'm using Hmisc's latex() function with ctable=TRUE on a summary.formula with method="reverse" object and saving in a .tex file, the latter contains an unwanted empty line which makes compilation fail.
Here is a brief example :
library(Hmisc)
test <- data.frame(a=sample(1:30,10),b=sample(c("good","bad","ugly"),10,replace=T))
2004 Sep 26
2
Sweave: superfluous newline (`\\') in tex file
Hi,
I'm having trouble sweaving the following example:
--8<------------------------schnipp------------------------->8---
\documentclass{article}
\begin{document}
\SweaveOpts{echo=FALSE}
@
<<>>=
rm(list=c(ls()))
library(Hmisc)
library(ISwR)
data(energy)
energy$log <- log(energy$expend)
attach(energy)
@ %def
@
<<results=tex>>=
mysum <- summary(stature ~
2003 Nov 05
3
map does not display maps, MacOSX
Hi,
I installed the maps and mapdata libraries on my R-1.8.0 on
MacOSX 10.2.8 (jaguar on a powerbook G4), and failed to make the
map function work properly:
R : Copyright 2003, The R Development Core Team
Version 1.8.0 (2003-10-08)
[...]
> library(maps)
> map()
Error in file(file, "r") : unable to open connection
In addition: Warning message:
cannot open file
2003 Oct 10
0
Previous Commands, Summary
Dear all,
I don't know what was the actual remedy, but after installing readline and
ncurses and then re-installing R, everything works fine (=calling the
commands history with the cursor keys).
I would like to thank for the help provided by Jason Turner, Philippe
Glaziou, Peter Dalgaard and Brian Ripley.
Best,
Roland
> -----Original Message-----
> From: Prof Brian Ripley [SMTP:ripley
2007 Apr 27
0
Hmisc Version 3.3-2 is now in CRAN repository
Hmisc Version 3.3-2 has been posted to the CRAN repository.
Change Log
3.3-2 4/26/2007
Fixed bug with combine<- function not handling NULL values.
3.3-1 3/29/2007
Created functions trunc.POSIXt, ceil.POSIXt, round.POSIXt to do
those ops on POSIXt objects. Removed chron versions of these
functions.
Placed Hmisc in a namespace
Factored out category
2007 Apr 27
0
Hmisc Version 3.3-2 is now in CRAN repository
Hmisc Version 3.3-2 has been posted to the CRAN repository.
Change Log
3.3-2 4/26/2007
Fixed bug with combine<- function not handling NULL values.
3.3-1 3/29/2007
Created functions trunc.POSIXt, ceil.POSIXt, round.POSIXt to do
those ops on POSIXt objects. Removed chron versions of these
functions.
Placed Hmisc in a namespace
Factored out category
2002 May 26
3
Read a Time Serie CSV
Hi,
I want to read some Times Series of GDP from OECD-Countrys.
First I call:
> oecd96<-ts(read.csv("oecd96.csv",header=T,sep=";"),start=1950,freq=1)
> summary(oecd96)
gdpcausb gdpcautb gdpcbelb gdpccanb
Min. : 8567 Min. : 4533 Min. : 6616 Min. : 8966
1st Qu.:10771 1st Qu.: 8717 1st Qu.: 9440 1st Qu.:11694
Median
2002 Jun 14
1
data.frame - transform
Hi there,
I have a data.frame (pwt6) which I would like to transform:
country year gdp
MEX 1950 2
MEX 1951 5
BOL 1950 4
BOL 1951 12
ITA 1950 45
ITA 1951 2
This should be the result:
year MEX.gdp BOL.gdp ITA.gdp
1950 2 4 45
1951 5 12 2
Right now I have this code (better - no code):
country.label<-names(table(pwt6$country))
result<-data.frame(year=NULL)
for(i in country.label)
?
2002 Jun 09
1
Logical operators
Hello,
I have a csv-file which looks like:
#### pwt6_r.csv ####
code;year;rgdpch
AGO;1998;1234
ALB;1998;3576
ARG;1998;#NA
SVN;1996;13439
SWE;1996;21492
AGO;1960;#NA
ALB;1960;2345
ARG;1960;4634
#### pwt6_r.csv ####
To import this file i call:
pwt6<-read.csv("d:/pwt6_r.csv",header=T,na.strings="#NA",sep=";")
Now I want to generate a new data.frame which include
2002 Jun 21
1
rbind
Hello,
I am sure this is a trivial question, but I don't get it...
Having a dataframe (b.70) like that:
> b.70[1:4,2:3]
ARG AUS
1960 19041 25949
1961 19675 25451
1962 19302 26463
1963 18121 27644
Now I want to calculate the log for each year and save the
result in a new dataframe called 'x'.
x<- data.frame(w=NULL)
for(i in 1:3)
2002 Jun 28
1
Transpose a dataframe
Hello,
I would like to switch this dataframe:
> k
country 1960 1961 1962 1963
99 ARG 7493 7733 7581 7108
246 AUS 10484 10342 10809 11357
295 AUT 7438 7808 7938 8212
393 BDI 587 502 555 608
442 BEL 8223 8638 9021 9311
in this structure:
year ARG AUS AUT BDI BEL
1960 7493 10484 7438 587 8223
1961 7733 10342 7808 502 8638
1962 7581 10809 7938 555
2007 Nov 13
2
Getting mean in a dataframe
Sorry to hijack this thread. I have a similar but slightly different
situation. Using the original poster's example, how to elegantly get
the mean of column V2 when column V1 is either A or C and F1 is 0?
Thanks,
Gang
On Nov 13, 2007, at 5:30 AM, Petr PIKAL wrote:
> Hi
>
> r-help-bounces@r-project.org napsal dne 13.11.2007 10:59:09:
>
>> Dear list,
>>
>> I
2002 Jul 03
2
Adding text to a plot
Dear R-users,
again two question...
# Question 1
Adding two lines of text to a plot, I am using:
# -------------------------------
plot(k[,1], k[,2], pch=16,
ylim=range((min(k[,2])-0.2):(max(k[,2])+1)))
a <- paste("Cor.:" ,cor(k[,2],k[,1]))
b <- paste(nrow(k), "Countries")
text(90, max((k[,2])-0.51), a)
text(90, max((k[,2])-0.83), b)
#
2009 Apr 08
1
Sweave problem, with multicolumn tables from R to LaTeX
Hi there,
I have been using the example provided bellow for a while, and It was
working without any problem. Nevertheless, just since 2-3 days is not
working, probably because I did update.packages(). I have tried to
re-install the older versions of the packages Hmisc() and xtable(), but
still does not work. Can you run this example, and tell me if you got
the same problems?
I use
2013 Mar 15
2
latex(test, collabel=) returns wrong latex code?
Hello:
I'm working with a 2-dimensional table that looks sort of like test below.
I'm trying to produce latex code that will add dimension names for both the rows and the columns.
In using the following code, latex chokes when I include collabel='Vote' but it's fine without it.
The code below prouces the latex code further below. I'm confused by this, because it looks
2011 Jan 17
2
How to still processing despite bug errors?
Hi, everybody.
I am working processing EEG data from 1000 pacients. I have a specific
syntax to perform the Spectral Analysis and a loop to analyse all subjects.
each subject data are in separate folders (P1, P2 P3...)
My question is: in some cases, some errors can appear in one subject. I want
to know if is possible to jump to the next subject and perform the same
syntax , exibiting an error