“R”

R Commands:

  • getwd(): returns the current working directory
  • setwd("C:/R/tables"): Sets the current directory
  • source("src.R"): run the R source file
  • y<-edit(y): opens up a notepad/spreadsheet with data from y
  • data1<-edit(data.frame()): opens up a spreadsheet for data entry
  • tbl<-read.table("table.dat", header = T, sep =""): reads table.dat with header and space as delimiter.
  • dat.collim$Part <- factor(dat.collim$Part): It removes the unnecessary or empty levels for a variable.

 

Useful R Links:

 

Comments are closed.