R-Studio doesn't recognise datadet

Here is my automatic setwd

library(rstudioapi) # for automatic setwd()

setwd(dirname(getActiveDocumentContext()$path))
df<- read.csv("ESS10_Dataset.csv.csv")

When I try and use the dataframe function R-Studio claims that the ESS10 Datatset does not exist even though I've used it to show me the data on r-studio can anyone help me fix this please??

data.frame( table(ESS10_Dataset.csv.csv$trstprl) )
I get the error message : that the object(the dataset can't be found)

If the line

df<- read.csv("ESS10_Dataset.csv.csv")

runs without an error, then the data from the csv file will be stored in the data frame df. The next line should be

data.frame( table(df$trstprl) )

thank you so much for the help

This topic was automatically closed 42 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.