similar to: using for variable as rowname

Displaying 20 results from an estimated 5000 matches similar to: "using for variable as rowname"

2009 Mar 02
3
Error setting rowname if rowname currently NULL
Hi, My first post here and new to R so please bear with me (long time programmer though, helping a friend with some scripts). I've noticed a behaviour when using rownames() that I think is odd, wondering if I'm doing something wrong. To illustrate, say I create a very simple matrix (called fred): fred<-matrix(,4,2) It looks like this: [,1] [,2] [1,] NA NA [2,] NA NA
2020 Mar 10
1
LDAP pass_filter seems to be not working
Hi, we are using dovecot --version: 2.3.9.3 (9f41b88fa) with LDAP integration Just discovered the the config which was working for a while is not working now. (we are constantly upgrading dovecot). we have smtp/imap/pop3/sieveEnabled field in our LDAP directory to control which user is able to use witch services. The pass filter was used for control the usage for years now with %LsEnabled filter
2008 May 19
2
Sort matrix with duplicate row names alphabetically by rowname
Hi, I've a matrix that contains 4 replicates of each rowname. (4 a's, 4 b's, 4 c's in no particular order) Like this: # c 32 a 1 b 4 c 87 c 34 b 54 a 23 a 12 b 9 a 3 b 87 c 43 There are a couple of more columns but I'm using the above as an example I need to sort it so that the same rownames appear together in alpahbetical order. Like this: # a 1 a 23 a 12 a 3 b 4
2008 Jul 25
2
Package Hmisc, functions summary.formula() and latex(), options pdig, pctdig, eps and prmsd
Un texte encapsul? et encod? dans un jeu de caract?res inconnu a ?t? nettoy?... Nom : non disponible URL : <https://stat.ethz.ch/pipermail/r-help/attachments/20080725/bcafe250/attachment.pl>
2012 Jan 21
1
squid transparent proxy problem
Greetings, I installed a squid 3.1.10.i686 squid to a centos 6.2i686. The proxy is working fine with the default config. After I decided to use it as a transparent proxy, I added two lines to config: http_proxy 10.0.5.1:3128 transparent, always_direct allow all http_port 10.0.5.1:3128 transparent # # Recommended minimum configuration: # acl manager proto cache_object #acl localhost src
2010 Jun 16
4
search bug?
Hi all, I have emails with multiple Delivered-To: headers in them. The problem is that the SEARCH command only searches in the first instances. For example: 1 FETCH 14557 BODY[HEADER.FIELDS (Delivered-To)] * 14557 FETCH (BODY[HEADER.FIELDS (DELIVERED-TO)] {85} Delivered-To: pozsy at ojjektum.uhulinux.hu Delivered-To: szamlagyar at uhusystems.com ) 1 OK Fetch completed. 1 SEARCH HEADER
2011 Jun 28
1
centos 5.6 and intel MHD4500 graphics card
Hi! I've a toshiba satellite notebook, and I tried to install centos 5.6. The installer starts, but when it turns to graphical mode, the backlight goes off. I see the windows, buttons, but it's very dark, maybe the backlight switching off.. How can I get the installer to work correctly? The machine details: core i3 330m (The graphics controller maybe integrated to the cpu...) it's
2004 Jun 11
4
rownames of single row matrices
Hi I want to extract rows of a matrix, and preserve rownames even if only one row is selected. Toy example: R> a <- matrix(1:9,3,3) R> rownames(a) <- letters[1:3] R> colnames(a) <- LETTERS[1:3] R> a A B C a 1 4 7 b 2 5 8 c 3 6 9 Extract the first two rows: R> wanted <- 1:2 R> a[wanted,] A B C a 1 4 7 b 2 5 8 rownames come through fine. Now extract just
2009 Apr 28
8
duplicate 'row.names' are not allowed
Hi everyone,   I have got the following problem:   x1 <- rnorm(10,5,1) x2 <- runif(10,0,1) nam1 <- paste("A",1:4,sep=".") nam2 <- paste("A",6:9,sep=".") nam <- c(nam1,"A.4",nam2,"A.9") mydata <- data.frame(x1,x2) rownames(mydata) <- nam Error in `row.names<-.data.frame`(`*tmp*`, value = c("A.1",
2005 Mar 22
1
OS X proxy question
All, I'm currently using R 2.0.1 on a Powerbook G4 with OS X 10.3.8. So far the only way I've found to set my proxy is by doing Sys.putenv("http_proxy"="<insert proxy url>:<proxy port>) everytime I start up R. This works fine, but I'd like to find a solution that doesnt require manual input everytime I start up R. Does any one have a better way of
2005 Jan 24
1
R 2.0.1 and Rggobi install issues on windows XP
Has anyone else ran into problems installing Rggobi with R 2.0.1 on a windows platform? I've followed all the instructions available and I still can not get R to recognize Rggobi as a library (package). I I've already emailed Duncan Temple Lange at ggobi.org and bell labs and both emails have bounced back. Any help would be greatly appreciated. -Drew Balazs
2007 Jul 10
1
matrix of bins with different length
Dear users, please help to define the following data structure: I would like to have a matrix, where every element is a container of different size , containing real numbers. The containers (bins) are addressed by an index pair [i,j] (i is number of corresponding row of the matrix, j is the coloumn of the matrix). The containers are initially empty, I would like to fill them
2007 Oct 31
1
problem with package fSeries
Helo, please look at the log below: after loading the fSeries library, I can not use the log function. Is this a bug or what am I doing wrong? Because of this, I'm unable to use the garch library. thanks a lot for any help, Balazs Torma > log(1) [1] 0 > require("fSeries") Loading required package: fSeries Loading required package: robustbase Loading required package:
2007 Jul 13
1
counting occurances of matching rows in a matrix
I need help regarding to the following problem: Consider this matrix: > M <- matrix(c(1,2, 4,3, 1, 2),3, 2, byrow=TRUE) > M [,1] [,2] [1,] 1 2 [2,] 4 3 [3,] 1 2 I would like to have a matrix which counts the identical rows and places the counts into its third column. I tried with ftable(): > as.data.frame(ftable(M[,1], M[,2])) Var1 Var2 Freq 1 1 2
2023 Nov 05
2
Cryptic error for mscmt function
Hi everyone, I am trying to conduct a synthetic control analysis using the MSCMT package. However, when trying to run it I get a very cryptic error message saying "Error in lst[[nam]][intersect(tim, rownames(lst[[nam]])), cols, drop = FALSE]: subscript out of bounds". Does anyone know what this means and why I receive this error? I attached the code & dataset used in the
2019 Aug 04
1
dovecot-uidlist invalid data
Hi! I'm struggling with the following error: Aug 4 21:32:00 mx02 dovecot: imap(xxx at xxx.tld)<17693><w14vpU+PCCSwPxpo>: Error: Mailbox INBOX: Broken file /home/vmail/xxx.tld/xxx/dovecot-uidlist line 6246: Invalid data: Aug 4 21:49:22 mx02 dovecot: imap(xxx at xxx.tld)<21879><YNhW40+PLoBOGLlU>: Error: Mailbox INBOX: Broken file
2009 Jul 27
2
Split rownames into factors
Hi Guys, I was wondering how you would go about solving the following problem: I have a list where the grouping information is in the row names. Rowname [,1] X1Jan08 324 X1Jun08 65 X1Dec08 543 X2Jan08 23 X2Jun08 54 X2Dec08 8765 X3Jan08 213 X3Jun08 43 X3Dec08 65 How can I create the following dataframe: Value Date Group [1,] 324 Jan 08 X1 [2,] 65 Jun 08
2011 Dec 26
4
Summary tables of large datasets including character and numerical variables
Hello ! I am attempting to switch from being a long time SAS user to R, and would really appreciate a bit of help ! The first thing I do in getting a large dataset (thousands of obervations and hundreds of variables) is to run a SAS command PROC CONTENTS VARNUM command - this provides me a table with the name of each variable, its type and length; then I run a PROC MEANS - for numerical
2012 Oct 21
1
Changing a for loop to a function using sapply
Apparently there is one or more concepts that I do not fully understand from the descriptions of a function and the apply material. I have been reading the mail from this forum and have learned much but, in this case, what I have been reading here and from the manual isn't enough. The following code produces what I want with the for loop. From what I have read from this forum, a for
2008 Jan 04
1
predict.lm removes rownames for a single row. Why?
predict.lm keeps row names when working from several rows in newdata, but always removes rowname from a single row. The rownames are removed by the line in predict.lm predictor <- drop(X[, piv, drop = FALSE] %*% beta[piv]) What is the reason for that decision? I usually want to retain the row names. tmp <- data.frame(x=1:4, y=c(1,3,2,5)) tmp.lm <- lm(y ~ x, data=tmp) tmp.new <-