Displaying 20 results from an estimated 1000 matches similar to: "Bug (?) in read.fwf"
2008 Aug 11
1
A zoo question / problem
Hi
I'm having a problem using the zoo library and I can't see what I'm
doing wrong. For example setting up the data
> t1 = zoo (matrix (1:12, nrow = 3), order.by = as.Date
(c("2008-08-01","2008-08-02","2008-08-03")))
> colnames (t1) = c ("A", "B", "C", "D")
> t2 = zoo (matrix (1:12, nrow = 3), order.by =
2010 Oct 27
2
Which version control system to learn for managing Rprojects?
Gabor
As someone trying to the rest of my team using Subversion (which I have used for a while, but more as a backup / record of changes), have you a neat / automated way of building a package from a subversion repository?
Thanks
David Jessop
--------------------------
David Jessop
Global Head of Quantitative Research
UBS Investment Research
+44 20 7567 9882
----- Original Message -----
2007 Feb 05
2
Rconsole - setting the size and location of Windows help files (Rgui)
Hi,
Using the Rconsole file I can specify the size and location of the Rgui
windows on NT.
e.g.
# Dimensions (in characters) of the console.
rows = 51
columns = 100
How can I specify the size of the help windows that popups
when I ask for help? e.g. '?help'
I would like the popup window to have say rows = 51 and columns = 100,
just like the main window but a different location on the
2011 Jun 21
2
Documentation
I am new in R.
Can anyone tell :
1. how we can write our own functions in R ?
2. how we can save those functions and recall to use them?
3. what extensions are used for saving a file?
--
Siddharth Arun,
4th Year Undergraduate student
Industrial Engineering and Management,
IIT Kharagpur
[[alternative HTML version deleted]]
2010 Oct 28
1
Key combination that removes all R objects
Dear readers,
There is a combination of keys that I have (on several occasions now)
typed by accident into R (2.10.0) which removes all the objects in the
environment, and clears the console, as though I had typed
rm(list=ls()).
Unfortunately I don't know what the combination of keys are, so I am
struggling to find out more about this behaviour on my own and I was
hoping that someone has
2010 Jun 20
6
Popularity of R, SAS, SPSS, Stata...
Hi All,
I've been fiddling around with various ways to estimate the popularity
of R, SAS, SPSS, Stata, JMP, Minitab, Statistica, Systat, BMDP, S-PLUS,
R-PLUS and Revolution R. It's not an easy task. You can see what I've
come up with so far at http://r4stats.com/popularity . I'm sure people
will have plenty of ideas on how to improve this, so please let me know
what you think.
2010 Jun 16
4
questions on some operators in R
Hi all,
I have two questions. Can some one give some help?
The first question is regarding the pair of operators "&" and "&&". What
is the
difference between the two?
The second question is regarding "<-" and "=". Usually we use
"<-" as the assignment operator. I saw some people use "=". Is there
any
2011 Feb 17
1
How to speed up a for() loop
Dear all,
Does anyone have any idea on how to speed up the for() loop below.
Currently it takes approximately 2 minutes and 30 seconds.
Because of the size of Nsim and N, simulating a multivariate normal
(instead of simulating Nsim times a vector of N normal distributions)
would require too much memory space.
Many thanks for your kind help,
Simona
N=3000
PD=runif(N,0,1)
cutoff.=qnorm(PD)
2004 Sep 29
2
defining a template for functions via do.call and substitute.
Hi,
Given a function
fun <- function(a, b) a + b
how do I generate the function 'function(x, y) x + y'?
Working from the help files and Bill Venables' R-news article (June 2002),
I have tried various permutations with substitute without success.
e.g.
do.call("substitute", list(fun, list(a = as.name("x"), b = as.name("y"))))
Regards,
John.
2006 Sep 28
2
calling R from within Java, using jri
Hi,
I want to call R from within Java, using jri as per
http://www.rosuda.org/software/jri/
So I am following the instructions in the README file for JRI 0.2-4.
I have run 'sh configure.win' and 'make' and they seemed to be
successful.
(See below for the output from make, for example.)
But when I try 'run.bat rtest' (with and without R command line
arguments)
the output
2006 Jun 19
1
lattice xyplot - aligning date labels so that they align with the grid lines in panel.grid
Hi,
I have a basic question about aligning date labels for the x-axis
in an xyplot so that they align with the grid lines
from the panel.grid argument.
For example, with
x <- data.frame(
date = seq(as.Date("2005/01/01"), as.Date("2006/06/01"),
length.out = 20), value = runif(20))
xyplot(value ~ date, data = x,
panel = function(x, y, subscripts, ...)
{
2004 Sep 29
2
defining a template for functions via do.call and substit ute.
Here's one not-so-straightforward way:
> f <- function(a, b) a + b
> flist <- as.list(f)
> names(flist)[1:2] <- c("x", "y")
> flist[[3]] <- do.call("substitute", list(body(f), list(a=as.name("x"),
b=as.name("y"))))
> g <- as.function(flist)
> g
function (x, y)
x + y
HTH,
Andy
> From: john.gavin at ubs.com
2004 Oct 06
3
lapply with argument "X"
Hi,
I am probably making a simple mistake but I can't see it
> X
Error: Object "X" not found
> exists("X")
[1] FALSE
> lapply("X", exists)
[[1]]
[1] TRUE
Why is lapply producing true?
Is it something to do with the first
argument of lapply also being called 'X'?
> version
_
platform i386-pc-mingw32
arch i386
2007 Jul 31
0
R Programmer - finance - London based
Hi,
UBS Investment Bank are looking for a skilled R programmer,
seeking a career that combines computer science, applied statistics and
finance.
This position requires a person with a strong background in
- R programming and R package maintenance.
- Software development.
- Design and implementation of efficient algorithms.
especially for handling large datasets.
- Data visualisation and
2003 Oct 20
1
controling x-labels in xyplot (lattice) when x is POSIX object
Hi,
V1.8.0 seems to allow DateTimeClasses as the x argument in xyplots (lattice).
For example:
x <- seq.POSIXt(strptime("2003/01/01", format = "%Y/%m/%d"),
strptime("2003/10/01", format = "%Y/%m/%d"), by = "month")
y <- rnorm(length(x))
dat <- data.frame(x= x, y = y)
xyplot(y ~ x, data = dat, type = "b")
2008 Sep 11
5
How to obtain a sequence of dates consisting of only weekdays
Dear R-users,
How do I obtain a sequence of dates consisting of only weekdays without the weekends in R?
In S, I can do the following:
timeSeq(from="12/17/2007", to="8/25/2008", by="weekdays")
I tried using looking at timeSequence (fSeries package) and seq.Date (base package) but I do not know if I can specify "weekdays" rather than "day".
2004 Jul 15
1
formatting tables with long column names via package:xtable within Sweave
Hi,
I use the excellent Sweave tools for writing documents
but was wondering how to neatly print a data.frame
with long column headings.
I cant manage to do this via package:xtable.
Typically the labels that I would like use
for each column consist of more than one word,
but even with just one word,
the heading is often wider than the contents of the column.
So the number of columns that fits
2005 Feb 09
1
HTML help index generation problem with R under Windows
Hi,
I recently encountered a similar problem to
http://www.mail-archive.com/r-help at stat.math.ethz.ch/msg31960.html
One conclusion from that thread seems to be
that if XP users need to update the index,
after installing a package,
they have to install R into a directory
for which they have got write access,
either a network or local drive.
This is in order to update the files
'C:Program
2002 Nov 04
2
Sweave - documenting a long function
Hi,
I would like to use Sweave to document a long function.
Is it possible to split the function's code into chunks
such that Sweave will accept each chunk without complaining.
I have tried various approaches without sucess
but I feel sure that someone has done this already.
Here is one attempt
==============
% First, define the funciton header
<<defFunHdr, eval=FALSE>>=
x <-
2005 Apr 24
0
utils::setRepositories bug when adding a local repository? (PR#7810)
Full_Name: John Gavin
Version: 2.1.0 patched 18-04-05
OS: windows XP SP2
Submission from: (NULL) (139.149.1.203)
Hi,
I suspect that there may be a bug in utils::setRepositories().
Starting with
> getOption("repos")
CRAN CRANextra
"@CRAN@"