Displaying 20 results from an estimated 3000 matches similar to: "Is there a 'vi' mode in R?"
2009 May 08
2
Vim R plugin-2
Dear R users,
People who uses vim in Linux/Unix may be interested in checking the
plugin for R that I'm developing:
http://www.vim.org/scripts/script.php?script_id=2628
The plugin includes omni completion for R objects, code indentation
and communication with R running in a terminal emulator (xterm or
gnome-terminal). This last feature was already present in Johannes
Ranke's plugin.
2009 Oct 05
4
Vim-R-plugin (new version)
Dear R users,
The author of Tinn-R (Jose Claudio Faria) now is co-author of
Vim-R-plugin2, a plugin that makes it possible to send commands
from the Vim text editor to R. We added many new key bindings,
restructured the menu and created new Tool Bar buttons. The new
version is available at:
http://www.vim.org/scripts/script.php?script_id=2628
NOTES:
(1) Some old key binding changed,
2009 Sep 15
1
comma as decimal separator in xtable
Hello,
How can I make xtable print a comma as decimal separator? Setting
the option OutDec isn't enough for xtable:
library(xtable)
options(OutDec = ",")
x <- c(1.1, 1.2, 1.3)
y <- c(2.3, 2.2, 2.1)
d <- data.frame(x, y)
d
print(xtable(d))
Thanks!
Jakson Aquino
2009 Oct 22
3
Boxplot with grouped data
Dear All,
Is there some way of drawing a boxplot, with R, when one does not have
the original continuous data, but only the data grouped in classes?
The function boxplot() can only deal with original data.
Thanks in advance,
Paul
2008 Aug 12
2
Multiple column/row names?
Hi all,
I wonder if there is a way to create a matrix with two (or even more)
column/row names? Thank you very much.
Have a nice day.
--
??? Hesen Peng
http://hesen.peng.googlepages.com/
2010 Dec 16
4
editor for MacOS
Dear friends - I'm using Tinn-R in Windows and find it OK. My son is
running MacOS and is just starting using R and I know nothing about
MacOS and R but we seem to have difficulties in finding something
similar to Tinn for MaC. What are your suggestions?
Thanks a lot!
Troels Ring, MD
Aalborg, Denmark
2010 Sep 12
4
using read.table, removing extra quotation mark from a text field? (e.g. ""cat" )
I am using read.table to import a text file within R.
There are several "errors" in my text file. An "extra" quotation mark has
inadvertently been included within a few text fields.
e.g. for a pipe (|) delimited text file, I have something similar to this:
1|7|30| "dog"
2|6|25| ""cat"
3|4|20|""
4|5| 56| "mouse"
5|3|56|
2008 Nov 23
2
How is R working in multicore and multiprocessor environment?
My Dear R buddies,
I'm feeling ashamed that I've been running my R program on some
servers for a while but do not know exactly how R is working. The
servers are chained together using Sun Grid Engine. Each node has 8
quad-core CPUs. I wonder how many cores and CPUs are used by a simple
single-thread R program. Thanks a lot.
Best wishes,
--
??? Hesen Peng
2008 Nov 24
2
More than doubling performance with snow
Hey my R buddies,
I installed the "snow" and "rpvm" package on my Lenovo Thinkpad T400
today. The experiment below gave me a surprise. The time consumed by
serial processing was several times larger than that taken by parallel
processing. I'm very curious how this happened. Thank you very much.
> library(snow)
>
> cc <- makePVMcluster(2)
>
> temp <-
2008 Nov 29
2
Reading mixed tables
Dear R buddies,
This weekend I became interested in solving Google Code Jam problems
using R. I guess R may work very well in this kind of contests but the
input of file has been a problem for me. Take this case for example
(http://code.google.com/codejam/contest/dashboard?c=agdjb2RlamFtchALEghjb250ZXN0cxjRzBQM),
the files are usually of the form:
A(number of lines for group 1)
a11 a12 a13
a21
2008 Sep 11
1
Convex optimization in R?
Hi my R buddies,
I'm trying to solve a specific group of convex optimization in R. The
admissible region is the inside and surface of a multi-dimensional
eclipse area and the goal function is the sum of absolution values of
the variables. Could any one please tell me whether there's a package
in R to do this? Thank you very much,
Best wishes,
--
??? Hesen Peng
2009 Jul 11
1
Conditional expand.grid()
Hello my R buddies,
I'm trying to generate a bivariate data.frame with the elements of
first row greater than the second row. The more complicated method
that I can think of is:
n <- 10
temp <- expand.grid(1:n,1:n)
temp<-temp[temp[,1]>temp[,2],]
However, I guess there must be some easier way of doing this. Besides,
if inequality condition is applied at the very
2008 Oct 08
5
ParallelR
Anyone using or has access to ParallelR? I was looking at the page and
found nothing really useful!
http://www.revolution-computing.com/sitegenius/topic.php?id=195
I want to see if I can run R on a cluster of workstation, and use
batch systems like Grid Engine or Xgrid:
http://gridengine.sunsource.net/
http://ww.apple.com/acg/xgrid/
--Chi
2008 May 18
2
*apply function for arrays?
Hi all,
I've recently been writing functions which may deal with very large
arrays. And I hope to use *apply functions in the program so that the
code may look nicer and the performance may be better in the following
two situations.
The first situation is:
I'm having an array A with dim(A)==c(m,n,p). And I want to apply a
function F to a group of elements in A like:
1) F is applied to
2008 Oct 03
1
When to set small values to 0?
My dear R buddies,
I've run into a problem when doing numerical computation recently. In
a program that I've been working on, I usually get a vector of real
values which are theoretically (and it's correct) supposed to decrease
until reaching zero after a given value. However, most of the value
just wander at 10^-8 scale and never shrink exactly to zero. So I
guess I should manually
2009 Oct 27
1
How to express a tree?
Hello everybody,
I'm write a function whose output represents a tree. Can anyone please
recommend me some data structure in R which are good for expressing a
tree? The possible idea I'm having in my mind is to represent the
whole tree as a list in which a sublist (an element to the main list)
contains all its corresponding branches. Is there any simpler way of
doing this? Thank you very
2009 Jun 16
1
Constrained Optimization, a full example
After a few days of work, I think I nearly have it.
Unfortunately, theta is unchanged after I run this (as a script from a
file). I thought that theta would contain the fitted parameters.
The goal here is to find the least squares fit according to the function
defined as "rss" subject to the constraints defined as ui and ci.
I defined ui and ci to (hopefully) force par2 and par3
2012 Dec 15
1
Could Rstd_Busy do something (src/unix/sys-std.c)?
Currently the function Rstd_Busy() does nothing (src/unix/sys-std.c):
void attribute_hidden Rstd_Busy(int which)
{
}
The function is called through a pointer and R interfaces can change
this pointer and, thus, use a different function. I don't plan to
create a whole new interface to R, but I maintain a package whose aim
is to provide a new feature to R when it's running in a
2012 Mar 09
1
rtags for VI(M)
Hi,
according to the help file rtags does not support VI(M) yet. Is there any known hack to ctags to get tags for R in VI(M)?
BW
F
--
Federico C. F. Calboli
Neuroepidemiology and Ageing Research
Imperial College, St. Mary's Campus
Norfolk Place, London W2 1PG
Tel +44 (0)20 75941602 Fax +44 (0)20 75943193
f.calboli [.a.t] imperial.ac.uk
f.calboli [.a.t] gmail.com
2009 May 31
1
Bug in gmodels CrossTable()?
Is the code below showing a bug in Crosstable()? My expectation was that
the values produced by xtabs were rounded instead of truncated:
library(gmodels)
abc <- c("a", "a", "b", "b", "c", "c")
def <- c("d", "e", "f", "f", "d", "e")
wgt <- c(0.8, 0.6, 0.4, 0.5, 1.4, 1.3)