Browse Source

Added as.is=TRUE argument to read.table so that strings are kept as strings and not converted to factors

Dan Davison 16 years ago
parent
commit
0947747759
1 changed files with 1 additions and 1 deletions
  1. 1 1
      litorgy/litorgy-R.el

+ 1 - 1
litorgy/litorgy-R.el

@@ -69,7 +69,7 @@ R process in `litorgy-R-buffer'."
         (with-temp-file transition-file
           (insert (orgtbl-to-tsv value '(:sep "\t" :fmt litorgy-R-quote-tsv-field)))
           (insert "\n"))
-        (litorgy-R-input-command (format "%s <- read.table(\"%s\")" name transition-file)))))
+        (litorgy-R-input-command (format "%s <- read.table(\"%s\", as.is=TRUE)" name transition-file)))))
 
 (defun litorgy-R-to-elisp (func-name)
   "Return the result of calling the function named FUNC-NAME in