title: i wanted to make the csv file as a database in R programming
body: <p>i wanted my csv file as a database which stores the data i enter whenever i run the program. it should keep on adding the names</p>
  
  <pre><code>add_prob&lt;-function()
  ad&lt;-as.integer(readline("Enter how many probables, you are going to add: 
  "))
  df=data.frame(Reg=NA,Na=NA,Do=NA,Co=NA,E=NA)
  for (i in 1:ad) {
  dt&lt;-Sys.Date()
  Reg&lt;-format(dt,format="%d %B % %Y")
  Na&lt;-readline("Enter the participant Name: ")
  Do&lt;-readline("Enter the domain he is working: ")
  Co&lt;-readline("Enter his mobile number: ")
  E&lt;-readline("Enter his E-mail ID: ")
  df&lt;-rbind(df,data.frame(Reg,Na,Do,Co,E))
  }
  write.csv(df, file="Training_Probables.csv", append=TRUE, row.names = 
  FALSE, quote = TRUE)
  df=df[-1,]
  names(df)=c("Date","Name","Domain","Mobile No.", "E-Mail ID")
  print(df)
  write.csv(df, file="Training_Probables.csv", append=TRUE, row.names = 
  FALSE, quote = TRUE)
  </code></pre>