search for: rnam

Displaying 5 results from an estimated 5 matches for "rnam".

Did you mean: ram
2013 Feb 27
0
How to specify ff object filepaths when reading a CSV file into a ff data frame.
Really old subject?, so, all my apologizes for digging up but, since I also ran into this? maybe this hack can be useful to someone I propose monkey patching here: library(ff) my.as.ffdf.data.frame <- function (x, vmode = NULL, col_args = list(), ...) { rnam <- attr(x, "row.names") if (is.integer(rnam)) { if (all(rnam == seq_along(rnam))) rnam <- NULL else rnam <- as.character(rnam) } x <- as.list(x) vmodes <- vector("list", length(x)) if (!is.null(vmode)) { nam <- names(x) if (is.list(vmode)...
2009 Jun 17
1
Coerce rectangular matrix to symmetrical square matrix
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 I have a rectangular matrix of size 920 by 85. I'd like to coerce it into a square matrix such that all row/col names are present in the new matrix and the additional values are zero. As an example: A B C D A 1 2 3 4 E 5 6 7 8 F 9 10 11 12 Would be coerced to: A B C D E F A 1 2 3 4 5 9 B 2 0 0 0 6 10 C 3 0 0
2005 Jul 20
1
aregImpute in Hmisc
...dataframe ds1.2 - 503 categorial variables and 1 continuous response variables. I ran aregImpute to deal with NA's and got the followig error: > fmla = terms( Response ~ . ,data=ds1.2) > ds.i = aregImpute(fmla,data=ds1.2) Error in matrix(as.double(1), nrow = n, ncol = p, dimnames = list(rnam, : length of dimnames [2] not equal to array extent Could you explain what I should do? Thanks a lot. Young.
2010 May 05
1
Error messages with psm and not cph in Hmisc
...nt","contr.treatment")) the equivalent sm4.6ll<-fit.mult.impute(Surv(agesi, si)~partner+ in.love+ pubty+ FPA+ strat(gender),fitter = *psm*, xtrans = dated.sexrisk2.i, data = dated.sexrisk2, x=T,y=T,surv=T, time.inc=16) returns the error message Error in dimnames(X) <- list(rnam, c("(Intercept)", atr$colnames)) : length of 'dimnames' [2] not equal to array extent Using survreg{survival} for which psm is a wrapper, also runs perfectly on the unimputed dataset. Is this a bug, or am I doing something wrong? I particularly want to make use of Design'...
2007 May 05
1
How to latex tables?
...rvival, data=t2) > tab Hospital A B Condition Survival Good Died 6 8 Survived 594 592 Poor Died 57 8 Survived 1443 192 If I use latex(tab) I get Error in dimnames(cx) <- list(rnam, nam) : length of 'dimnames' [1] not equal to array extent In addition: Warning messages: ...(deleted)...