Re: [R] How to fix error: 'x' and 'y' lengths differ

2010-09-21 Thread David Winsemius
On Sep 21, 2010, at 11:27 PM, klsk89 wrote: Hi, im a student so still very new to R. Hope someone could help me out here =) They are 3 slug control products, bustaslug, product X and Y. Im ask to explore the data by plot() and tapply(). But when i try to plot or use the tapply command,

Re: [R] How to fix error: 'x' and 'y' lengths differ

2010-09-21 Thread Joshua Wiley
Hi, The problem has to do with names. You have a dataset called "slugs", inside this dataset is a column also called "slugs". Now, you attach() the slugs dataset, which adds its contents to the search path, but it adds it *after* the global environment (your workspace) where the dataset "slugs"

[R] How to fix error: 'x' and 'y' lengths differ

2010-09-21 Thread klsk89
Hi, im a student so still very new to R. Hope someone could help me out here =) They are 3 slug control products, bustaslug, product X and Y. Im ask to explore the data by plot() and tapply(). But when i try to plot or use the tapply command, it tells me that the x and y lengths differ. so im thin