[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[O] Adding `sort' in R makes the output fail

From: Sebastien Vauban
Subject: [O] Adding `sort' in R makes the output fail
Date: Thu, 23 Oct 2014 16:37:08 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (windows-nt)


The following code does return a corrupted answer, while it's supposed
to return a sorted dataframe.

--8<---------------cut here---------------start------------->8---
#+BEGIN_SRC R :results value replace
con <- textConnection("
index   email
A       address@hidden
B       address@hidden
C       address@hidden
D       address@hidden
E       address@hidden
F       address@hidden")
df <- read.table(con, header = TRUE)

| 1 |
| 2 |
| 3 |
--8<---------------cut here---------------end--------------->8---

See video at http://screencast.com/t/4u4Sj1Mkycwp to see the effect of
adding `sort', and see the output in RStudio (correct in both cases:
with and without `sort') on the right side of the video.

What's wrong here?

Best regards,

Sebastien Vauban

reply via email to

[Prev in Thread] Current Thread [Next in Thread]