Skip to content

read.table - reading text variables as text

3 messages · Nick Riches, Ista Zahn

#
Hi Nick,
On Wed, Feb 16, 2011 at 7:28 AM, Nick Riches <nick.riches at gmail.com> wrote:
Sure, that works, but it doesn't explain why as.is="stim" didn't work.
Unfortunately I cannot reproduce:
'data.frame':	10 obs. of  2 variables:
 $ stim: Factor w/ 1 level "j": 1 1 1 1 1 1 1 1 1 1
 $ x   : int  1 2 3 4 5 6 7 8 9 10
'data.frame':	10 obs. of  2 variables:
 $ stim: chr  "j" "j" "j" "j" ...
 $ x   : int  1 2 3 4 5 6 7 8 9 10
R version 2.11.1 (2010-05-31)
i386-pc-mingw32

locale:
[1] LC_COLLATE=English_United States.1252
[2] LC_CTYPE=English_United States.1252
[3] LC_MONETARY=English_United States.1252
[4] LC_NUMERIC=C
[5] LC_TIME=English_United States.1252

attached base packages:
[1] grid      stats     graphics  grDevices utils     datasets  methods
[8] base

other attached packages:
[1] ggplot2_0.8.9 proto_0.3-8   reshape_0.8.3 plyr_1.2.1

loaded via a namespace (and not attached):
[1] digest_0.4.2 tools_2.11.1

Best,
Ista