Search notes:

R function: save

save() writes a binary representation of objects to a file. In order to write an ASCII representation, use dump() or dput().
df <- data.frame (
  foo = 1:10,
  bar = LETTERS[1:10]
)

save(df, file="./saved.Rdata")

rm(df)

load('./saved.Rdata')

df
#    foo bar
# 1    1   A
# 2    2   B
# 3    3   C
# 4    4   D
# 5    5   E
# 6    6   F
# 7    7   G
# 8    8   H
# 9    9   I
# 10  10   J
Github repository about-r, path: /functions/save.R

See also

write, cat
Index to (some) R functions

Index

Fatal error: Uncaught PDOException: SQLSTATE[HY000]: General error: 8 attempt to write a readonly database in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php:78 Stack trace: #0 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(78): PDOStatement->execute(Array) #1 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(30): insert_webrequest_('/notes/developm...', 1758200328, '216.73.216.150', 'Mozilla/5.0 App...', NULL) #2 /home/httpd/vhosts/renenyffenegger.ch/httpsdocs/notes/development/languages/R/functions/save(66): insert_webrequest() #3 {main} thrown in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php on line 78