Displaying 20 results from an estimated 3000 matches similar to: "Losing attributes in data.frame() (PR#10873)"
2009 Apr 28
1
image3d in misc3d
Hi,
I'm trying to make sense of the image3d plots in misc3d. Unfortunately I can't find any authors on the help pages of the function to e-mail directly. In the following toy example, I'm puzzled as to why (1) the positions of the image plot on the axes include negative values when I think I've specified all to be 1:3 and (2) the logic that needs to be adhered to in order to
2008 Apr 16
3
memory issues
Hi all,
I've read the R for windows FAQ and am a little confused re:
memory.limit and memory.size
to start using R 2.6.2 on WinXP, 2GB RAM, I have the command line "sdi
--max-mem-size=2047M"
Once the Rgui is open, memory.limit() returns 2047, memory.size()
returns 11.315, and memory.size(max=T) returns 19.615
Shouldn't memory.size(max=T) return 2047?
Upon running several
2008 Aug 05
1
Fix for nls bug???
Hi All,
I've hit a problem using nls. I think it may be a restriction in the
applicability of nls and I may have found a fix, but I've been wrong before.
This example is simplified to the essentials. My real application is much
more complicated.
Take a function of matrix 'x' with additional arguments:
matrix 'aMat' whose values are _not_ to be determined by nls
vector
2007 Nov 28
2
alternatives to traditional least squares method in linear regression ?
Dear list,
I have encountered a special case for searching a linear regression
where I'm not satisfied with the results obtained using the traditional
least squares method (sometimes called OLS) for estimating/optimizing
the residues to the regression line (see code below). Basically, a
group of my x-y data are a bit off the diagonal line (in my case the
diagonal represents the ideal or
2008 Sep 23
2
read.table & readLines behaviour?
Hi,
I have been using 'read.table' regularly to read tab-delimited text
files with data. No problem, until now.
Now I have a file that appeared to have read fine, and the data inside
looks correct (structure etc), except I only had 15000+ rows out of
the expected 24000. Using 'readLines' instead, and breaking up the
data by tabs, gives me the expected result.
I do not
2008 Aug 04
0
Unexpected nls behaviour: Solved
Hi Everyone,
I'd omitted the non-optional 'parameters' argument to selfStart. Making this
change to SSbatch gives the same (successful) result from the two calls to
nls.
SSbatch<-selfStart(
model=function(Batch, Coeffs)
{
Coeffs[Batch]
}
,initial=function(mCall, data, LHS)
{
# Estimate coefficients as mean of each batch
xy <- sortedXyData(mCall[["Batch"]],
2008 Aug 01
0
Unexpected nls behaviour
Hi everyone,
I thought that for a selfStart function, these two should be exactly
equivalent
> nls(Aform, DF)
> nls(Aform, DF, start=getInitial(Aform, DF))
but in this example that is not the case in R (although it is in S-plus
V6.2)
------------------------------
SSbatch<-selfStart(
model=function(Batch, Coeffs)
{
Coeffs[Batch]
}
,initial=function(mCall, data, LHS)
{
# Estimate
2009 Jul 03
0
Presumably simple question about sorting/ordering
Hi,
I'm stuck with a fairly basic re-ordering problem. I want to extract part of a matrix as a vector, and reorder it to match with an erratic sequence of x,y coordinates. Here's an example that shows what I want and how close I've got (but for some reason my mind just can't get the final step at the moment!):
#Define a grid:
xy100 <- expand.grid(1:10, 1:10)
# Define a matrix
2009 Mar 10
1
require() is not giving TRUE / FALSE statements ?
Dear list,
?require says :
"... |require| is designed for use inside other functions; it returns
|FALSE| and gives a warning (rather than an error as |library()| does by
default) if the package does not exist ..."
However when I run the following code I don't get any TRUE / FALSE
statements (but the warning only).
Since I want to test from inside of a function if a given package
2008 Jan 17
2
Converting plots to ggplot2
Hello Hadley,
I am trying to reproduce the following with ggplot:
a <- seq(0, 360, 5)*pi/180 ; a
ac <- sin(a + (45*pi/180)) + 1 ; ac
plot(a, ac, type='b', xaxt = "n")
axis(1, at=seq(0,6,1), labels=round(seq(0,6,1)*180/pi),1)
abline(v=c(45*pi/180, 225*pi/180))
I can get the basic plot:
p <- qplot(a, ac, geom=c('point', 'line')) ;
2009 Feb 12
2
Problem with loading rJava in R
Hello.
I am trying to load the rJava package in R-2.7.2 (Windows XP 64-bit RGui)
and get the following error message even though the mentioned .dll file is
located at the directory listed in the error message. I have tried to
uninstall and reinstall the package but that does not resolve the problem.
Then uninstallation and re-installation of R did not resolve the issue
either. Any suggestions are
2008 Dec 08
1
Clustering with Mahalanobis Distance
Dear R ExpeRts,
I'm having memory difficulties using mahalanobis distance to trying to cluster in R. I was wondering if anyone has done it with a matrix of 6525x17 (or something similar to that size). I have a matrix of 6525 genes and 17 samples. I have my R memory increased to the max and am still getting "cannot allocate vector of size" errors. My matrix "x" is
2009 Apr 29
1
RweaveHTML (R2HTML) Help
I have found Sweave() to be great for producing PDF documents. I have
been experimenting with RweaveHTML (from the R2HTML) package and have
had moderate success. My main issue has been that I simply want the R
output to be shown verbatim in the HTML document but RweaveHTML tends to
convert most output to a table, for example. So, is there a way to
force the RweaveHTML driver to simply provide
2010 Nov 11
3
User input after opening graphing device
If I run the following:
> windows()
>
> bringToTop(-1)
>
> interactive()
[1] TRUE
>
> run <- readline(prompt = "Continue (Yes = 1, No = 2):")
Continue (Yes = 1, No = 2):
> dummy <- 1
> run
[1] ""
it does not allow user input though the session is interactive (it jumps right over the readline command).
It would be great
2008 Jun 05
0
bug in barplot.default (graphics) (PR#11585)
There seems to be a minor bug in barplot.default when used with log scale w=
here one or more values is NA:
dat <- matrix(1:25, 5)
dat[2,3] <- NA
barplot(dat, beside =3D T) #Plots and appropriate barplot with gaps for m=
issing data
barplot(dat, beside =3D T, log =3D "y")
#Error in if (min(height + offset) <=3D 0) stop("log scale error: at least =
one 'height +
2008 Apr 17
1
odfWeave \Sexpr
Dear All,
Using odfWeave is working fine for me using code chunks <<...>>= ... @
But the inline \Sexpr{date()} is not evaluated and returns again
\Sexpr{date()} instead of "Thu Apr 17 18:15:47 2008".
What might be the reason for that, what do I have to look for?
I'm using Windows XP, R 2.6.1, odfWeave_0.7.3 and OpenOffice 2.4.
Session Info:
R version 2.6.1
2008 Jun 17
0
echo Rprofile.site on startup
Hello,
I have not been able to find how to have R echo the Rprofile.site
contents to the console on start-up.
Changing the windoze shortcut to include the '--verbose' option does not
show what I am looking for.
I would like to see the options and commands listed, in addition to the
library() loadings, as they are processed. Examples of the type of
options I like and shortcut-commands
2009 Mar 04
0
error in mood.test
Dear list,
when running a mood.test() (part of package "stats") on slightly longer
vectors (than the example from the help-page) we get the error-message
shown below : once both vectors tested are of length 50 this error oocurs.
Note, that this problem didn't occur with R-2.7.x (or even older versions).
> x <- rnorm(50,10,5)
> y <- rnorm(50,2,5)
>
>
2009 Apr 28
1
Cannot update.packages (error message)
When trying to update (various) packages using update.packages() I get the following error message for various packages
package 'fBasics' successfully unpacked and MD5 sums checked
Error in unpackPkg(foundpkgs[okp, 2L], foundpkgs[okp, 1L], lib) :
malformed bundle DESCRIPTION file, no Contains field
>
This happens with other packages besides fBasics (Matrix, as well as others) and I
2009 Apr 28
1
R-2.9.0 malformed bundle DESCRIPTION file, no Contains field
When trying to update (various) packages using update.packages() I get the following error message for various packages
package 'fBasics' successfully unpacked and MD5 sums checked Error in unpackPkg(foundpkgs[okp, 2L], foundpkgs[okp, 1L], lib) :
malformed bundle DESCRIPTION file, no Contains field
>
This happens with other packages besides fBasics (Matrix, as well as others)