Displaying 20 results from an estimated 2000 matches similar to: "rbind() of factors in data.frame"
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
2006 Nov 10
1
lattice: histogram of factor variable
Dear all,
I am encountering a problem with lattice in the current version 0.14-13
with R version 2.4.0 on a Windows XP system.
For example,
histogram(~voice.part, singer)
is not labeling the x labels according to the factor levels of
voice.part, which it should do (and has done in former versions of
lattice, as far as I remember).
In addition, I get the warnings
Warning messages:
1:
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 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
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
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 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
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
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 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]]
2008 Oct 24
1
write.csv(..., col.names = FALSE) (PR#13202)
Full_Name: Stefan Albrecht
Version: 2.7.2 (and 2.8.0)
OS: Windows NT
Submission from: (NULL) (194.127.8.17)
Dear R Debug-Team,
in write.csv() it is not possible to set both
row.names = FALSE, col.names = FALSE
since the col.names = FALSE gets overwritten:
> write.csv
function (...)
{
Call <- match.call(expand.dots = TRUE)
for (argname in c("col.names", "sep",
2010 Nov 11
2
comma separated format
Hi All,
I'm trying to create labels to plot such that it doesn't show up as
scientific notation. So for example how do I get R to show 1e06 as
$1,000,000.
I was wondering if there was a single function which allows you to do that,
the same way that as.Date() allows you to show in date format on a plot.
Thanks,
Sachin
--- Please consider the environment before printing this email ---
2010 Nov 09
1
date conversion and plot
Hi All,
I have a date in the format of yymmdd (without any of the backslashes, eg.
100731). How do I convert this into a Rdate and plot it? I don't want the
number of days from 1970's showing up as my date (Its the date I require).
Thanks,
Sachin
p.s. sorry about the corporate notice I can't remove it.
--- Please consider the environment before printing this email ---
Allianz -
2010 Oct 31
1
parallel for loop
Hi all,
Just following on from a previous thread (for loop). Is there a parallel
'for' loop like matlab (parfor maybe?). I know there was a Nvidia GPU
version for blas somewhere. But is there a CPU or a GPU version of the for
loop?
Thanks,
Sachin
p.s. sorry about the corporate notice below: cant get rid of it. Don't have
other mail client access at the office :(
--- Please consider