Reputation: 21
I'm trying to load a new dataset in R which is in the same working directory( "C:\R" ) e.g "Aust.rda" but it is not working
x <- "Aust.rda" data( x ) Warning message: In data(x) : data set ‘x’ not found
I've also tried
data( "Aust.rda" ) Warning message: In data("Aust.rda") : data set ‘Aust.rda’ not found
Upvotes: 2
Views: 494
Reputation: 3297
The .rda files are loaded using load(), not readRDS(). Use load() and check your environment. The variables would be there.
Use ls() to see the available variables.
Also, as @roman-luštrik mentions in his comment, please check the file path.
Upvotes: 2