Skip to content

Code issue Lecture 4 #2

Description

@blowfish3000

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!

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions