Search notes:

R function: within

df <- data.frame(val_1=c(  5,  9,  3),
                 val_2=c(  3,  2,  4));


within(
  within(df,
    prod <- val_1 * val_2
  ),
  sum <- val_1 + val_2
);

#
# val_1 val_2 prod sum
#     5     3   15   8
#     9     2   18  11
#     3     4   12   7
Github repository about-r, path: /functions/within.R

See also

with()
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...', 1758201005, '216.73.216.150', 'Mozilla/5.0 App...', NULL) #2 /home/httpd/vhosts/renenyffenegger.ch/httpsdocs/notes/development/languages/R/functions/within(56): insert_webrequest() #3 {main} thrown in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php on line 78