Skip to content
Prev 85815 / 398503 Next

Embedding datasets, was Re: srt --- slope text with function?

Duncan Murdoch <murdoch at stats.uwo.ca> writes:
Or dput(). You can also read from a text connection, using
constructions like

data <- read.table(
textConnection(
"a b c d
2 1 3 5
0 2 4 1
1 2 3 4"), header=TRUE)

(The quotes have to placed as shown, or you get extra blank lines).