Entering edit mode
Enter the body of text here
Code should be placed in three backticks as shown below
# include your problematic code here with any corresponding output
# please also include the results of running the following in an R session
sessionInfo( )

I am not sure why I get the data frame error message and the vector error message.