Displaying 20 results from an estimated 200 matches similar to: "Row name of empty string issue"
2007 Aug 11
0
DOE and interaction plot general question
This is a general question about Design of experiments. If i am not allowed
to post general questions like this here please accept my apologies and
ignore the question.
I did a DOE with six factors in eight runs. I know i cannot check for
interactions using this design, but i tried the interaction plot and it
showed me many interactions. After this I foldover the design and ran the 8
runs to learn
2007 Aug 06
4
Function for trim blanks from a string(s)?
I feel like an idiot posting this because every language I've ever seen has a
string function that trims blanks off strings (off the front or back or
both). Ideally, it would process whole data frames/matrices etc but I don't
even see one that processes a single string. But I've searched and I don't
even see that. There's a strtrim function but it does something completely
2018 Dec 04
0
Required to Build Samba
Hai Barry,
> -----Oorspronkelijk bericht-----
> Van: samba [mailto:samba-bounces at lists.samba.org] Namens
> Barry D. Adkins via samba
> Verzonden: dinsdag 4 december 2018 5:33
> Aan: samba at lists.samba.org
> Onderwerp: [Samba] Required to Build Samba
>
> The wiki:
> https://wiki.samba.org/index.php/Package_Dependencies_Required
> _to_Build_Samba
>
>
2018 Dec 04
1
Required to Build Samba
> -----Oorspronkelijk bericht-----
> Van: samba [mailto:samba-bounces at lists.samba.org] Namens
> Rowland Penny via samba
> Verzonden: dinsdag 4 december 2018 10:13
> Aan: samba at lists.samba.org
> Onderwerp: Re: [Samba] Required to Build Samba
>
> On Tue, 4 Dec 2018 09:24:30 +0100
> "L.P.H. van Belle via samba" <samba at lists.samba.org> wrote:
>
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 Sep 17
3
using for variable as rowname
Is there a way to use the cycle variable for rowname?
v=1:6
for (a in 1:3){
for (b in 4:5) {
v=rbind(v,a.b=1)
}
}
v
This above obviously does not work, but I couldn't find out how to use a and
b to construct a rowname like 14, 15, 24, 25.
Thanks for the help.
Balazs
--
View this message in context: http://www.nabble.com/using-for-variable-as-rowname-tp19533203p19533203.html
Sent from
2009 Nov 16
1
extracting values from correlation matrix
Hi! All,
I have 2 correlation matrices of 4000x4000 both with same row names and
column names say cor1 and cor2. I have extracted some information from 1st
matrix cor1 which is something like this:
rowname colname cor1_value
a b 0.8
b a 0.8
c f 0.62
d k 0.59
- - --
-
2004 May 17
1
drawing half-circles
Dear wonderful R community,
I've been creating color-coded concentric circles using the "points" function,
but I just realized that what I would really like to do is draw color-coded
concentric half-circles.
(Because I want to communicate information about the diameters--
half-circles are sufficient to show diameters AND they leave ample room to one
side of the figure to label
2008 Jul 15
0
creating axis of the plot before data are plotted -- solved
Solved. I tried to create a minimal example, but my script is too
complicated to just cut out lines (too many dependencies). Instead of
it, I sketch
my idea. I do not say it is the nicest solution, but it works as I wanted.
The first five rows of my data-matrix:
> data_svd$u[1:5,]
[,1] [,2] [,3] [,4] [,5]
[,6] [,7]
25.12333 -0.05845695
2006 Jul 21
2
seeking robust test for equality of variances w/ observation weights
Hello R community,
I am looking for a robust test for equality of variances that can take
observation weights.
I realize I can do the F-test with weighted variances, but I've read that
this test is not very robust.
So I thought about maybe adding a "weights" argument to John Fox's code for
the Levene Test (in the "car" library, "levene.test"),
substituting
2003 Jul 28
2
aregImpute: warning message re: acepack and mace
hi,
i'm trying to learn how to use aregImpute by doing the examples provided with
the package, and after installing Hmisc.1.6-1.zip (for Windows),
and running the very first example on R 1.7.1, i get an error message warning
me about "mace" (see below) and acepack.
i found the acepack package, but its filename ends in tar.gz
and i'm finding it difficult to open (because its
2007 Oct 17
3
type conversion
Hello,
I am trying to do arithmetic on numbers extracted from a PostgreSQL
database, wherein the numbers are stored as type "money". The
transcript below illustrates the problem.
> Membersind06 <- sqlQuery(channel,"select * from income where rowname like '%Membersind%'")
> names(Membersind06)
[1] "rowname" "item"
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
2006 Feb 12
1
Mathematical typesetting of column heads using the latex (Hmisc) function
Dear r-helpers,
I would very much appreciate help with the following problem:
The following command (in a .Rnw file)
latex(anova(e7.lmer3, e7.lmer4), file = 'e7lmer34.tex', rowname = c
('nonlinear', 'linear'), longtable = FALSE, dcolumn = T, booktabs =
T, table.env = F)
produces the following output after running Sweave:
% latex.default(anova(e7.lmer1, e7.lmer2),
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
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
2004 Nov 20
1
how to suppress whiskers in a bwplot?
dear R-help,
i have looked carefully through the R-help archives for information on how
to suppress whiskers in a bwplot. someone asked this question a while
ago, but the answer he received is not available in the archives.
but i did manage to get my hands on a panel function (called
"my.panel") that is supposed to do this (the function is reproduced at the
end of the email, below).
2003 Oct 18
1
why does data frame subset return vector
Hello,
I've a weired problem with a data frame. Basically it should be just one
column with
specific names coming from a data file (the file contains 2 rows, one should
be
the for the rownames of the data frame the other contains numeric values).
> df.rr <- read.table("RR_anova.txt", header=T, comment.char="", row.names=1)
> df.rr[c(1,2,3),]
[1] 1.11e-16 1.11e-16
2009 Jul 13
2
how to keep row name if there is only one row selected from a data frame
Hi, there:
Assume I have a dataframe with rownames like A with rownames like a to e,
> A
[,1] [,2]
a 1 6
b 2 7
c 3 8
d 4 9
e 5 10
when I use A[1,], I lost the rowname for it, like below. How could I keep
it? Is there an easy way instead that I have to modify by myself after I
used A[1,] manually.
> A[1,]
[1] 1 6
Thanks,
W.
--
Weiwei Shi, Ph.D
Research
2008 Jul 04
1
Hmisc latex: table column width
R users,
I'm trying to set a column width to one of the columns in a latex
table (using Hsmic package, latex function). My intention is to get
\begin{tabular}{lp{1.2in}llllll}\hline\hline
Here's an example
####### R code #########
DF <- data.frame(Titanic)
DF$long <- paste("This is a veeeeeeeeeeryyyyyyyyyy long line")
DF <- DF[, names(DF)[c(6,1:5)]]
library(Hmisc)