Displaying 13 results from an estimated 13 matches for "cardeal".
2007 Jan 25
7
filling the area
Please, how to fill the area under the curve?
x <- c(1:10)
y <- c(rnorm(10))
plot(x,y)
lines(x,y)
Thanks,
Mauricio Cardeal
2006 Sep 20
5
multiple lines and plot
Hi. Please, how can I put together 2 or more lines at the same
scatterplot ? Example: measures of protein intake (quantitative) of 4
children over 30 days, by day. How to plot all children at same graphic:
Protein X Time ? Is there any command like "overlay" ?
Thank you,
Mauricio
2005 Sep 13
11
if() command
Hi everyone !
Could you please help me with this problem ?
I??ve trying to write a code that assign to a variable the content from
another, but all I??ve got is a message error. For example:
if (age <=10) {group == 1}
else if (age > 10 & age <= 20) {group == 2}
else {group == 3}
Syntax error
Or
if (age <=10) {group == 1}
else (age > 10 & age <= 20) {group == 2}
2005 Oct 19
3
npmc package
Hi
Does anyone know where is the package: npmc (Nonparametric Multiple
Comparisons).
I found the reference on R Site Search, but not the package itself on
CRAN as suggested.
Thanks
Mauricio
2004 Feb 29
7
Proportions again
Hello.
I asked before and it was great, cause as a beginner I learned a lot. But, if I have this in R (1 and 2 are codes for sex):
> sex<-c(1,2,2,1,1,2,2,2)
> sex
[1] 1 2 2 1 1 2 2 2
I´d like to obtain the proportion according to sex.So I type:
> prop.table(sex)
[1] 0.07692308 0.15384615 0.15384615 0.07692308 0.07692308 0.15384615 0.15384615
[8] 0.15384615
The result is OK, but I
2006 Aug 02
2
missing value
Hi all
# I have this data set and how can I assign NA?s in just one command ?
And why the summary(dat) function preserves the value 9 as real. ?
x <- c(1,2,3,9,4)
y <- c(3,6,9,2,3)
z <- c(9,9,2,2,8)
w <- c(6,5,3,0,9)
dat <- cbind(x,y,z,w)
summary(dat)
x[x==9] <- NA
y[y==9] <- NA
z[z==9] <- NA
w[w==9] <- NA
summary(dat)
summary(x)
summary(y)
summary(z)
summary(w)
2006 Jul 11
2
new object
Um texto embutido e sem conjunto de caracteres especificado associado...
Nome: n?o dispon?vel
Url: https://stat.ethz.ch/pipermail/r-help/attachments/20060711/1da40382/attachment.pl
2004 Feb 11
6
lapply and dynamically linked functions
Hi all,
I'm trying to use lapply on a list with the following command:
out<-lapply(mylist,myfun,par1=p,par2=d) (1)
where
myfun<-function(x,par1,par1) {.....} (2)
now this function is in fact a wrapper for some Fortran code I have
written so I think this might be the problem. When I call lapply() as in
(1) I get the following message:
Error in get(x,
2005 Dec 13
1
sample matrix as a new object
Please, I??d like to store this sample matrix as a new object. How can I
do this ?
pulse <- c(67, 67, 68, 68, 68, 69, 69, 69, 69, 69, 70, 70, 70, 70, 71,
71, 72, 72, 73, 74)
m <- NULL
x <- 0
for (i in 1:5)
{
x <- sample(pulse,3)
m <- mean(x)
cat(x,m,"\n")
}
Thanks,
Mauricio
2006 May 02
0
factors and mca
...e written it
is.data.frame(de) returns FALSE
Try
de <- data.frame(d,e) instead of de <- factor(c(d,e))
HTH
Peter Alspach
> -----Original Message-----
> From: r-help-bounces at stat.math.ethz.ch
> [mailto:r-help-bounces at stat.math.ethz.ch] On Behalf Of Carlos
> Mauricio Cardeal Mendes
> Sent: Wednesday, 3 May 2006 8:23 a.m.
> To: 'R-Help help'
> Subject: [R] factors and mca
>
> Hi ! Wonder if I have this code below:
>
> a <- c(1, 2, 3, 2, 1)
> b <- c(3, 2, 3, 1, 1)
> d <-as.factor(a)
> e <-as.factor(b)
> table(d,e)
>...
2006 May 03
2
mca id numbers
Is it possible to make disappear the id numbers from scatter.dudi (mc
analysis) ?
a <- as.factor(c(1, 2, 3, 2, 1))
b <- as.factor(c(3, 2, 3, 1, 1))
x <- as.factor(c(1, 2, 2, 1, 3))
y <- as.factor(c(2, 2, 3, 1, 1))
dat <- data.frame(a=a, b=b,x=x,y=y)
summary(dat)
dat
require(ade4)
dat.acm <- dudi.acm(dat, scann = FALSE, nf = 2)
scatter.dudi(dat.acm)
Thank you very much !
2005 Dec 13
1
sample matrix
Please, I??d like to store this sample matrix as a new object. How can I
do this ?
pulse <- c(67, 67, 68, 68, 68, 69, 69, 69, 69, 69, 70, 70, 70, 70, 71,
71, 72, 72, 73, 74)
m <- NULL
x <- 0
for (i in 1:5)
{
x <- sample(pulse,3)
m <- mean(x)
cat(x,m,"\n")
}
Thanks,
Mauricio