I'm really stuck. I uploaded a CSV file. Here is the proof that it worked fine.
setwd("C:/Users/mashr/OneDrive/Documents/Test_for_R_data/Assignment 3/")
#Upload a file
library_dataset <- read.csv("library_data.csv")
Created on 2022-06-29 by the reprex package (v2.0.1)
I checked with exists() function to proof that it is true.Then I did some successful operations (renamed columns and removed zeros). When I am trying to create a new calculated column (new <- col1/col2), the error message on the console is "non-numeric argument to binary operator" but reprex prints a different error:
library_dataset$new <-library_dataset$Total_Revenues/library_dataset$Num_users
#> Error in eval(expr, envir, enclos): object 'library_dataset' not found
Created on 2022-06-29 by the reprex package (v2.0.1)
Can someone explain what is going wrong?