Displaying 20 results from an estimated 10000 matches similar to: "Limit on Function Size"
2002 Jul 15
2
Transpose and NA's
I noticed some odd behavior when I transpose a data frame containing
NA's. It seems to cast all the elements as "character" including the
NA's. Bug?
> t(data.frame(x=1:10,y=1:10,z=rep(NA,10)))
1 2 3 4 5 6 7 8 9 10
x " 1" " 2" " 3" " 4" " 5" " 6"
1999 Sep 17
2
Non-interactive sessions
Greetings,
Quick Summary: How does R function non-interactively? I can't print
graphics to an X11 window.
I set up what appears to be called a "noninteractive" R session using
the Perl code at the end of this message. Everthing seems to work fine
as written. I get a nice postscript file with my graphics.
However, I would like to display X11 R-graphics for the Perl-script
2000 Sep 17
1
Weighted Histogram
Greetings,
I'm having trouble finding a simple way to calculate a weighted
histogram where there may be zero raw counts in a given interval.
Given equal-length vectors of data 'data' and weights 'w', and breaks
(intervals) for the histogram, I calculate a weighted histogram as
follows (see MASS's 'truehist' for an unweighted histogram):
bin <- cut(data,
1999 Nov 12
1
some related problems
I just tried to batch-start rgui.exe (not rterm.exe) in a way, that it
read.table()s data from a file with changing filename. As I understand no
command line parameters are available for that, so instead I tried to pass
the filename to an approbriate .RProfile, which works roughly, BUT
## this is my %R_USER%\.RProfile
im <- read.table("d:/temp/im/temp.csv", header=TRUE,
2002 Oct 31
1
Zero is not Zero
I have a confusing problem with getting the form `x - trunc(x)' to be
exactly zero when `x' is an integer. It only seems to occur inside of a
function. [R-1.6.0 on Linux/Intel]
I have a function to return the highest precision digit of values in `x':
prec<-function(x){
init <- trunc(log10(max(x)))
y <- x - trunc(x)
while (any(y > 0)) {
init <- init - 1
x1
2002 Mar 12
0
Vis5D interface package
Greetings,
Summary: Has anyone else started a package (or have code) with the
capability to write Vis5D-readable netCDF files containing
irregularly-spaced data?
I've recently put together what might be the beginnings of a (GPL'ed) R
interface package to the Vis5D volumetric visualization program
(http://vis5d.sourceforge.net). Vis5D is commonly used in the
atmospheric science and
2002 May 22
1
Tps regression question
Dear all,
I'm a beginner in spatial regression, therefore, excuse me in advance for
the stupid question.
I'm using the function Tps of field library. As I read in help, the
assumed model for this regression is additive Y = f(X) + e where f(X)
is a d dimensional surface.
I have understood that d in not an argument to specify in Tps(x, Y, ...).
How can I obtain d ?
Thanks a lot.
2002 May 15
0
Reading multi-line FWF data
I keep getting these fixed-width format (FWF) data files where variables
for a single subject are spread across multiple lines and each line has
a different format (apparently created with SAS or SPSS). To read them
I stole some stuff from `read.fwf' in base R and threw together the
function included below.
Please feel free to test this function with your own data and let me
know of any
1999 Sep 30
6
Graphics output device
Dear developers,
I wonder would you consider making a save to a graphics file format (as opposed
to ps)?
What prompts this is that we have just finished my wife's thesis using R
heavily for stats and graphs. The combination of latex, bibtex and R generated
.eps worked a treat and we were very pleased with both the final outcome and
the efficiency of gernerating it, especially when all the
2010 Jan 07
1
question on 'within' and 'parse' commands
Hi,
Why can't I pass an expression to `within' by way of textual input to
the 'parse' function?
e.g.,
> x <- data.frame(a=1:5,b=LETTERS[1:5])
> x
a b
1 1 A
2 2 B
3 3 C
4 4 D
5 5 E
> within(x, parse(text="a<-a*10; b<-2:6"))
a b
1 1 A
2 2 B
3 3 C
4 4 D
5 5 E
> within(x, parse(text="a<-a*10; b<-2:6")[[1]])
a b
1 1 A
2 2 B
3
2002 Jan 15
0
RE: new version of lattice
I'll get to it tomorrow afternoon or on Thursday (if my son isn't sick
anymore). Chris.
-----Original Message-----
From: Deepayan Sarkar [mailto:deepayan at stat.wisc.edu]
Sent: Tuesday, January 15, 2002 4:13 AM
To: r-announce at stat.math.ethz.ch
Subject: new version of lattice
A new version of the Lattice package is now available on CRAN. A list of
the (mostly minor) changes are
2002 Jun 26
1
Output from make check
These are probably very basic questions, but I don't know how one
reads output such as this:
[hrapgc at biomat1 R-1.5.1]$ make check
make[1]: Entering directory `/home/hrapgc/local/R-1.5.1/tests'
make[2]: Entering directory `/home/hrapgc/local/R-1.5.1/tests'
make[3]: Entering directory `/home/hrapgc/local/R-1.5.1/tests/Examples'
make[4]: Entering directory
2010 Oct 06
2
rspec2 observations
Just a few observations now that I have completed the upgrade from RSpec-1 to RSpec-2.
1. In my project (2800 examples across about 40 files), MRI 1.9.2-p0 takes roughly 3 times longer to complete the spec run. Runtimes grew from 2.2s (rspec 1.3.0) to 6.1s (2.0.0.rc).
2. Rubinius 1.1.0 runs RSpec-2 without error.
3. JRuby 1.5.1 runs RSpec-2 without error.
4. Both Rubinius and JRuby print a
2010 Dec 17
1
Limit of c() length?
Hello,
I am running the debian derivative gnewsense lemote (mipsel
architecture) on a lemote yeeloong notebook. It appears that entering
long vectors into R using the c() command is not accepted. R outputs the
"+" symbol, which normally asks for additional syntax to finish the
code. R accepts the vector in smaller pieces using c() and accepts the
complete vector in debian squeeze (i386
2007 Feb 15
2
simpleR or usingR package by Verzani
I am a new R user and so I thought I could start with "Using R for
Introductory statistics" by Verzani.
In order to use some of the functions and datasets I have to install the
simpleR package which is is now inside the UsingR package. I did so
using
>install.packages("UsingR"). However, the functions such as
"simple.freqpoly.R" do not work.
I also tried to
2003 Apr 18
1
Help with nlme--freq weights, logit model, and more
Below you will find the output from a failed multi-level model run. I am
trying to estimate the following model:
Pr(PLFP=1)= logistic regression ->
B1_j * bm + B2_j * wm + B3_j bf + B4_j wf + B5 yrsed+ B6 age+ B7 age^2+e_ij
B1_j = G01 + G11 bmxd + d1
B2_j = G02 + G12 wmxd + d2
B3_j = G03 + G13 bfxd + d3
B4_j = G04 + G14 wfxd + d4
d1-d4 freely correlated
Note that there is no
2008 Jan 30
18
ZIL controls in Solaris 10 U4?
Is it true that Solaris 10 u4 does not have any of the nice ZIL controls
that exist in the various recent Open Solaris flavors? I would like to
move my ZIL to solid state storage, but I fear I can''t do it until I
have another update. Heck, I would be happy to just be able to turn the
ZIL off to see how my NFS on ZFS performance is effected before spending
the $''s. Anyone
2014 Apr 01
1
R 3.1.0 Beta installed but I'm not sure how
Hi All,
I have installed R on Ubuntu 12.04 with apt pointed at my favorite mirror (http://cran.cnr.berkeley.edu/bin/linux/ubuntu precise/). Today, I ran an apt-get upgrade and now when I launch R, it tells me that I’m running R version 3.1.0 beta (2014-03-28 r65330) -- "Spring Dance”.
I’m slightly confused as when I look at the package list in
2005 Dec 01
6
Linking against a specific Berkeley DB install
I sent this question to the OpenLDAP list yesterday, but I still haven't
seen the message come across the list. I am asking here in the hopes of
getting a faster response.
I am trying to compile OpenLDAP 2.3.11 from source on CentOS4. I have the
rpm for db4-4.2.52-7.1 installed and also a source build of BerkeleyDB in
/usr/local/BerkeleyDB.4.4.
How do I get OpenLDAP to link with the bdb
2010 Jun 05
2
380x380 dataframe to list
Hi,
This can't be hard, but I can't find the solution. I have a
380x380 data frame of numbers. I would like to turn it into
a single column so I can do e.g. hist and mean on it without
writing my own function. There must be a simple function
for this, but I'm stumped -- reshape, dim, etc. don't seem
to do it...
Help appreciated!
Thanks!!
Nick
--