Displaying 20 results from an estimated 2000 matches similar to: "lattice: histogram of factor variable"
2006 Nov 23
1
Problem with as.ts(zoo-object)
Dear all,
I have an error message, when I try to convert a zoo object (called
test) to ts (on R 2.4.0, Package zoo version 1.2-1, Windows XP)
> test
1994-05-10 1994-06-09 1994-07-09
0.0024943889 0.0024881824 0.0006955831
> str(test)
atomic [1:3] 0.002494 0.002488 0.000696
- attr(*, "index")=Class 'Date' num [1:3] 8895 8925 8955
> is.regular(test)
[1] TRUE
2006 Nov 14
3
Error in str(its-object)
Dear all,
on my Windows XP R 2.4.0 version with Package its version 1.1.4 I have a problem with
str() applied on an its-object after a simple matrix manipulation on the its object (see below).
I am not sure, whether this a problem with my application, its or str().
Of course, one can make
> str(core(its(mat)) / 1)
num [1:2, 1:3] 1 2 3 4 5 6
- attr(*, "dimnames")=List of 2
..$
2007 Apr 12
3
Method dispatch for print() in package its
Dear all,
in the package its the print() method does not seem to correctly work in all circumstances:
> selectMethod(print, "its")
Method Definition:
function (x, ...)
{
print(x@.Data <mailto:x@.Data> , ...)
}
<environment: namespace:its>
Signatures:
x
target "its"
defined "its"
> fundPME.lst[[1]]$irr
An object of
2007 Aug 03
2
Problem with making dll under Windows
Dear all,
I have problems to compile a DLL for Windows XP with R version 2.5.1 (2007-06-27).
See output below:
C:\AZ_DATEN\C, C++\BE_speedup>R CMD SHLIB dmypow.c
Goto undefined subroutine &DynaLoader::bootstrap_inherit at C:\Programme\R\R-2.5
.1\share\perl/XSLoader.pm line 80.
Compilation failed in require at c:/Programme/Perl/lib/IO/Handle.pm line 262.
BEGIN failed--compilation aborted
2007 Apr 19
2
rbind() of factors in data.frame
Dear all,
I would like to inquire, if it is a desired feature that the combination with rbind() of two data frames with factors columns does not sort the factors levels of the combined data frame.
> str(rbind(data.frame(a = factor(c(4, 3))), data.frame(a = factor(c(2, 1)))))
'data.frame': 4 obs. of 1 variable:
$ a: Factor w/ 4 levels
2007 Oct 08
2
Incompatible methods ("-.POSIXt", "Ops.difftime") for "-"
Dear all,
according to the Help-page of DateTimeClasses {base} I should be able to do
time - z
with
time date-time objects
z a numeric vector (in seconds) or an object of class "difftime".
However, on R version 2.6.0 (Windows XP) I get
> Sys.time() - as.difftime(c("0:3:20", "11:23:15"))
Time differences in mins
[1] 1191837998 1191837318
2009 Jan 14
1
Memory use
Dear R-help list,
I am just trying to increase my memory for R, but for some reason I cannot really increase the memory size as much as I would like. I have 3 GB of RAM on a Windows XP (R 2.8.1)
> memory.size()
[1] 879.4667
> memory.size(T)
[1] 1162.75
> memory.limit()
[1] 3072
> gc()
used (Mb) gc trigger (Mb) max used (Mb)
Ncells 421697 11.3 1476915 39.5 1476915 39.5
Vcells
2007 Oct 05
8
Linux editor for R+LaTeX, but not Emacs
Using Tinn-R (in windows) is possible to run latex and R from the same
editor, which was great. Now, I am using Ubuntu-linux, which has been
better than WinXP. Currently, I am using Emacs (and then install ESS)
for running LaTeX and R from a same editor-program (like i was doing
with Tinn-R in windows). Nevertheless, and even though i have been using
Emacs for almost 2 years, it is not as
2007 Feb 06
15
R in Industry
The other day, CNN had a story on working at Google. Out of curiosity, I
went to the Google employment web site (I'm not looking, but just
curious). In perusing their job posts for statisticians, preference is
given to those who use R and python. Other languages, S-Plus and
something called SAS were listed as lower priorities.
When I started using Python, I noted they have a portion of the
2007 Feb 08
2
Timings of function execution in R [was Re: R in Industry]
On 2/8/07, Albrecht, Dr. Stefan (AZ Private Equity Partner)
<stefan.albrecht at apep.com> wrote:
> Dear all,
>
> Thanks a lot for your comments.
>
> I very well agree with you that writing efficient code is about optimisation. The most important rules I know would be:
> - vectorization
> - pre-definition of vectors, etc.
> - use matrix instead of data.frame
> - do
2005 Sep 30
0
Easy cut & paste from Excel to R
Maybe this helps, too.
readExcel <- function(row.names = 1, check.names = FALSE, ...)
read.delim("clipboard", row.names = row.names, check.names =
check.names, ...)
writeExcel <- function(x, check.rows = FALSE, check.names = FALSE, ...){
df <- data.frame(x, check.rows = check.rows, check.names = check.names)
write.table(df, "clipboard", sep = "\t",
2005 May 04
0
its package: inexplicable date-shifting
please see also my posting on R-sig-finance
https://stat.ethz.ch/pipermail/r-sig-finance/2005q2/000290.html
Best regards,
Stefan
-------------------------------------------------------
Dr. Stefan Albrecht, CFA
Allianz Private Equity Partners GmbH
Giselastraße 4
D-80802 Munich, Germany
Phone: +49.89.38 00 - 18 317
Fax: +49.89.38 00 - 818 317
stefan.albrecht@allianz.com
www.apep.com
2004 Oct 06
6
lattice package for R 2.0.0
Dear all,
I am trying to install packages with the new R 2.0.0. However for
several packages, like MASS, lattice or R2HTML, I get an error like:
> library(lattice)
Error in library(lattice) : 'lattice' is not a valid package --
installed < 2.0.0?
>
However, I have just downloaded the latest versions from CRAN.
As far as lattice is concerned, it seems that the Windows binary is
2004 Jun 23
3
Cannot Restore Workspace with R 1.9.1 (PR#7012)
Full_Name: Stefan Albrecht
Version: 1.9.1
OS: Windows NT 4.0
Submission from: (NULL) (194.127.2.73)
Hi all,
upgrading to R 1.9.1 I am no longer able to restore saved data in .RData with
after some involved data manipulations and calculations (fatal error!).
In addition I get the message
Error: object 'family' not found whilst loading namespace 'MASS'.
This problem does not
2005 Oct 18
2
Inconsistency with matrix indexing (PR#8214)
Full_Name: Stefan Albrecht
Version: 2.2.0
OS: Windows XP
Submission from: (NULL) (194.127.2.74)
Dear all,
in the new R 2.2.0, the matrix indexing has been changed. In my opinion, this
leads to an inconsistency when indexing one-row matrices.
Take
> (mat <- matrix(1:9, nrow = 3, dimnames = list(paste("r", 1:3, sep = ""),
paste("c", 1:3, sep = ""))))
2004 Nov 16
0
From S-Plus to R
Dear Isabelle,
for most of my work I have switched from S-Plus to R, because it is
easier to make scripts with due to the better documentation and some
other more reasonable implementations. And there was also a cost
issue with the S-Plus Server, which is not for free at all.
In R I use the its package for time series, which is quite sufficient
for my needs. The only problem I encountered was
2004 Nov 15
1
Multivariate Sampling
Dear all,
I am looking for routines which allow multi-variate sampling from
non-normal distributions (loglogistic) given correlations among the
variables.
Unfortunately, I could not find a suitable package for R. Does
anybody know one?
Many thanks and best regards,
Stefan Albrecht
[[alternative HTML version deleted]]
2001 Oct 25
3
ext3 Patch doesn't work with 2.4.13
Hi,
I just wanted to compile my kernel 2.4.13 with the ext3-2.4.13-pre6 patch,
but it doesn't work.
It seems, that the patching failes by replacing some things in a textfile.
Does anyone of you know, if there is a upcoming solution for this?
Kind regards
Jan Albrecht
--
Jan Albrecht Phone: +49-5241-80-88404
System Consultant UNIX/NT Fax:
1997 Dec 02
2
R-beta: wish: hist() returning breaks and counts
Hi,
would it be possible to change the hist() function in future R Versions to
accept a "plot=F" parameter (like hist() in S it should return a list with
"breaks" and "counts" in this case). This change should be very simple.
Albrecht
-------------------------------------------------------------------------------
Albrecht Gebhardt email :
1997 Dec 02
2
R-beta: wish: hist() returning breaks and counts
Hi,
would it be possible to change the hist() function in future R Versions to
accept a "plot=F" parameter (like hist() in S it should return a list with
"breaks" and "counts" in this case). This change should be very simple.
Albrecht
-------------------------------------------------------------------------------
Albrecht Gebhardt email :