Re: [R] Errors or warnings for non-existent data

2013-03-16 Thread Prof Brian Ripley
On 16/03/2013 07:19, brwin338 wrote: Good Evening Is there a setting that I can change in R so that I get either a warning or an error message if I reference non-existent data in a data frame? For example I get no warning or error message with the following: Use specific methods of indexi

[R] Errors or warnings for non-existent data

2013-03-16 Thread brwin338
Good Evening Is there a setting that I can change in R so that I get either a warning or an error message if I reference non-existent data in a data frame? For example I get no warning or error message with the following: > set.seed(2013) > df0=data.frame(cbind(x=rnorm(1000),y=rnorm(1000)))