The field names of the dataframe D1 are not searched by R so are not 'visible' as objects which is why you get the error message. However, you can use the attach and detach functions to force R to search a dataframe and make the field names visible or hide them, e.g. the following should work
Code:attach(D1) PB detach(D1)





Reply With Quote



