with a file and parameters passed from a php script.
--
Philippe Glaziou, MD
Epidemiologist
Institut Pasteur du Cambodge
__
[EMAIL PROTECTED] mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R
40 50 60 70 80 90 100
# the end
All commands including comments appear in the saved output.
HTH,
--
Philippe Glaziou
Epidemiologist
__
[EMAIL PROTECTED] mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help
PLEASE do read
(if such tables are available on the internet,
please let me know).
Does dhyper() do what you are looking for?
--
Philippe Glaziou
Epidemiologist
__
[EMAIL PROTECTED] mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help
suggest that you check out the following:
help.search(hypergeometric)
?Hypergeometric
--
Philippe Glaziou
Epidemiologist
__
[EMAIL PROTECTED] mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help
Fuensanta Saura Igual [EMAIL PROTECTED] Saura Igual [EMAIL PROTECTED] wrote:
Does anyone know how I can read from a .txt file the lines that
are between two strings whose location is unknown?
My problem is that I have a .txt file with data separated by a
sentence, for example:
2.22 3.45
Peter Dalgaard [EMAIL PROTECTED] wrote:
My problem is that I have a .txt file with data separated by a
sentence, for example:
2.22 3.45
1.56 2.31
pattern 1
4.67 7.91
3.34 2.15
5.32 3.88
pattern 2
...
I do not know the number of lines where these separating
Philippe Glaziou [EMAIL PROTECTED] wrote:
Peter, I cannot see your point. sed can get rid of any pattern in
a text file. Fuensanta's example seemed to show that the
sentences (pattern 1, 2,...) were on separate lines from lines
containing data, thus my approach. Another one closer to your awk
Peter Dalgaard [EMAIL PROTECTED] wrote:
blueberry:~/ sed -e 's/pattern 1\|pattern 2\|pattern xyz//g' tst.txt
2.22 3.45
1.56 2.31
4.67 7.91
3.34 2.15
5.32 3.88
blueberry:~/ awk '/pattern 1/{copy=1;next};/pattern 2/{copy=0};copy==1' tst.txt
4.67 7.91
3.34 2.15
5.32 3.88
blueberry:~/
Philippe Glaziou [EMAIL PROTECTED] wrote:
I see and here is my (corrected) sed solution:
cunegonde:~/tmp cat test
2.22 3.45
1.56 2.31
pattern 1
4.67 7.91
3.34 2.15
5.32 3.88
pattern 2
cunegonde:~/tmp sed -e '/pattern 1\|pattern 2/D' test
2.22 3.45
1.56 2.31
4.67 7.91
3.34 2.15
Timur Elzhov [EMAIL PROTECTED] wrote:
I run R at home and the work, I have Debian Linux on both machines and
the same 'r-base-core' deb packages installed. So I tried to run the
same R script, which plots graph in x11 device and then dump it to eps
file (x11 and eps you'll find attached). On
Timur Elzhov [EMAIL PROTECTED] wrote:
It could be that your X11 Modes differ between both machines,
with a different number of dots per inch.
I use the same resolution, 1024x768 on both machines. Anyway, I do
not think that xserver resolution is important for screenshot size
(in pixels) :)
Prof Brian Ripley [EMAIL PROTECTED] wrote:
Does not happen on Solaris or Linux, so looks like a MacOS X problem.
It does not happen on my Mac G4 box (R 1.8.0 on MacOSX 10.2.6).
--Philippe
Here is some crosschecks:
unclass(datesTest)
[1] -6301 -6300 -6299
attr(,format)
[1] m/d/y
went ok. I have
the same libraries installed on a linux server where they work
perfectly well.
A similar error message occurs whether R is started in an xterm,
within emacs/ESS on X11, or using the RAqua interface.
Any hint appreciated,
--
Philippe Glaziou
2 66
--
Philippe Glaziou
__
[EMAIL PROTECTED] mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help
Prof Brian D Ripley [EMAIL PROTECTED] wrote:
Notice the // in the path
/Users/glaziou/Library/R/maps/mapdata//world.N
Some Windows filesystems do not like that, and my guess is that
some MacOS X ones may not either.
I noticed that. However, this does not to seem to bother MacOSX
too
Dirk Eddelbuettel [EMAIL PROTECTED] wrote:
Sure, got uploaded the day of the 1.8 release. You may want to
learn how to point apt at different archives. Debian has 1.8 in
unstable; CRAN has it in testing (thanks to Doug Bates) and
even in stable (thanks to Korbinian Strimmer)
Please, note
Christoph Bier [EMAIL PROTECTED] wrote:
how can I tell 'summary' to print the name of the summarised
variable? This is probably an awkward newbie question but I
didn't find an answer in the Docus, the FAQ and maillist archive.
I want a summary for about 250 variables and realise it
the
Andrew Criswell [EMAIL PROTECTED] wrote:
I just built R-1.8.0 on my Linux-Mandrake 9.0 using the commands,
./configure --enable-R-shlib
make
make install
It all seems to have gone fine. But when I open R and use the arrow
keys to try to go back to previous lines, it doesn't work. What
Christoph Bier [EMAIL PROTECTED] wrote:
i just tried to install Hmisc with
install.packages(Hmisc,installWithVers = true)
but get the following error:
Error in unique(pkgs) : Object Hmisc not found
It searches in
http://cran.r-project.org/src/contrib/PACKAGES
where Hmisc *is*
Philippe Glaziou [EMAIL PROTECTED] wrote:
Rau, Roland [EMAIL PROTECTED] wrote:
yesterday I took the R-1.8.0-source file and compiled it on my
own. As I am using Linux just for a couple of weeks, it was my
first compiling session with ./configure, make,
Everything went fine, except
xinyue ye [EMAIL PROTECTED] wrote:
If I produce lots of figures at one time, how can I make R
graphics keep all the figures already made? thanks,
Open as many graphics devices as needed.
See the examples in:
?dev.list
--
Philippe
__
[EMAIL
[EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
I am an R newbie. I have a problem with computing a variance
on a vector.
data(cars) variance - function (x) mean(x^2)-mean(x)^2;
variance(cars[,1])
[1] 27.4
var(cars[,1])
[1] 27.95918
What did I assume/understand wrong ?
You wrongly
it. Thanks you for your help.
Assuming your dataset is stored in a flat ascii file, you need
not use R for this trivial translation of the character , into
a space . From your shell (i.e., if standard shell tools are
available on your machine), type the following:
cat file1 | tr ,file2
--
Philippe
complicated names to type, which make them prone to
typos. Typos slow down the thinking.
--
Philippe Glaziou
Pasteur Institute of Cambodia
__
[EMAIL PROTECTED] mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help
])
See:
?Subscript
?
--
Philippe Glaziou
__
[EMAIL PROTECTED] mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help
Nicolaas Busscher [EMAIL PROTECTED] wrote:
enclosed a simple R script (and a data file, and the
output) , with calls lda similar to the example with the
iris data in the documentation. it is not working and i
dont understand the error message.
I tested your data and commands without any
Daniel Bayard [EMAIL PROTECTED] wrote:
how do you add x and y error bars on a plot.
Have queried the search engine?
help.search(error bar)
--
Philippe Glaziou
Pasteur Institute of Cambodia
__
[EMAIL PROTECTED] mailing list
https
.
It may be a good idea to consider upgrading your R. It
compiles very well on MacOSX, provided that you install all
the missing soft that Apple could not be bothered to
include in the OS.
--
Philippe Glaziou
Pasteur Institute of Cambodia
__
[EMAIL
I [EMAIL PROTECTED] wrote:
Daniel Bayard [EMAIL PROTECTED] wrote:
how do you add x and y error bars on a plot.
Have queried the search engine?
help.search(error bar)
Well, I would have been more helpful if I had indicated that
error bars are dealt with in the Hmisc and gregmisc
Donnie Payne [EMAIL PROTECTED] wrote:
I am attempting an install of R-1.7.1 on a Sun Solaris 9
box. It is a V880. It has 8 processors at 950MHz each
and 32 Gb of physical memory.
configure: WARNING: you cannot build DVI versions of the R
manuals
configure could not find latex
Dimitri Giunchi [EMAIL PROTECTED] wrote:
when I try to install gtkDevice on Mandrake Linux 9.1 (R
v. 1.7.1), I get the following comfiguration error (see
below).
Has anyone else had this problem?
Any hints are greatly appreciated.
[...]
trying URL
Chriss, Neil [EMAIL PROTECTED] wrote:
Is there any way to make XEmacs (or any other editor) the default editor for
R so that when I type
sample - function(x,y) {
+ z-x+y
+ }
+ edit(sample)
the XEmacs (or other editor) is the editor for this function (the default
seems to be MS
Frank E Harrell Jr [EMAIL PROTECTED] wrote:
Dear Patrick - That was very helpful, especially the
output comparing the old and new latex( ) function results
- thanks. I'm sorry Philippe that I did not see the
problem before. If you edit the source code for
latex.default by adding the line
A.J. Rossini [EMAIL PROTECTED] wrote:
Philippe Glaziou [EMAIL PROTECTED] writes:
No file file66334873.aux.
Underfull \hbox (badness 1) in paragraph at lines 20--21
Not an error.
I know, I never said this was an error.
[1] (./file66334873.aux)
LaTeX Warning: Label(s) may have
,
--
Philippe Glaziou
Epidemiologist
Pasteur Institute of Cambodia
__
[EMAIL PROTECTED] mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help
Frank E Harrell Jr [EMAIL PROTECTED] wrote:
I tried this on the latest version of Hmisc (1.6-0):
library(Hmisc)
set.seed(1)
y - factor(sample(c('a','b','c'),100,T))
x - runif(100)
a - summary(y ~ x, method='reverse')
options(digits=3)
latex(a)
and everything was fine. The following
Martin Wegmann [EMAIL PROTECTED] wrote:
I tried to install the car package but I can't solve the
dependencies. car needs grid, lattice and dr but when I
try to install grid I get this error
prompt:
wz3x64:/home/oggi/R/software/contrib # rpm -i R-car-1.0.R3-1.i386.rpm
error: failed
Mahbub Latif [EMAIL PROTECTED] wrote:
To install libhdf5 what I am getting
$ apt-get install libhdf5-serial-dev
libhdf5-serial-dev: Depends: libhdf5-serial (=
1.4.5-2) but it is not going to be installed
then I try...
$ apt-get install libhdf5-serial
libhdf5-serial: Depends: libc6
38 matches
Mail list logo