memory.size()
## [1] 24.6
memory.limit()
## [1] 3984
gc()
##          used (Mb) gc trigger (Mb) max used (Mb)
## Ncells 300774 16.1     592000 31.7   350000 18.7
## Vcells 490612  3.8    1023718  7.9   785635  6.0
getwd()
## [1] "C:/Users/Ashwini/SkyDrive/Documents"
dir(path="C:/Users/Ashwini/Documents")
##  [1] "adult.data.txt"                                                                   
##  [2] "Avatar"                                                                           
##  [3] "BigDiamonds.csv"                                                                  
##  [4] "ChatLog Collabera TACT __ Business Analytics with R 20151121 2015_11_21 19_44.rtf"
##  [5] "ChatLog Collabera TACT __ Business Analytics with R 20151121 2015_11_28 19_35.rtf"
##  [6] "Custom Office Templates"                                                          
##  [7] "CyberLink"                                                                        
##  [8] "Day 01 - Business Analytics with R.rtf"                                           
##  [9] "Day 02 - Business Analytics with R.rtf"                                           
## [10] "desktop.ini"                                                                      
## [11] "hp.applications.package.appdata"                                                  
## [12] "hp.system.package.metadata"                                                       
## [13] "My Music"                                                                         
## [14] "My Pictures"                                                                      
## [15] "My Videos"                                                                        
## [16] "Quandl+-+R+Cheat+Sheet.pdf"                                                       
## [17] "R"                                                                                
## [18] "Ricci-refcard-regression.pdf"                                                     
## [19] "Ricci-refcard-ts.pdf"                                                             
## [20] "Short-refcard.pdf"                                                                
## [21] "SQL.pdf"                                                                          
## [22] "YanchangZhao-refcard-data-mining.pdf"                                             
## [23] "Youcam"
list.files("C:/Users/Ashwini/Documents",pattern="csv")
## [1] "BigDiamonds.csv"
myfirstfile=read.csv("C:/Users/Ashwini/Documents/BigDiamonds.csv")
memory.size()
## [1] 162.46
object.size(myfirstfile)
## 64705144 bytes
str(myfirstfile)
## 'data.frame':    598024 obs. of  13 variables:
##  $ X           : int  1 2 3 4 5 6 7 8 9 10 ...
##  $ carat       : num  0.25 0.23 0.34 0.21 0.31 0.2 0.2 0.22 0.23 0.2 ...
##  $ cut         : Factor w/ 3 levels "Good","Ideal",..: 3 1 1 3 3 1 1 3 3 1 ...
##  $ color       : Factor w/ 9 levels "D","E","F","G",..: 8 4 7 1 8 4 4 1 8 3 ...
##  $ clarity     : Factor w/ 9 levels "I1","I2","IF",..: 1 1 2 1 1 5 5 1 5 4 ...
##  $ table       : num  59 61 58 60 59 60 63 61 57.5 65 ...
##  $ depth       : num  63.7 58.1 58.7 60.6 62.2 64.4 62.6 59.2 63.6 54.9 ...
##  $ cert        : Factor w/ 9 levels "AGS","EGL","EGL Intl.",..: 6 6 6 6 2 6 6 6 8 6 ...
##  $ measurements: Factor w/ 241453 levels "","  3.99  x   3.95  x   2.44",..: 19960 21917 48457 15701 37341 14661 14400 19642 17115 16177 ...
##  $ price       : int  NA NA NA NA NA NA NA NA NA NA ...
##  $ x           : num  3.96 4 4.56 3.8 4.35 3.74 3.72 3.95 3.87 3.83 ...
##  $ y           : num  3.95 4.05 4.53 3.82 4.26 3.67 3.65 3.97 3.9 4 ...
##  $ z           : num  2.52 2.3 2.67 2.31 2.68 2.38 2.31 2.34 2.47 2.14 ...