Displaying 20 results from an estimated 8000 matches similar to: "printf() in C"
2003 Jan 31
2
Testing ``<=" in R
Hello,
I've encountered the following:
> n_500
> tau_.95
> (n*(1-tau))
[1] 25
> (n*(1-tau))<=25
[1] FALSE
> (n*(1-tau))==25
[1] FALSE
I'm using UNIX R Version 1.4.0, and also tested in out in Windows 1.6.0. Is
this a bug?
Masha
2002 Mar 26
2
compling C code in R for Windows
I have used Splus 3.4 for UNIX and I have a C file that I compiled using
"Splus COMPILE" and later called with dyn.load() and .C(). It works in Splus.
I want to do the same thing in R, as in just use my .s and .c files and
find the equivalent of "Splus COMPILE". I've ran into lots of problems
trying to do this in Windows so far, so please help!
My questions are:
- Do
2012 Apr 24
2
Write unix format files on windows and vice versa
I go back and forth between windows and linux, and find myself running
into problem with line endings. Is there a way to control the line
ending conversion when writing files, such as write and cat? More
explicitly I want to be able to write files with LF line endings
rather than CRLF line ending on windows; and CRLF line endings instead
of LF on linux, and I want to be able to control when the
2005 Oct 06
1
problem with installing a package
I do have full access to that directory. I have the
bbHist package in c:/PROGRA~1/R/rw2011/library/bbHist
directory. Then under the library directory I did
check and build. Here's what I got:
$ R CMD check bbHist
* checking for working latex ... OK
* using log directory
'c:/progra~1/r/rw2011/library/bbHist.Rcheck'
* using R version 2.1.1, 2005-06-20
* checking for file
2003 Jan 13
2
Bug in boxplot(..., add=TRUE) ?
R 1.6.1 on Windows NT4:
The boxplot() function appears to draw its own tick marks
and axis values even when called with add=TRUE. As a toy
example, try
x <- rnorm(100)
f <- factor(rep(1:4, each=25))
plot(c(0,4), c(-3,3), type="n", xaxt="n", yaxt="n")
boxplot(x ~ f, add=TRUE)
My expectation is that a high-level plotting function will
not mess with the axes
2002 Dec 30
2
Writing packages with `methods' package
I'm trying to write a package which uses classes/methods as defined in the
`methods' package. I have a single .R file which defines the class and
various methods for that class. At the top of the file I have
require(methods)
and then
setClass("myclass", ...)
setGeneric("intersect")
setMethod("intersect", "myclass", function(x,y) ...)
I noticed
2003 Jan 15
2
Contour Plots
r-help,
I can't seem to get the below data organized in such a manner so as to
generate a contour plot
using any of the functions {lattice.contourplot, base.contour,
base.filled.contour}. I was wondering
if anyone could please tell me what I need to do to accomplish this.
X,Y,Level
-31.105,86.911,3843
-3.385,86.911,3896
24.335,86.911,3874
-24.175,79.700,3900
-3.385,79.700,3927
2003 Feb 11
2
geoR question from new R user
Hi,
I'm a new R user. My goal is to do a variogram using geoR.
I started by trying to do the example in the geoR Illustrative Session
using my own data.
I am able to read in my Ascii data using: D <- matrix(scan("file.dat",
n=530*3), 530,3, byrow=TRUE).
Then I use: as.geodata(D, coords.col=1:2, data.col=3) to make the
object D geodata.
I check the descriptive statistics,
2004 Apr 23
1
(no subject)
Dear all:
I am developing a package in R. While I am running R CMD check, I found
the following warning message:
Found the following C sources/headers with CRLF line endings:
src/hem.c
src/random4f.h
ISO C requires LF line endings.
It seems that it comes from a line ending problem in C. What are CRLF/LF
line endings?
How can I fix it? Thank you for your help in advance.
Best,
HJ
2002 Feb 19
2
cdf of the standard normal distribution
Dear Experts,
I need to calculate the cdf of the standard normal distribution, i.e.
H(x) = 1/sqrt(2*pi) integral(exp(-z^2/2) dz), where z is b/w -infi to
infi.
I know there should be a way to do it in R, but did not know to do it.
I'd appreciate any help you could offer.
Charlie Liu
Graduate student intern at EPA/ECO
2010 Sep 13
4
Problem with WARNING...headers with CRLF line endings
Dear all,
When running R CMD check on Windows XP to test my package I get the
following warning message:
"* checking line endings in C/C++/Fortran sources/headers ... WARNING
Found the following sources/headers with CR or CRLF line endings:
src/xpsDict.h"
The problem is that this file is created by the compiler AUTOMATICALLY
during the compilation process, and since the file is
2002 Aug 31
1
building r-devel on RedHat 7.1 with gcc 3.1.1
Has anyone tried to build r-devel on a RedHat 7.1 with the gcc 3.1.1
compiler? I didn't have problems with gcc 2.95.x or gcc 3.0.4, but when I
ran the configure with gcc 3.1.1 I got the following error:
[...]
checking whether gcc accepts -M for generating dependencies... yes
checking whether gcc supports -c -o FILE.lo... yes
checking how to get verbose linking output from g77... -v
checking
2013 May 21
3
should dovecot store maildir files with CRLF or LF?
Hi.
I've made a strange observation.
When having Dovecot (at least) with maildir and moving (via IMAP) mail
received by some client (Evolution 3.4) into it the following happens:
Regardless of whether the mail was originally(!) set with CRLF or LF
(i.e. when I use netcat to submit the plain SMTP to the relaying MTA).
When the client (Evolution) had received the mail via POP3 before moving
2002 Mar 11
2
gif, jpeg and png image files reader
Hi all,
Although R seems to have jpeg() and png() functions that converts data into
jpeg and png formated files, it
doesn't have functions the other way around.
Does one of R contributed packages have gif, jpeg and png image readers? I
did help.search() but no luck
Regards,
Jonathan
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read
2003 Jan 16
7
X11 device now needs to be explicitly started?
_
platform i686-pc-linux-gnu
arch i686
os linux-gnu
system i686, linux-gnu
status
major 1
minor 6.2
year 2003
month 01
day 10
language R
>
Until this version, I've not had to explicitly start the x11 device.
Now,
2002 Aug 28
2
sourcing a file with the plot.lme() function
I ran into a problem trying to make a plot from a file that's read using
source. Basically, I have the following code in a file "plot.R" :
library(nlme)
data(Loblolly)
fm1 <- nlme(height ~ SSasymp(age, Asym, R0, lrc),
data = Loblolly,
fixed = Asym + R0 + lrc ~ 1,
random = Asym ~ 1,
start = c(Asym = 103, R0 = -8.5, lrc = -3.3))
2003 May 01
4
List of lists? Data frames? (Or other data structures?)
Hi, I'm faced with the following problem and would appreciate some
advice.
I could have a data frame x that looks like this:
aa bb
a 1 "A"
b 2 "B"
The advantage of this is that I could access all the individual
components easily. Also I could access all the rows and columns
easily.
Alternatively, I could have a list of
2003 Jan 30
1
vector passed to `if' in `pgamma'
In the current R-devel sources, the `pgamma' function gives a warning when
the `shape' argument is passed as a vector of length > 1. That is,
> pgamma(3, 1)
[1] 0.950213
> pgamma(3, c(1, 2))
[1] 0.9502129 0.8008517
Warning message:
the condition has length > 1 and only the first element will be used in:
if (shape <= 0) stop("shape must be strictly positive")
2002 Jun 22
1
Does matmult exist?
Does the function 'matmult' still exist in R? It has a help page and is
referenced in the help page for 'kronecker', but I can't seem to access
the function itself. Obviously, not an issue of great concern but just a
curiosity.
> version
_
platform i386-pc-mingw32
arch i386
os mingw32
system i386, mingw32
status
2002 Nov 15
3
shared ATLAS library?
>From "R Installation and Administration:"
Note that the BLAS library will be used for several add-on packages as
well as for R itself. This means that it is better to use a
shared BLAS library, as most of a static library will be compiled
into the R executable and each BLAS-using package.
Is there an idiots guide on how to do this (or should idiots just not try).