If you’re just saving a single object, don’t use an .Rdata
file, use an .RDS
file:
x <- 5
saveRDS(x, "x.rds")
y <- readRDS("x.rds")
all.equal(x, y)
More Related Contents:
- Can I load a saved R object into a new object name?
- What are the main differences between R data files?
- Get specific object from Rdata file
- How to save data file into .RData?
- How to see data from .RData file?
- How to plot intersecting ranges in Excel/R/Matlab [closed]
- Finding unique values in a dataset for market basket analysis in csv file
- Extract row corresponding to minimum value of a variable by group
- Remove columns from dataframe where ALL values are NA
- Proxy setting for R
- Pass column name in data.table using variable [duplicate]
- Merge several data.frames into one data.frame with a loop
- How to parse milliseconds?
- Overlaying histograms with ggplot2 in R
- Sum values in a rolling/sliding window
- Detect at least one match between each data frame row and values in vector
- Extract Month and Year From Date in R
- Adding labels to ggplot bar chart
- How to edit and debug R library sources
- Is there a faster lm function
- Access odd-named object returned by getSymbols
- R – emulate the default behavior of hist() with ggplot2 for bin width
- How to jitter both geom_line and geom_point by the same magnitude?
- How to show only part of the plot area of polar ggplot with facet?
- ggplot multiple grouping bar
- pie chart with ggplot2 with specific order and percentage annotations
- Wrap text around plots in Markdown
- Enclosing variables within for loop
- Unable to convert Month-Year string to Date in R
- Is there a way to `source()` and continue after an error?