Displaying 20 results from an estimated 20000 matches similar to: "how to remove the empty element in the vector"
2007 Jun 06
1
how to update R version
Hello,
I am new in using Linux R. Would someone tell me what the best way to update my current R 2.3.0 to R 2.5.0? I want to keep my current library packages. Do I have to erase the older version and install the newer version? In that case, I need to re-download all the packages I need. Any short way to do the update?
Thanks for your help!
yanqin
2008 Jul 31
2
C versions of serialize/unserialize in packages
Are the functions 'R_Unserialize' and 'R_InitFileInPStream' allowed to
be used in R packages? I guess I'm just not clear on the implications
of this comment in 'Rinternals.h':
/* The connection interface is not yet available to packages. To
allow limited use of connection pointers this defines the opaque
pointer type. */
I have a function in the
2008 Mar 18
4
cut.Date and cut.POSIXt problem
cut.Date and cut.POSIXt indicate that the breaks argument
can be an integer followed by a space followed by "year", etc.
but it seems the integer is ignored.
For example, I assume that breaks = "3 months" is supposed
to cut it into quarters but, in fact, it cuts it into months as if
3 had not been there.
> d <- seq(Sys.Date(), length = 12, by = "month")
>
2004 Jun 11
3
Change in grep behavior from 1.9.0 to R-patched
I've noticed a change in the way grep() behaves between the 1.9.0
release and a recent R-patched. On 1.9.0 I get the following output:
> x <- dget(file = url("http://www.biostat.jhsph.edu/~rpeng/names.R"))
> length(grep("^l\\w+tmean", x, perl = TRUE, value = TRUE))
[1] 84
And on R-patched (2004-06-11) I get
> x <- dget(file =
2005 Aug 18
4
problems when installing R in Fedora core 4
Hi, I got a problem when installing R in Fedora core 4. When I ran
.configure, it gave the following error message:
configure: error: --with-x=yes (default) and X11 headers/libs are not available
Could anyone tell me what's wrong? Am I missing some package in Fedora?
Thanks a lot for your help.
Peter
2007 May 04
1
Display list redraw incomplete
Since compiling R 2.5.0 from source on my Mac (PowerBook) I've noticed
some strange behavior when plotting. I'm not sure if it's a problem
with my setup/compilation because I feel like a problem as basic as
this one would have been reported already. I'm running R with X11 and
R was built with gcc 4.0.1.
Basically, I run
> plot(0, 0)
> dev.off()
X11
4
Warning message:
2004 Nov 11
5
expressions and paste
I have written a function to plot data which will be used for various different chemistries.
A simplified version is:
plot_data <- function(risk,levels,chem,sd2,measure){
plot(risk, levels,main=paste ("per", sd2, measure, "\n in usual", chem))
}
The problem is with the title.
This works fine if the variable "chem" is just text, but if it is an expression then
2005 Aug 04
4
Modifying the parameters for a function
I have modified the parameters for a function (for my own use) in the
stats package, but I assume I need to update the parameter set in
another file as I'm getting the following error when I run R:
The compile works fine so I assume there is a configuration file in the
base package of R that needs modification.
Error in parse(file, n, text, prompt) : syntax error on line 11102
Error:
2004 Apr 16
7
Turning windows screen buffering on and off
All,
Does anyone know if there is an option I can set to turn screen-buffered
output on and off with the win32 rgui? (Apart from the point and click
method).
I am running some simulations where it is useful to watch output but it
gets mildly tiresome having to manually switch things on and off via the
gui.
Thanks
Toby.
> version
_
platform i386-pc-mingw32
arch
2006 Jan 30
2
R on the brain
I was sitting in the coffee room at work listening to people complain
about a recent seminar about nanotechnology using the terms
nanofluidics, nanofactory, nano-this, and nano-that ... I found myself
thinking "well the speaker should just
have said
with(nano,
...)
Un(?)fortunately there's no-one here I can share that thought with.
--
620B Bartram Hall
2004 Apr 03
6
memory limit problem
Could anyone advise me how to allocate 1.5Gbyte memory for R on a Dell
laptop running XP professional with 2G memory?
I have tried
"C:\Program Files\R\rw1081\bin\Rgui.exe" --max-vsize=1400M
but I only get only 500MB for R actually.
I also tried memory.limit(2^30) in R and got error of:
Error in memory.size(size) : cannot decrease memory limit
Yi-Xiong
2004 Nov 29
4
"non-visible" functions in return to methods()
Please point me to the documentation explaining why some of the functions
returned
by calling methods() are marked as "non-visible" and whether there is indeed
no way of
viewing the R code of such functions
thanks
Steve
_________________________________________________________________
2005 Jan 24
2
using eval() with pre-built expression inside function
I'm trying to evaluate a pre-built expression using eval(), e.g.
dataset <- data.frame(y = runif(30, 50,100), x = gl(5, 6))
# one like this
mf <- expression(model.frame(y~x))
eval(mf, dataset, parent.frame())
# rather than this
eval(expression(model.frame(y~x)), dataset, parent.frame())
In the example above there is no problem, the problem comes when I try to do a similar thing
2005 Mar 25
2
How to split a single vector into a multiple-column and multiple-row matrix
Dear List,
I have, say, a 2000x1 numeric vector and would like to
split it into, say, a 200x10 matrix. Any help is
appreciated.
2006 Nov 17
2
Large data Problem
Hi R-Experts,
I'm having a problem with reading a large data file which is
in .csv format and size is 120 MB (app.). I was trying to use RODBC
package but I found RODBCconnectExcel function only. And can I convert
this file to .dbf format? How can I read this file? And also let me
know if this was a file in .sas7bdat format, what should I do? Thanks in
advance.
2005 Nov 09
8
Element-by-element multiplication operator?
Is there an element-by-element multiplication in R, like the .* operator in Matlab?
eg: A (2x3)
B (2x3)
C=A.*B
C (2x3)
C = [[a11*b11 a12*b12 a13*b13]; [a21*b21 a22*b22 a23*b23]]
I can't find one...
Thanks
-Mike Gates
2004 Nov 12
4
R on 64-bit Linux machine
Hi,
We are planning to buy a 64-bit Linux machine which will mainly run R.
There was an interesting thread on 64-bits on r-help back in April that
basically confirmed that the 64-bit R is fine as long as the length of
an atomic object is less than 2^31 - 1.
My specific question is on which 64-bit Linux distros (SUSE or RedHat)
and processors R is *known* to build out-of-box and run well. Ease
2006 Mar 30
3
compress defaults for save() and save.image()
I have changed the default in save() to compress = !ascii. This seems
quite safe, as almost always save() is called explicitly and people will
appreciate that it might take a little time to save large objects (and
depending on your system, compression could even be faster).
Should we also change the default in save.image()? That is almost always
used implicitly, via q(), a menu .... There
2005 Nov 20
1
mapply() gives seg fault (PR#8332)
--KsGdsel6WgEHnImy
Content-Type: text/plain; charset=iso-8859-1; format=flowed
Content-Disposition: inline
Content-Transfer-Encoding: 8bit
Hi, people. Wandering in R archives, and seeing the message attached
below, I noticed that:
mapply(rep,times=1:4, MoreArgs=42)
still segfaults on R 2.2.0, and thought I should be a good citizen and
report it, even if I do not have an actual problem
2004 Jun 14
4
interrupt in Linux
Does anyone know how to interrupt R in RedHat? Neither control-c nor Esc is working. What I don't want to do is close the window or kill the entire R process.
Thanks,
David
This communication is for use by the intended recipient and ...{{dropped}}