-
Notifications
You must be signed in to change notification settings - Fork 48
Open
Description
Hi,
thanks for making all this material available, I learn quite a bit through your lectures!
I have an issue with code from lecture 4, more specifically this line:
height.dat<-data.frame(code=rownames(seedplantsdata),height=as.numeric(seedplantsdata$height))
which throws this warning message:
In data.frame(code = rownames(seedplantsdata), height = as.numeric(seedplantsdata$height)) : NAs introduced by coercion
which makes sense since height is factor (small, medium, large) and can't be cast as numeric (or?)
Is there an error in the script or am I making a stupid mistake somewhere?
Thanks again!
Metadata
Metadata
Assignees
Labels
No labels