Displaying 20 results from an estimated 10000 matches similar to: "R-GUI 1.1.0"
2000 Jun 22
2
Current archive of r-help?
Is there an online archive of r-help that shows recent postings? The
one I saw on CRAN posted monthly collections, the last one at the end
of May.
The reason I ask is that I want to re-read that thread on the arrow
keys not working in the latest Windows release. I appear to have been
bitten by the same bug, and can't remember if anyone found a solution.
Duncan Murdoch
2002 Apr 15
1
Re: Writting R Function
Hi,
I think I found the problem. It lies in my Fortran program. Is there a
way, after a DO loop, to make sure it does NOT return anything?
Cheers,
Kevin
On Mon, 15 Apr 2002, Ko-Kang Kevin Wang wrote:
> Date: Mon, 15 Apr 2002 17:27:20 +1200 (NZST)
> From: Ko-Kang Kevin Wang <kwan022 at stat1.stat.auckland.ac.nz>
> To: R Help <r-help at stat.math.ethz.ch>
> Subject:
2000 Jul 31
4
Loop Delaying
Hi there,
I know this question may sounds strange, but here it goes:
Is it possible to delay the speed of a for loop? For example, if I
have:
for (i in 1:100) {
blah blah blah
}
within the for loop I want to draw a series of plots, and combining the
plots together I'll have an animation. Problem is the loop is too fast
and I only see the end result (which is not surprising actually).
2002 Sep 18
2
More on list to data frame (was: Re: List to Data Frame
Hi,
Now suppose I have just one list called FOO, which has 25 objects, e.g.:
[[1]]
1 2 3 4 5
[[2]]
6 7 8 9 10
.
.
.
And I want to do something like:
FRED <- data.frame(cbind(unlist(FOO[[1]]),
unlist(FOO[[2]]),
# ... for all 25 subsets
))
Is it possible to do this, without doing unlist(FOO[[i]]) 25
2002 Feb 04
1
row.names in read.table()
Hi,
I was trying to read in the following data set by using:
gas <- read.table("gas.tab", header = T)
when I got the error message:
Error in "row.names<-.data.frame"(*tmp*, value = row.names) :
duplicate row.names are not allowed
Any help are appreciated.
Thanks,
Ko-Kang Wang
2002 Mar 24
3
Data Checking
Hi,
This is a simple question with if elseif....however I am having trouble
constructing the solution for some reason.
Suppose I have a data set with 3 variables, a, b and c say. Let's say c
is the sum of a and b. So:
a b c
1 2 3
2 3 5
3 4 7
. . .
. . .
. . .
Suppose that I know there have been some data entry errors and I want to
check if ALL values in c is
2002 Mar 29
2
order()
Hi,
In the order() help file, there is an example like:
a <- c(4, 3, 2, NA, 1)
b <- c(4, NA, 2, 7, 1)
z <- cbind(a, b)
(o <- order(a, b)); z[o, ]
How can I do something like "order a in ascending order, b in descending
order"? And say I have a third vector c, and I'd like to add this to the
previous condition "a ascending, b descending, c
2001 Sep 19
2
Save/Display R Work
Hi,
I was tutoring in the lab when a student asked me this question.
Is it possible to save the work done in R, then source it back in AND
display all the work within R later? I know that one can save the history
(i.e. all the codes in a session) in *.R format, then source it back in at
a later stage. However the historical codes will not be displayed within
R, only the line source(...) is
2002 Feb 11
2
Time Series ts() Objects
Hi,
Is it possible to create a ts() object, whose data is daily based BUT
measured only on working days?
In other words, suppose I have a data set with 255 observations, measured
from 29 June 1959 to 30 June 1960. How would I create such a data? I
tried something like:
ts(c(...), start(1959, 180))
but I'm not sure what to use for frequency. In other words I don't know
how to
2002 Jan 24
1
Compiling R Package on Windows
I just installed the R-patched 1.4.0 and for some reason I now have
trouble compiling R packages - I could compile it a few weeks ago with R
1.4.0 released in December. This only happens if I put the --binary
option in.
For example:
Rcmd build --binary cw
returns the error:
make: Entering directory `/cygdrive/c/PROGRA~1/R/RW1040/src/gnuwin32'
make DLLNM= \
-C C:/MyRWork/cw PKG=cw
2002 Jan 09
3
Build R Packages (man)
Hi there,
I'm trying to get the manual for an R package (that I'm creating) to
work...
Firstly, I created the *.Rd files (by following the instructions in
"Writing R Extensions" and using prompt() in R, then edit the *.Rd
files. I then copy them into the "pkg/man" directory as suggested by the
manual. However when I load the library (successfully) in R, I cannot
2003 Mar 26
2
ifelse()
Hi,
I'm not sure if this can be done but..
I know that with ifelse() I can do something like:
ifelse(x <= 3, 1, 2)
to go through each element in my vector x, and if x_i <= 3 substitute the
number with 1 else with 2. Essentially I'll get a vector with 2 levels.
Can I tweak it so I can get 3-levels? For example:
if(x <= 3) then 1
elseif(3 < x <= 4) then 2
2001 Aug 15
2
FORTRAN in R
Hi,
Can anyone tell me what might cause this error message?
Error in .Fortran("swallocate", as.double(mtx), as.double(wt),
as.integer(n), :
C/Fortran function name not in load table
This occurs when I copied the Splus stepwise() function into R. I can
source into R fine, but when I need to call that function on some dataset,
I got the above error message.
Platform
2001 Aug 14
1
loess() v.s. lowess()
Hi there,
Just out of curious, is there any difference between loess() and
lowess() in R (and Splus in fact).
Which one is more often used?
Thanks,
Ko-Kang Wang
------------------------------------------------------------------------------
Ko-Kang Kevin Wang
Statistical Analysis Division Leader
Software Developers' Klub (SDK)
University of Auckland
New Zealand
2001 Aug 27
1
Compile from Source.
Hi,
Can anyone tell me how I can compile R from source under Windows
environemtn (I kind of know how to do it in a UNIX enviroment)?
What I mean is, suppose I make some changes in the R base, or reorganising
the libraries, and want to compile into a Setup.exe file (like the one
located in CRAN), how should I do this?
Many thanks in advance...
Ko-Kang Wang
2001 Oct 15
1
An Introduction to R - LaTeX Code
Hi,
I am interested in seeing the LaTeX version of R manuals (such as An
Introduction to R), and I found from CRAN that:
"The texinfo sources of the latest version of these documents are
contained
in every R source distribution (in the subdirectory doc/manual of the
extracted archive). "
However when I went into that directory I only found the pdf and html
version. Are there any
2003 Apr 04
3
Sampling from a Data Frame
Hi,
I've been looking through the documentation for sample(), but can only get
it to work with vectors. Is it possible to sample from a dataframe?
--
Cheers,
Kevin
------------------------------------------------------------------------------
/* Time is the greatest teacher, unfortunately it kills its students */
--
Ko-Kang Kevin Wang
Master of Science (MSc) Student
SLC Tutor and Lab
2002 Mar 20
4
A Very Trivial Question
Hi,
This is a very trivial question, and I do not know why I cannot remember
the answer at all!
How does one get the entire system information (which OS, R
version....etc) using an R command?
Thanks,
Kevin
------------------------------------------------------------------------------
Ko-Kang Kevin Wang
Postgraduate PGDipSci Student
Department of Statistics
University of Auckland
New Zealand
2004 Feb 26
3
Collapsing Categorical Variables
Hi,
Suppose I have a categorical variable called STREET, and I have 30
levels for it (i.e. 30 different streets). I want to find all those
streets with only 15 observations or below then collapse them into a
level called OTHER. Is there a quick way, other than using a for()
loop, to do it? Currently what I'm doing is something like:
### Collapse STREET (those < 15)
st <- c()
2002 May 06
4
Subtitle?
Hi,
Is it possible to add a subtitle that appears directly below the main
title?
I tried the "sub" parameter, but it adds sub-title to the bottom of the
plot.
Cheers,
Kevin
------------------------------------------------------------------------------
Ko-Kang Kevin Wang
Postgraduate PGDipSci Student
Department of Statistics
University of Auckland
New Zealand
Homepage: