search for: typeii

Displaying 5 results from an estimated 5 matches for "typeii".

Did you mean: typeid
2004 Oct 04
2
how to change data type in data frame?
Hi, list, suppose i have such a data frame: trash <- data.frame(cbind(seq(1:5),c('a','a','b','a','b'),c('b','a','b','b','a'))) names(trash) <- c('age','typeI','typeII') and I want to change all 'a's to be 0 and 'b's to be 1. temp <- as.matrix(trash) temp[temp=='a'] <- 0 temp[temp=='b'] <- 1 temp <- data.frame(temp) the problem was that temp$typeI and temp$typeII were still factors, whereas I want numeric type....
2013 May 17
1
Error with adehabitatHR and kernelbb
...he net and it happened to only one person and there was no answer to his post.  Someone could help me? ## commands BBtraj <- list() for (i in 1:(nrow(loc@data)-1)) { BBtraj[[i]] <- kernelbb(as.ltraj(loc@coords[i:(i+1),], date=loc@data$time[i:(i+1)], id = as.character(loc@data$id[i:(i+1)]), typeII = TRUE), sig1=as.numeric(as.character(loc@data$sig1[i])), sig2= 5, grid = 1000) }   Rémi Lesmerises, biol. M.Sc., Candidat Ph.D. en Biologie Université du Québec à Rimouski remilesmerises@yahoo.ca [[alternative HTML version deleted]]
2011 Mar 07
3
linear mixed model with nested factors
...ith either lme or lmer and I am having no luck obtaining the same results as Minitab. Here is Minitab's code: MTB > GLM 'count' = site year replicate(site year) site*year; SUBC> Random 'year' 'replicate'; Can you tell me how to code this in R? The settings are typeII, Tukey, 95%confidence interval, but I know how to set those in R. I have basic R skills and I've worked with this on and off for several days, and have also consulted some people with basic R experience, but nobody can get it to work as it seems to be a bit complex. I'd prefer to use R rat...
2011 Aug 23
0
How to assign vector value as object name
...("tr1.",i,sep="") # extends vector of names } for (k in 1:20) { assign(nam_ltraj[k], as.ltraj(xy=nam_xy[[k]], date=data.mov$DATE, # assign an object name to an ltraj object with animal specific data id=nam_id[[k]], burst=nam_burst[[k]], typeII=T, slsp=c("remove","missing"))) } Any input on how to solve this is highly appreciated! Jacqueline [[alternative HTML version deleted]]
2012 Oct 28
1
Trouble with first passage time analysis using adehabitatLT
...g the ltraj object from a dataset. /test<-read.table("~/Desktop/R_Directory/test.txt",header=TRUE) attach(test) library(adehabitatLT) xy<-test[,c("x","y")] date1<-as.character(date) date<-as.POSIXct(date1) fit1<-as.ltraj(xy,date,id=test$name,burst=name,typeII=TRUE)/ from here things start to get fuzzy 1) Instead of following the basic expression, /fpt(lt, radii, units = c("seconds", "hours", "days"))/ the sample code on the tutorial expressed fpt as, /fpt(lt, seq(300,1000, length=30))/ But as far as I can tell this c...