CSV file does not work

Hi
I am new to RStudio. I am trying to run one function with (). However, When I choose specific file it does not perform the function and shows error like
scatterplot3d(x= WHEAT_AREA,

  •             y= WHEAT_PRODUCTION_1000_tons,
    
  •             z= WHEAT_PRODUCTION_1000_tons,
    
  •             main="3-D Scatterplot Example 1")
    

Error: object 'WHEAT_AREA' not found

However if i use another file which is given by professor then it does work correctly and bring the 3D graph form the CSV file

R cannot find WHEAT_AREA. How did you assign a value to WHEAT_AREA? Is the name spelled correctly in the call to scatterplot3d or is it possibly Wheat_Area or some other variation?

hi,

Thank you for the response.

Somehow the column heading was containing 1000 (numerical value) and it was causing the issue. when I removed the 1000 it worked.

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.