Displaying 1 result from an estimated 1 matches for "first8".
Did you mean:
first
2010 Nov 02
1
splitting First 10 words in a string
...to split these words in
3 but just first ten words in the string.
Warning message:
In read.table(textConnection(words), fill = T, colClasses = c(rep("character", :
cols = 14 != length(data) = 38
If you want to assign the first column to a variable then just:
> first8 <- read.table(textConnection(words), fill=T, colClasses = c(rep("character", 8), rep("NULL", 30) ) , stringsAsFactors=FALSE)
> var1 <- first8[[1]]
> var1
[1] "I" "I" "but"
--
David.
Thank you, m
-----Original Message-----...