Displaying 2 results from an estimated 2 matches for "p1l96".
2009 Nov 16
3
lapply() not converting columns to factors (no error message)
...;1"
Code:
prm<-read.table("P:\\..... .csv", header=T, ...sep=",", ...)
prmdf<-data.frame(prm)
prmdf[2:13]<-lapply(prmdf[2:13], factor) ## action performed, no error
message
##I tried to pick random columns and check
>levels(P1L55)
>NULL
>is.factor(P1L96)
>FALSE
----------------------
A Singh
Aditi.Singh at bristol.ac.uk
School of Biological Sciences
University of Bristol
2009 Jul 15
2
Differing Variable Length Inconsistencies in Random Effects/Regression Models
...h(vc)
>
> family<-factor(family)
> colms<-(vc)[,4:13]
>
> names(vc)
[1] "male.parent" "family" "offspring.id" "P1L55" "P1L73"
[6] "P1L74" "P1L77" "P1L91" "P1L96" "P1L98"
[11] "P1L100" "P1L114" "P1L118" "peg.no"
"ec.length"
[16] "syll.length"
>
> vcdf<-data.frame(family, colms, peg.no, ec.length, syll.length)
>
> library(lme4)
> famfit&l...