vendredi 30 mai 2014

add an object as default in r


Vote count:

0




I would like to make some shortcut objects that are always available without retyping and running them. Means that this global objects are loaded automatically every time. I use both RGUI and MACOX gui.



today <- Sys.Date()
date.v <- format(today, format="%B%d%Y")


Once I save this (or any other) to the system. What I would like to use them without wiring above , the r will automatically use date.v as valid object for the date, with out saying object date.v is not available - such as:



paste("todays date is: ", date.v)


How can I do this ?



asked 2 mins ago

jon

3,286





Aucun commentaire:

Enregistrer un commentaire