Displaying 20 results from an estimated 10000 matches similar to: "How to report bugs?"
2009 Nov 13
1
Utility function to rotate log files?
I am wondering if there is a CRAN package that includes a utility
function that will "rotate" file names, in the same sense that
operating systems sometimes rotate log files. Or maybe there's
something in base R.
That is, we have a set of file names, say file1, file2, file3, and
when the function is called, file3 is deleted, file2 is renamed
file3, file1 is renamed file2, and
2001 Oct 23
2
Possible bug, Rprof() and scan(pipe()) (PR#1140)
This looks like a bug?
Unable to use scan(pipe()) while profiling.
I have no idea whether this version of R violates the
"do not use `Rprof' in an executable built for profiling"
warning in ?Rprof.
Thanks
-Don
> version
_
platform powerpc-apple-darwin1.4
arch powerpc
os darwin1.4
system powerpc, darwin1.4
status Patched
major 1
minor 3.1
year
2001 Sep 27
1
Problem with merge() (PR#1102)
I have encountered a problem with merge() that appears to be a bug.
Here's an example to illustrate it.
> tmp1 <- data.frame(a=letters[1:3],b=LETTERS[2:4],x=1:3)
> tmpa <- expand.grid(a=letters[1:4],b=LETTERS[1:4])
> tmpm.1 <- merge(tmpa,tmp1)
> tmpm.2 <- merge(tmp1,tmpa)
Error in "names<-.default"(*tmp*, value = vnames) :
names attribute must
2002 Apr 26
1
Problem with read.xport() from foreign package
I have found that data imported from SAS using read.xport() in
package foreign (installed recently) does not match the original
data, when the data consists of character strings that are only one
character long.
Here is an example.
---- SAS commands to create the data ----
options nocenter;
data foo;
a='a';
b='bb';
length c d $2;
c='c';
d='
2002 Oct 04
1
Getting rid of extra connections?
I'm trying to figure out how to get out of this situation:
> source('monit.r')
Error in file(file, "r") : All connections are in use
> showConnections()
description class mode text isopen can read can write
> help.search('connection')
Error in file(file, "r") : All connections are in use
> q()
Save workspace image? [y/n/c]: y
Error
2009 Mar 02
2
Need help extracting info from XML file using XML package
I have an XML file that has within it the coordinates of some
polygons that I would like to extract and use in R. The polygons are
nested rather deeply. For example, I found by trial and error that I
can extract the coordinates of one of them using functions from the
XML package:
doc <- xmlInternalTreeParse('doc.kml')
docroot <- xmlRoot(doc)
pgon <-
2001 May 31
1
failure in make check
I have a failure in 'make check' and I would appreciate assistance
regarding what to do about it.
Thanks
-Don
Installing R-1.2.3 on
build[99]% uname -sr
SunOS 5.8
(for those who may recall my previous request for help, I have
updated GCC to 2.95.3, and configured with gcc, GCC's c++, and f77
[not g77])
Running 'make check' got this:
creating `no-segfault.R'
2002 May 03
1
Daylight savings time and conversion to POSIXt (arghh!)
I have asked this question before, and received some suggestions for
work-arounds that get the job done--and they are much appreciated.
But I would still like to find out if I'm missing something, and
whether there is a direct way using POSIXt functions (as.POSIXct,
as.POSIXlt, strptime, in particular).
I have environmental data collected once per minute. Here is a subset
of 3 input
2018 Jun 01
0
Time-series moving average question
Hi Don, wow, you are so right. I picked that piece up from the bloggers tutorial and since I am R naive yet, I thought it was all one step
moving_average = forecast(ma(tdat[1:31], order=2), h=5)
Truly, I usually print and check at every step I can, as painful as it is sometimes.
Great lesson for this novice usR.
So the first and last values are NA in each case? Do you know why? Should I replace
2018 Jun 01
2
Time-series moving average question
You are right that there are no NAs in the practice data. But there are NAs in the moving average data.
To see this, break your work into two separate steps, like this:
tnr.ma <- ma(dat3[1:28], order=3)
TNR_moving_average <- forecast(tnr.ma, h=8)
I think you will find that the warning comes from the second step.
Print tnr.ma and you will see some NAs.
-Don
--
Don MacQueen
Lawrence
2003 May 29
5
Comparison Operator
Does R have a comparison operator similar to the Like function, for example:
a<-"Is a Fish"
b<-"Fish"
if(b in a){c<-TRUE}
Michael R Howard
Micron Technology Inc. Boise ID.
Fab C Engineering Software (FCES)
Software Engineer
2002 Jun 07
1
Bug list summary (automatic post)
=================================================
This is an automated summary of the status of the R-bugs
repository.
Note that this may be neither complete nor perfectly
correct at any given instance: Not all bugs are reported,
and some reported bugs may have been fixed, but the
repository not yet updated.
Some bug fixes are difficult to verify because they pertain
to specific hardware or
2018 Jun 01
0
Time-series moving average question
Hello Don, thank you for your response. I appreciate your help.
I am using the forecast package, originally I found it following a forecasting example on bloggers.com
https://www.r-bloggers.com/time-series-analysis-using-r-forecast-package/
And subsequently located the complete pdf https://cran.r-project.org/web/packages/forecast/forecast.pdf
Since I created this practice data using the
2018 Apr 30
0
How to visualise what code is processed within a for loop
Thank you for both replies Don & Rui,
The very issue here is that there is a search that needs to be done within
a text field and I agree with Rui later comment that regexpr might indeed
be the time consuming piece of code.
I might try to optimise this piece of code later on, but for the time being
I am working on the following part of building a neural network to try
indeed classifying some
2002 Jul 07
1
Bug list summary (automatic post)
=================================================
This is an automated summary of the status of the R-bugs
repository.
Note that this may be neither complete nor perfectly
correct at any given instance: Not all bugs are reported,
and some reported bugs may have been fixed, but the
repository not yet updated.
Some bug fixes are difficult to verify because they pertain
to specific hardware or
2007 Jun 16
3
data.frame and subsetting problem
I have read the R online help and wiki and I cannot seem to get something to
work the way I need it to.
I want to create a new data frame from an subset of an existing data frame
which has no reference to the original superset. If you following this
example, what I am trying to do may make more sense.
I have a file with values like this:
shirt,size,40
shirt,color,10
shirt,length,10
2009 Dec 02
4
sort a data frame by a vector
Hi,
I have a a vector and a data frame with two columns
vec = c("C", "A", "B")
dataDF = data.frame(A1 = c("B", "A", "C"), A2 = c(1,2,3))
I would like to sort the data frame by column A1 such that the order of
elements in A1 is as the same as in vec.
After the ordering, the data frame would be
A1 A2
C
2002 Aug 21
1
Bug list summary (automatic post)
=================================================
This is an automated summary of the status of the R-bugs
repository.
Note that this may be neither complete nor perfectly
correct at any given instance: Not all bugs are reported,
and some reported bugs may have been fixed, but the
repository not yet updated.
Some bug fixes are difficult to verify because they pertain
to specific hardware or
2005 Feb 08
0
Rép : Problem installing Hmisc
Hi,
I do have it installed on 2 Macs as well (OS X 10.2.8 and 10.3.7) and
what I need does work, however if you do the command check routine some
problems will likely be revealed. At least there were problems for me.
Denis
Le 08 févr. 2005, à 12:23, r-help-request@stat.math.ethz.ch a écrit :
> De: Don MacQueen <macq@llnl.gov>
> Date: 07 février 2005 16:05:14 GMT+01:00
> À:
2003 May 01
1
[R-gui] Re: Feedback about SciViews?
> From: Don MacQueen [mailto:macq at llnl.gov]
>
> At 5:29 PM +0100 4/30/03, Luke Whitaker wrote:
> >
> >At the risk of starting a religous war, isn't java the obvious choice
> >for a platform independent GUI ? I know java suffered a lot from
> >early over hypeing when it wasn't really ready, but in the last year
> >or two I've seen some very