Displaying 20 results from an estimated 4000 matches similar to: "How to use expression in label with xYplot"
2005 Jun 06
2
How to vectorize
Dear R-List,
I would like to write nicely the names of some isotopes on a plot. The
code bellow works fine.
plot(1:10,1:10)
text(c(2,4,8),c(2,4,8),labels=c(expression(italic(phantom(0)^{78}*Ge)),
expression(italic(phantom(0)^{137}*Cs)),
expression(italic(phantom(0)^{129*m}*Te))),
cex=3
)
But, since I have a lot of
2005 Jun 06
2
How to vectorize
Dear R-List,
I would like to write nicely the names of some isotopes on a plot. The
code bellow works fine.
plot(1:10,1:10)
text(c(2,4,8),c(2,4,8),labels=c(expression(italic(phantom(0)^{78}*Ge)),
expression(italic(phantom(0)^{137}*Cs)),
expression(italic(phantom(0)^{129*m}*Te))),
cex=3
)
But, since I have a lot of
2006 Jan 04
4
Discrepency between confidence intervals from t.test and computed manually -- why?
I am sure there is something simple here I am missing, so please bear
with me.
It concerns the computation of the confidence interval for a population
mean.
The data are 125 measurements of Cs137 radation, a sample data set from
Davis "Statistics and Data Analysis in Geology" 3rd ed. (CROATRAD.TXT)
------------------
method 1: using textbook definitions: mean \pm se_mean * t-value
mu
2013 Jul 17
2
Dovecot 2.2.4/sendmail with sql user and aliases
Hi,
We are currently moving from linuxconf/dovecot to a dovecot setup with
sql support, the problem we currently facing is having a message sent to
a aliase delivered to the user email inbox with dovecot-lda, i have
created cedrict at mail.vdl and a alias test at mail.vdl, when i send to
cedrict at mail.vdl the message is included in the user inbox file, but
when i send to test at mail.vdl
2006 May 16
1
variable row names
Hy all,
I wish to use a variable as rownames for a set of datas.
By example :
> nom<-"toto"
> prenom<-"tutu"
> res<-c(1,2)
> res<-t(res)
> res
[,1] [,2]
[1,] 1 2
> colnames(res)<-c(nom,prenom)
> res
toto tutu
[1,] 1 2
> nom
[1] "toto"
>
I wish to call the rowname by the
2011 Nov 03
2
optimising a loop
Dear R community,
I'm trying to remove a loop from my code but I'm stock and I can't find a good way to do it. Hopefully one of you will have something clever to propose.
Here is a simplified example:
I have a squared matrix:
> nom.plac2 <- c("102", "103", "301", "303","304", "403")
> poids2 <- matrix(NA, 6,6,
2007 Jun 06
2
names not inherited in functions
Dear all,
I 'd like to keep the names of variables when calling them in a function.
An example might help to understand my problem :
The following function puts in a new data frame counts and percent of
a data.frame called as "tablo"
the step " nom.chiffr[1] <- names(vari) " is useless as names from the
original data.frame aren't kept in the function environement.
2004 Jul 08
7
Problem with the grep function
Let me present to you my problem :
I have a character vector x and I would like to obtain the indices of the
elements of
this vector that yielded exactly a match.
For example, x=nom, pattern="b", I would to obtain 2 because "b" is on the
second position.
First program :
nom <- c("a","b","ab")
grep("b",nom)
2 3
Then I try the
2013 Jul 24
3
Change values in a dateframe
Hello
I have the following problem :
The dataframe TEST has multiple lines for a same person because :
there are differents values of Nom or differents values of Prenom
but the values of Matricule or Sexe or Date.de.naissance are the same.
TEST <- structure(list(Matricule = c(66L, 67L, 67L, 68L, 89L, 90L, 90L,
91L, 108L, 108L, 108L), Nom = structure(c(1L, 2L, 2L, 4L, 8L,
5L, 6L, 9L, 3L, 3L,
2012 May 02
2
Problem with 'nls' fitting logistic model (5PL)
Dear R-Helpers,
I'm working with immunoassay data and 5PL logistic model. I wanted to
experiment with different forms of weighting and parameter selection,
which is not possible in instrument software, so I turned to R.
I am using R 2.14.2 under Win7 64bit, and the 'nls' library to fit the
model - I started with the same model and weighting type (1/y) as in the
instrument to see
2001 Apr 05
1
No subject
R-helpers,
Beginner in R language, I have a problem to install a package (multiv) in R
for Windows 98 (R-Gui)
First I have got the multiv.zip file from the CRAN precompiled contributed
packages for Windows and put this file in C:/Program Files/rw1022.
in R-Gui I tried to install it as following
> install.packages("C:/Program Files/rw1022/multiv.zip")
I received the following
2008 Aug 07
1
package.skeleton does invalide regular name, bis... (PR#12020)
Hi the list,
I guess I find an other bug (the first one is at the end off this mail)
in package.skeleton. It occurs when we give as code_file some file that
are not in the current directories.
If we give a single file to code_file (like code_file=3D"riri/fifi.R"),
it does not reconize fifi.R as a regular name and change it to
riri/zfifi.R
If we give several file to code_file (like
2002 May 18
2
can't connect from windows
Hello all,
I've setup samba Version 2.2.0a on Slackware 8.0
# uname -a
Linux slackware 2.4.5 #6 Fri Jun 22 01:38:20 PDT 2001 i686 unknown
I start samba as root from a console as:
/usr/sbin/smbd -D -d10 -l /var/adm/smblogs/log -s /etc/samba/smb.conf
/usr/sbin/nmbd -D -d1 -s /etc/samba/smb.conf
In smb.conf I have:
[files]
comment = mystuff
valid users = nigels
path = /usr1
read
2006 May 31
1
trouble with boot ()
Dear members,
I am trying to use boot () to compute the distributions of a statistic
of a data set. The statistic is defined in the following code:
eds<-function(x) {
r<-cor(x)
paren<-1-abs(r)/2
denom<-sum(sum(paren)+0.5)
desvio<-sd(x)
media<-mean(x)
a<-desvio/media
2013 Apr 02
3
blazer driver: Possible bugs with battery packs
Hello all,
long time away from this list, glad to be around again!
I have this Powercom Vanguard VGN VGD-20K31. Some details of this model:
* 3-phase input, single phase output
* Model has 240V / 12V9AH x 20 x 2SET, plus another set of 20 batteries.
All in all, 3 sets
* Serial connection to Windows 2k3 server with UPSMon
Now I was strongly considering replacing the bundled no-good upsmoon
2011 Apr 20
1
Error in dimnames(x) for Poisson EWMA model
I am attempting to run a Poisson EWMA model using Patrick Brandt's source code. I get the following error when I run the code:
Error in dimnames(x) <- dn :
length of 'dimnames' [1] not equal to array extent
Dimnames(x) looks like this:
[[1]]
NULL
[[2]]
[1] "mip" "div" "nom" "unity" "mood"
1999 Sep 02
1
trouble with the 'exclude' parameter of factor() (PR#265)
Full_Name: Laurent Gautier
Version: 0.65.0
OS: Irix 6.5
Submission from: (NULL) (195.110.4.98)
the following doesn't give what I expect
> test _ factor(ORGMORE[[1]],exclude=c(NA,"NOM"))
Warning message:
NAs introduced by coercion
> levels(test)
[1] "CYT" "EXC" "MEM" "NOM" "NUC" "SEC"
while this works...
>
2006 Apr 25
3
select boxe
yop,
http://rubyonrails.org/api/classes/ActionView/Helpers/FormHelper.html
ici j''ai vu qu''on pouvait g?n?rer des ?l?ment d''un formulaire gr?ce des
m?thodes. Apres quelque petite recherches j''ai trouv? comment g?n?rer un
select
<%= select(''category'', ''category.id'', Category.find_all.collect {|category|
category.nom})
2009 May 08
1
Merging two data frames with 3 common variables makes duplicated rows
I am new to R (ex SAS user) , and I cannot merge two data frames without
getting duplicated rows in the results. How to avoid this happening without
using the unique() function?
1. First data frame is called "tmv" with 6 variables and 239 rows:
> tmv[1:10,]
temps nom prenom sexe dist style
1 01:59:36 Cyr Steve H 45 free
2 02:09:55 Gosselin
2008 Jul 15
1
package.skeleton does invalide regular name...
Hi the list,
I am using package.skeleton on a file that has a very classic name, but
package.skeleton detect it as a invalid name :
--- 8< -------
package.skeleton(name="packClassicBis",code_files="./packClassic/R/progClassic.R")
Cr?ation des r?pertoires...
Cr?ation de DESCRIPTION...
Cr?ation de 'Read-and-delete-me'...
Recopiage des fichiers de code...
Cr?ation