R! Tips
- R Tips: A lot of R tips - Paul E. Johnson the latest html version is here and the PDF version is here.
- R Tips and Links - Howard Seltman.
- Set user and default R library folder when R starting?
- in RStudio, which is my favorite open source integrated development environment (IDE) for R
- in the R console, type ".libPaths()" to find the default library folder(s).
- go to "\RStudio\R".
- edit file "Options.R".
- add ".libPaths(c("../RStudio/R/library","x:/MyRLib"))".
- save the change.
- Find argument in a function using "args()" for example: args(ls). The three-dots construct in R
- Set user's R library folders as the first library after R started?
- in the R console, type ".libPaths(c("xxx/MyRLibrary1"," xxx/MyRLibrary2"))"
- or, in the RStudio, go to the "\R\" under the RStudio, edit file "Options.R", add one line ".libPaths(c("c:/myRlibsxxxx", .libPaths())", and save it.
- Customize startup of R! (Where to setup R startup environment)
- you can change options through RStudio File -> Tools - > Options
- or,
- open or create file named 'Rprofile.site' under the "..\etc\"
- add options line you want:
- options(digits = 5) # to set decimal place
- option(width = 100)
- ".First" function will run at the start of the R:
- .First<-function() {library(a); library(b)}
- ".Last" function will run at the end of the session ( I don't use this usually):
- .Last <-function(){
- xxx
- }.
- Do Basic Calculus Using R!
- RMarkdown: Generate a color-coded/formatted Word file of R! using RStudio
- 10 Tips for making your R graphics look their best
- Quantile Regression for Complex Survey Data
- Piecewise/Segmented Regression Related
- How to get orthogonal polynomial coefficient/vector/codes
No comments:
Post a Comment