Kjetil and Gabor:
thank you both so much for for yor help
silva <[EMAIL PROTECTED]> wrote:
> Dear all
>
>
> I think my problem is not complicated but I'm having difficulties to solve
> it.
> v is a vector: v=c(p1 , p2 , p3 , p4), and f is a function: f : v -> w ,
> where
> w=c(p1 , p2*(
Dear all
I think my problem is not complicated but I'm having difficulties to solve it.
v is a vector: v=c(p1 , p2 , p3 , p4), and f is a function: f : v -> w , where
w=c(p1 , p2*(1-p1) , p3*(1-p2)*(1-p1) , p4*(1-p3)*(1-p2)*(1-p1))
I write the function f as:
2.1 A2 E2
2.2 B2 E2
2.3 C2 E2
2.4 D2 E2
3.1 A3 E3
3.2 B3 E3
3.3 C3 E3
3.4 D3 E3
Andy
> From: jose silva
>
> Dear all:
>
> I have this:
>
> A1 B1 C1 D1 E1
> A2 B2 C2 D2 E2
> A3 B3 C3 D3 E3
>
> And I want this
>
> A1 E1
> B1 E1
> C
Dear all:
I have this:
A1 B1 C1 D1 E1
A2 B2 C2 D2 E2
A3 B3 C3 D3 E3
And I want this
A1 E1
B1 E1
C1 E1
D1 E1
A2 E2
B2 E2
C2 E2
D2 E2
A3 E3
B3 E3
C3 E3
D3 E3
Example:
m<- matrix(1:15,nrow=3,byrow=T)
m
v<- unlist(list(t(m[,1:4])))
u<- rep(c(5,10,15),c(4,4,4))
data.frame(v,
Dear all:
I have this:
A1 B1 C1 D1 E1
A2 B2 C2 D2 E2
A3 B3 C3 D3 E3
And I want this
A1 E1
B1 E1
C1 E1
D1 E1
A2 E2
B2 E2
C2 E2
D2 E2
A3 E3
B3 E3
C3 E3
D3 E3
Example:
m<- matrix
thanks Duncan, thats what I was looking for :)
p.s. xlab in map() gives the same result as in axis()
j. silva
jose silva wrote:
> dear all:
>
> Im trying to obtain maps on R, under mapdata library, but I cannot define the
> labels.
> Here is an example:
>
> li
dear all:
Im trying to obtain maps on R, under mapdata library, but I cannot define the
labels.
Here is an example:
library(mapdata)
map("worldHires", c("portugal","spain"),ylim=c(34,46),xlim=c(-14,3.5))
axis(1,at=seq(-12,3,3))
axis(2)
when I try the parameter xlab or ylab in axis, i get:
para
obtain this:
A B
1 2 2
2 4 6
3 7 2
4 8 5
5 9 7
or this
A B
2 2
4 6
7 2
8 5
9 7
I think this is possible but I dont know how...
any sugestion?
thanks
jose silva
[[alternative HTML version deleted]]
__
R-help@stat.math.ethz.ch mailin
I know this question is very simple, but I am not figure it out
I have the data frame:
test<- data.frame(year=c(2000,2000,2001,2001),x=c(54,41,90,15),
y=c(29,2,92,22), z=c(26,68,46,51))
test
year x y z
1 2000 54 29 26
2 2000 41 2 68
3 2001 90 92