Hello Thiago,
You keep doing the same mistake. When you pass z as subset to comm z will be
the z th column and you only has 10 columns so you will always receive the
out of bound. If I understood correctly you are trying to repeat a process
1000 times if yes follow a code above. I'm not sure
Dear R users,
I’m trying to build a function to select random samples idf’s from a
database.
So, my data frame had 2 columns and 575 rows. Follow bellow an example of my
database
Idf1casod
12 1
14 1
15 1
16 1
17 3
18 3
19 3
21 3
25 1
24 1
26
Hello,
I would like to thanks everyone for the help.
I did this one:
blinding=function(sampling){
sort1=sample(idf[casod==1],30,replace=F)
sort2=sample(idf[casod==3],30,replace=F)
var1=factor(c(rep(1,30),rep(2,30)),labels=c(Positivo,Negativo))
var2=cbind(c(pos=sort1,neg=sort2))
Dear Michal,
In this case they have only two variables: (i) time spend in each prey and
(ii) prey type. Would be better if he use bar graphs. So if are necessary
show the time spend for each spider I suggest the follow commands:
spider2=as.factor(spider)
plot(time~prey)
library(gplots)
Ok my bad. Stripchart doenst plot bar...
Just like this
time=(c(rnorm(10,2),rnorm(10,3),rnorm(10,1.5),rnorm(10,.5),rnorm(10,1)))
prey=factor(c(rep(1,10),rep(2,10),rep(3,10),rep(4,10),rep(5,10)),labels=c(Ants,Cockroach,Fly,Isopod,Mite))
stripchart(time~prey,vertical=T,pch=1,method=jitter,ylab=Time
wonder if anyone
know how to change this value.
Thank you for your attention.
Best regards,
FERNANDO RODRIGUES DA SILVA
===
Doutor em Biologia Animal
Lab. de Ecologia Animal, UNESP - São José do Rio Preto - Cep 15054-000
Celular:(17) 8126