SrivastavaLab / cesabfunctionalwebsdata

Data cleaning and organization for CESAB FUNCTIONALWEBS papers
2 stars 1 forks source link

Fixing platyhelmenthes CPI traits #12

Closed aammd closed 7 years ago

aammd commented 7 years ago

(2) The CPI scores of the Platyhelminthes. I have fixed this locally in my congruence code, but perhaps you want to change it in your traits database? I didn't want to meddle here, as I know you have a system. The code I used is simply:

full$traits<-full$traits%>%mutate(CP1 = ifelse(phylum %in%c("Platyhelminthes"),3, CP1))%>% mutate(CP2 = ifelse(phylum %in%c("Platyhelminthes"),0, CP2))%>% mutate(CP3 = ifelse(phylum %in%c("Platyhelminthes"),0, CP3))