similar to: invalid for factors not really working

Displaying 20 results from an estimated 70000 matches similar to: "invalid for factors not really working"

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
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:
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
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 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
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
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
2008 Mar 30
1
Second & subsequent calls to function fails. Please help debug.
Dear R-helpers, I'm running Sweave() on a file. First run: > Sweave('20080331.Rnw') Writing to file 20080331.tex Processing code chunks ... 1 : term hide (label=setup) 2 : echo term verbatim (label=oatvar) 3 : echo term verbatim (label=oatvar1) 4 : echo term verbatim (label=oat2wt) 5 : echo term verbatim (label=oat2wt) 6 : echo term verbatim (label=lm) 7 : echo term
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 ..$
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
2005 Dec 13
0
Updated version of gdata, gtools, gplots and gmodels
Hello, We have submitted the updated version of gdata, gmodels, gplots and gtools to CRAN. Summary of the changes is attached at the end. Best, Nitin ______________________ Nitin Jain, PhD <nitin.jain at pfizer.com> Non Clinical Statistics Pfizer, Inc. (Groton, CT) Bldg: 260, # 1451 Ph: (860) 686-2526 (Office) Fax: (860) 686-6170 Brief description of changes: CHANGES IN GDATA 2.1.2
2005 Dec 13
0
Updated version of gdata, gtools, gplots and gmodels
Hello, We have submitted the updated version of gdata, gmodels, gplots and gtools to CRAN. Summary of the changes is attached at the end. Best, Nitin ______________________ Nitin Jain, PhD <nitin.jain at pfizer.com> Non Clinical Statistics Pfizer, Inc. (Groton, CT) Bldg: 260, # 1451 Ph: (860) 686-2526 (Office) Fax: (860) 686-6170 Brief description of changes: CHANGES IN GDATA 2.1.2
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 = ""))))
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
2018 Mar 12
1
Equivalent of gtools::mixedsort in R base
x <- c( "a1", "a10", "a2" ) y <- c( "b10", "b2", "a12", "ca1" ) DF <- expand.grid( x = x, y = y ) # randomize set.seed( 42 ) DF <- DF[ sample( nrow( DF ) ), ] # missing from gtools mixedrank <- function( x ) { seq.int( length( x ) )[ gtools::mixedorder(x) ] } o <- do.call( order, lapply( DF, mixedrank ) )
2005 Nov 23
2
Really supress output from Sweave
Hi, I am using Sweave for chapters in my thesis that contain results. In the beginning of each chapter, I use this to load libraries I need. <<init,echo=FALSE,quiet=TRUE>>= library(gplots) library(Hmisc) library(e1071) @ What I want is, of course, to supress messages written by this code, but what I get in the end is X-init.tex with this the contents below. How do I really supress
2012 Feb 28
2
Error: could not find function "hier.part"
Error: could not find function "hier.part" things I have tried: 1. reinstall R (lastest version, on windows XP) 2. install package "gtools" 3. include: library(gtools) require(gtools) 4. how I call this function: hier.part(c$Y, xdata, fam = "gaussian", gof = "Rsqu") 5.when I try to check what's in the package "gtools", I get (hier.part is
2006 Oct 21
2
problem with mode of marginal distriubtion of rdirichlet{gtools}
Hi all, I have a problem using rdirichlet{gtools}. For Dir( a1, a2, ..., a_n), its mode can be found at $( a_i -1)/ ( \sum_{i}a_i - n)$; The means are $a_i / (\sum_{i} a_i ) $; I tried to study the above properties using rdirichlet from gtools. The code are: ############## library(gtools) alpha = c(1,3,9) #totoal=13 mean.expect = c(1/13, 3/13, 9/13) mode.expect = c(0, 2/10, 8/10) #