Why does the gl function not work?

Why do I get this error with this simple piece of code?

> dose<gl(3,5,labels=c("Placebo", "Low dose", "High dose"))
Error: object 'dose' not found

Gl is supposed to be a base function so no packages needed.

There is a typo in your code, should be:

dose <-  gl(3,5,labels=c("Placebo", "Low dose", "High dose"))

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.