__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide
http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.
--
Eric Lecoutre
Consultant - Business
Hi useRs!
I am in search of any R programer / user to go on with the package R2HTML.
I did change of job 3 months ago and I could only realize I have
absolutely no time anymore for that (even so little) task.
R2HTML package consists in a set of HTML.* functions that could be
used to export R
# Implementation is the one described in SAS PROC FREQ manual
# Eric Lecoutre [EMAIL PROTECTED]
# Feel free to use / modify / document / add to a package
# UTILITARY FUNCTIONS
#
print.ordtest=function(l,...)
{
tmp=matrix(c(l
) +
log(x4) + log(x5) + log(x6) + log(x7) + log(x8) + log(x9) +
log(x10)
HTH,
Eric
Eric Lecoutre
UCL / Institut de Statistique
Voie du Roman Pays, 20
1348 Louvain-la-Neuve
Belgium
tel: (+32)(0)10473050
[EMAIL PROTECTED]
http://www.stat.ucl.ac.be/ISpersonnel/lecoutre
If the statistics
to put a less usual delimitor (say §). But this
would mean changing in C (feature request?). Same for unlist.
Is there any other easy way to get the structure of a list?
Eric
Eric Lecoutre
UCL / Institut de Statistique
Voie du Roman Pays, 20
1348 Louvain-la-Neuve
Belgium
tel: (+32)(0)10473050
/made4.html - 2k - 6
Jun 2005 - Cached - Similar pages
And then later:
http://bioinf.ucd.ie/people/aedin/R/
HTH,
Eric
ps: google is your best friend
Eric Lecoutre
UCL / Institut de Statistique
Voie du Roman Pays, 20
1348 Louvain-la-Neuve
Belgium
tel: (+32)(0)10473050
[EMAIL PROTECTED]
http
You could use the benchmark created by Philippe Grosjean to compare
various statistical packages. You will find it at:
http://www.sciviews.org/benchmark/
Note that you have to ensure to have installed packages: Matrix and
SuppDist
HTH,
Eric
Eric Lecoutre
UCL / Institut de Statistique
Voie
or other.
Eric
Eric Lecoutre
UCL / Institut de Statistique
Voie du Roman Pays, 20
1348 Louvain-la-Neuve
Belgium
tel: (+32)(0)10473050
[EMAIL PROTECTED]
http://www.stat.ucl.ac.be/ISpersonnel/lecoutre
If the statistics are boring, then you've got the wrong numbers. -Edward
Tufte
You can use ´expand.grid'
» expand.grid(x=seq(42.2,45.2,by=1),y=seq(50.5,51.5,by=1))
xy
1 42.2 50.5
2 43.2 50.5
3 44.2 50.5
4 45.2 50.5
5 42.2 51.5
6 43.2 51.5
7 44.2 51.5
8 45.2 51.5
Eric
Eric Lecoutre
UCL / Institut de Statistique
Voie du Roman Pays, 20
1348 Louvain-la-Neuve
You could also use:
names(rev(sort(table(x[1]
There is nonetheless a difference if there are several levels which
provides this maximum.
This method will only return one, yours would return all those levels
(which may not be desirable for some others processing).
HTH,
Eric
Eric Lecoutre
Well...
You just can't end vector declaration with a comma...
x - c(0,1,)
Error: syntax error
x - c(0,1)
Eric
Eric Lecoutre
UCL / Institut de Statistique
Voie du Roman Pays, 20
1348 Louvain-la-Neuve
Belgium
tel: (+32)(0)10473050
[EMAIL PROTECTED]
http://www.stat.ucl.ac.be/ISpersonnel
Well... did you look at the help page on factors???
Did you even make a search?
The answer is within your question:
levels(iris[,5])
[1] setosa versicolor virginica
Eric
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
Muhammad Subianto
I have two questions about data frames:
(1) How can one extract a simple matrix
from a data frame? I tried
Matrixfromdf = function (frame,without=1)
{a=frame[colnames(frame)[-without]]
v=unlist(a,use.names=F)
matrix(v,ncol=ncol(a))}
but it works well only for
(an other model...)
1.419101 1.00 18.00
summary(model)$fstatistic
value numdf dendf
1.419101 1.00 18.00
summary(model)$fstatistic[[value]]
[1] 1.419101
HTH,
Eric
Eric Lecoutre
UCL / Institut de Statistique
Voie du Roman Pays, 20
1348 Louvain-la-Neuve
Belgium
tel
You can import the whole thing and use on it strsplit
?strsplit
Eric
Eric Lecoutre
UCL / Institut de Statistique
Voie du Roman Pays, 20
1348 Louvain-la-Neuve
Belgium
tel: (+32)(0)10473050
[EMAIL PROTECTED]
http://www.stat.ucl.ac.be/ISpersonnel/lecoutre
If the statistics are boring
]] - index[,3]
occurence
[,1] [,2]
[1,]30
[2,]00
Eric
Eric Lecoutre
UCL / Institut de Statistique
Voie du Roman Pays, 20
1348 Louvain-la-Neuve
Belgium
tel: (+32)(0)10473050
[EMAIL PROTECTED]
http://www.stat.ucl.ac.be/ISpersonnel/lecoutre
If the statistics are boring, then you've
plotting abilities, it occurred to me again that it would be very
valuable to have an R graph gallery.
Eric Lecoutre made a very nice example in:
http://www.stat.ucl.ac.be/ISpersonnel/lecoutre/stats/fichiers/_gallery.pdf
It would be very useful to many beginners, but probably also
advanced
it is symbol no. 137.
cheers,
Matt.
[[alternative HTML version deleted]]
__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
Eric Lecoutre
UCL
-guide.html
Eric Lecoutre
UCL / Institut de Statistique
Voie du Roman Pays, 20
1348 Louvain-la-Neuve
Belgium
tel: (+32)(0)10473050
[EMAIL PROTECTED]
http://www.stat.ucl.ac.be/ISpersonnel/lecoutre
If the statistics are boring, then you've got the wrong numbers. -Edward
Tufte
of the libraries in .libPaths()
)
whooh Martin
Eric Lecoutre
UCL / Institut de Statistique
Voie du Roman Pays, 20
1348 Louvain-la-Neuve
Belgium
tel: (+32)(0)10473050
[EMAIL PROTECTED]
http://www.stat.ucl.ac.be/ISpersonnel/lecoutre
If the statistics are boring, then you've got the wrong numbers
Eric Lecoutre
UCL / Institut de Statistique
Voie du Roman Pays, 20
1348 Louvain-la-Neuve
Belgium
tel: (+32)(0)10473050
[EMAIL PROTECTED]
http://www.stat.ucl.ac.be/ISpersonnel/lecoutre
If the statistics are boring, then you've got the wrong numbers. -Edward
Tufte
abilities in the development team.
Thanks for attention,
Happy R,
Eric
Eric Lecoutre
UCL / Institut de Statistique
Voie du Roman Pays, 20
1348 Louvain-la-Neuve
Belgium
tel: (+32)(0)10473050
[EMAIL PROTECTED]
http://www.stat.ucl.ac.be/ISpersonnel/lecoutre
If the statistics are boring
fax: +386 (0)1 72 17 888
Slovenia
__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
Eric Lecoutre
UCL / Institut de Statistique
Voie
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
Eric Lecoutre
UCL / Institut de Statistique
Voie du Roman Pays, 20
1348 Louvain-la-Neuve
Belgium
tel: (+32)(0)10473050
[EMAIL PROTECTED]
http://www.stat.ucl.ac.be/ISpersonnel/lecoutre
If the statistics are boring, then you've
-project.org/posting-guide.html
Eric Lecoutre
UCL / Institut de Statistique
Voie du Roman Pays, 20
1348 Louvain-la-Neuve
Belgium
tel: (+32)(0)10473050
[EMAIL PROTECTED]
http://www.stat.ucl.ac.be/ISpersonnel/lecoutre
If the statistics are boring, then you've got the wrong numbers. -Edward
Tufte
Belgique
Tél: +32 81 62 24 69
Email: [EMAIL PROTECTED]
__
[EMAIL PROTECTED] mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
Eric Lecoutre
UCL / Institut de Statistique
Voie
__
[EMAIL PROTECTED] mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
Eric Lecoutre
UCL / Institut de Statistique
Voie du Roman Pays, 20
1348 Louvain-la-Neuve
Belgium
tel: (+32)(0)10473050
[EMAIL PROTECTED]
http
Hi,
What about:
as.list(names(l))
[[1]]
[1] a
[[2]]
[1] b
[[3]]
[1] c
HTH,
Eric
At 15:59 19/11/2004, Adrian Alexa wrote:
Hello R-users,
I have the following problem, that I want to solve efficiently:
I have a named list, for example:
l - list(a = 1, b = 3, c = 'asd')
l
$a
[1] 1
$b
[1] 3
$c
[1]
?
Eric
R version 2.0.1, Windows
Eric Lecoutre
UCL / Institut de Statistique
Voie du Roman Pays, 20
1348 Louvain-la-Neuve
Belgium
tel: (+32)(0)10473050
[EMAIL PROTECTED]
http://www.stat.ucl.ac.be/ISpersonnel/lecoutre
If the statistics are boring, then you've got the wrong numbers. -Edward
Tufte
: 32
a: 1 tmp$set.a(10)
tmp$foo(b=32)
b: 32
a: 10
---
This achieves exactly the object-oriented aspect I wanted to have. And in
fact myObject()() acts as a new instantiation of my object.
Best wishes,
Eric
At 12:05 18/11/2004, Eric Lecoutre wrote:
Hi R-listers,
I am trying to better undertand
be possible.
Could someone bring me an example of such a use?
basically, my needs are:
do.call(foo,args) args containing primary and extra-arguments to pass to
foo.
Best wishes,
Eric
Eric Lecoutre
UCL / Institut de Statistique
Voie du Roman Pays, 20
1348 Louvain-la-Neuve
Belgium
tel: (+32)(0
GRATUITEMENT ici !
[[alternative HTML version deleted]]
__
[EMAIL PROTECTED] mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
Eric Lecoutre
UCL / Institut de
_
platform i386-pc-mingw32
arch i386
os mingw32
system i386, mingw32
status
major2
minor0.0
year 2004
month10
day 04
language R
Eric Lecoutre
UCL / Institut de Statistique
Voie du Roman Pays, 20
1348 Louvain-la-Neuve
Belgium
tel: (+32)(0)10473050
[EMAIL
this function IS in R2HTML package!!!
- Changed utils:::XXX and utils::XXX into XXX everywhere, and added
import(utils) in NAMESPACE instead.
Eric
Eric Lecoutre
UCL / Institut de Statistique
Voie du Roman Pays, 20
1348 Louvain-la-Neuve
Belgium
tel: (+32)(0)10473050
[EMAIL PROTECTED]
http
list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
Eric Lecoutre
UCL / Institut de Statistique
Voie du Roman Pays, 20
1348 Louvain-la-Neuve
Belgium
tel: (+32)(0)10473050
[EMAIL PROTECTED]
http://www.stat.ucl.ac.be
__
[EMAIL PROTECTED] mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
Eric Lecoutre
UCL / Institut de Statistique
Voie du Roman Pays, 20
1348 Louvain-la-Neuve
Belgium
tel: (+32)(0)10473050
length. Any help would be appreciated.
Cheers
andrew
__
[EMAIL PROTECTED] mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
Eric Lecoutre
UCL / Institut de
Hi Robin
Have a look at:
help([)
The fact that dimensions are lost when extracting is a feature of the language.
What you need is the drop option.
a[1,,drop=FALSE]
A B C
a 1 4 7
Eric
At 10:09 11/06/2004, Robin Hankin wrote:
Hi
I want to extract rows of a matrix, and preserve rownames even if
.
Vumani
Eric Lecoutre
UCL / Institut de Statistique
Voie du Roman Pays, 20
1348 Louvain-la-Neuve
Belgium
tel: (+32)(0)10473050
[EMAIL PROTECTED]
http://www.stat.ucl.ac.be/ISpersonnel/lecoutre
If the statistics are boring, then you've got the wrong numbers. -Edward
Tufte
: +40 (21) 312.66.18\
+40 (21) 312.02.10/ int.101
__
[EMAIL PROTECTED] mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
Eric Lecoutre
UCL
memory. I am turning and
turning round on help pages.
Eric
Eric Lecoutre
UCL / Institut de Statistique
Voie du Roman Pays, 20
1348 Louvain-la-Neuve
Belgium
tel: (+32)(0)10473050
[EMAIL PROTECTED]
http://www.stat.ucl.ac.be/ISpersonnel/lecoutre
If the statistics are boring, then you've got the wrong
each time a command is processed.
DESCRIPTION:
Package: R2HTML
Version: 1.3
Title: HTML exportation for R objects
Author: Eric Lecoutre [EMAIL PROTECTED]
Maintainer: Eric Lecoutre [EMAIL PROTECTED]
Depends: R (= 1.8.1)
Description: Includes HTML function and methods to write in an HTML file.
Thus
-project.org/posting-guide.html
Eric Lecoutre
UCL / Institut de Statistique
Voie du Roman Pays, 20
1348 Louvain-la-Neuve
Belgium
tel: (+32)(0)10473050
[EMAIL PROTECTED]
http://www.stat.ucl.ac.be/ISpersonnel/lecoutre
If the statistics are boring, then you've got the wrong numbers. -Edward
Tufte
-10 without assigning the function to a name?
Here again, you can embedd the definition of your function in the [sl]apply
code:
sapply(x-10, FUN=function(x) x^2)
[1] 100
Eric
Eric Lecoutre
UCL / Institut de Statistique
Voie du Roman Pays, 20
1348 Louvain-la-Neuve
Belgium
tel: (+32)(0)10473050
-guide.html
Eric Lecoutre
UCL / Institut de Statistique
Voie du Roman Pays, 20
1348 Louvain-la-Neuve
Belgium
tel: (+32)(0)10473050
[EMAIL PROTECTED]
http://www.stat.ucl.ac.be/ISpersonnel/lecoutre
If the statistics are boring, then you've got the wrong numbers. -Edward
Tufte
anonyme
--
Eric Lecoutre
Informaticien/Statisticien
Institut de Statistique / UCL
TEL (+32)(0)10473050 [EMAIL PROTECTED]
URL http://www.stat.ucl.ac.be/ISpersonnel/lecoutre
__
[EMAIL PROTECTED] mailing list
un ou deux ordinateurs. Citation anonyme
--
Eric Lecoutre
Informaticien/Statisticien
Institut de Statistique / UCL
TEL (+32)(0)10473050 [EMAIL PROTECTED]
URL http://www.stat.ucl.ac.be/ISpersonnel/lecoutre
.
Thank you in anticipation,
Pravin
Pravin Jadhav
--
L'erreur est certes humaine, mais un vrai désastre
nécessite un ou deux ordinateurs. Citation anonyme
--
Eric Lecoutre
Informaticien/Statisticien
/listinfo/r-help
--
L'erreur est certes humaine, mais un vrai désastre
nécessite un ou deux ordinateurs. Citation anonyme
--
Eric Lecoutre
Informaticien/Statisticien
Institut de Statistique / UCL
TEL
=data.frame(diag(3))
colindex(x,X2)
[1] 2
Eric
colindex(x,X2)
--
L'erreur est certes humaine, mais un vrai désastre
nécessite un ou deux ordinateurs. Citation anonyme
--
Eric Lecoutre
Informaticien
--
Eric Lecoutre
Informaticien/Statisticien
Institut de Statistique / UCL
TEL (+32)(0)10473050 [EMAIL PROTECTED]
URL http://www.stat.ucl.ac.be/ISpersonnel/lecoutre
=dim(x),name=Mantel-Haenszel
Chi-square)
return(out)
}
-
Eric
__
Eric Lecoutre Informaticien/Statisticien
Institut de StatistiqueUCL
wonderfull graphics. Not only would it be nice sometimes to show them, but
it would also be the occasion to demonstrate R possibilities for newcomers
(think on color graphics including mathematics). R would never have enough
publicity!
Eric
__
Eric
53 matches
Mail list logo