Re: [R] spliting first 10 words in a string

2010-11-03 Thread Matevž Pavlič
ot; "" ... $ V13: chr "" "R" "S" "" ... $ V14: chr "" "=" "TANKIMI" "" ... Now, i have another problem. Is it possible to count which word occours most often each field (V1, V2, V3, ...) and which one is the second and

Re: [R] spliting first 10 words in a string

2010-11-02 Thread steven mosher
ŠČEN" "" ... > $ V13: chr "" "R" "S" "" ... > $ V14: chr "" "=" "TANKIMI" "" ... > > Now, i have another problem. Is it possible to count which word occours > most often each field (V1,

Re: [R] spliting first 10 words in a string

2010-11-02 Thread Matevž Pavlič
ave another problem. Is it possible to count which word occours most often each field (V1, V2, V3, ...) and which one is the second and so on. Ideally to create a table for each field (V1, V2, V3, ...) with the word and thenumber of occuraces in that field (column) . I suppose it could be done in

Re: [R] spliting first 10 words in a string

2010-11-02 Thread steven mosher
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" "

Re: [R] spliting first 10 words in a string

2010-11-02 Thread David Winsemius
help-boun...@r-project.org [mailto:r-help-boun...@r-project.org ] On Behalf Of David Winsemius Sent: Tuesday, November 02, 2010 3:47 PM To: Gaj Vidmar Cc: r-h...@stat.math.ethz.ch Subject: Re: [R] spliting first 10 words in a string On Nov 2, 2010, at 6:24 AM, Gaj Vidmar wrote: Though in

Re: [R] spliting first 10 words in a string

2010-11-02 Thread Matevž Pavlič
bject: Re: [R] spliting first 10 words in a string On Nov 2, 2010, at 6:24 AM, Gaj Vidmar wrote: > Though in this list, in Excel it's just (literally!) > five clicks > away! > (with the column in question selected) > Data -> Text to Columns -> Delimited -> tick S

Re: [R] spliting first 10 words in a string

2010-11-02 Thread David Winsemius
levels "","H. N.","IZKOP",..: 26 1 1 1 26 1 1 1 1 1 ... Hope that explains better... Thank you, m -Original Message----- From: David Winsemius [mailto:dwinsem...@comcast.net] Sent: Monday, November 01, 2010 10:13 PM To: Matev¾ Pavliè Cc: r-help@r-project.org Sub

Re: [R] spliting first 10 words in a string

2010-11-02 Thread Gaj Vidmar
m 0e+00 1e+09 1e+09 1e+09 0e+00 ... > $ NacinVrtanjaDo : num 1.1e+01 1.0e+09 1.0e+09 1.0e+09 1.0e+01 ... > $ NacinVrtanjaOpis: Factor w/ 43 levels "","H. N.","IZKOP",..: 26 1 1 1 26 > 1 1 1 1 1 ... > > Hope that explains better... > Thank you, m &

Re: [R] spliting first 10 words in a string

2010-11-01 Thread David Winsemius
uot;have"; Column3 : "a"; Column4 : "sentense"; Column5: "with"; Column6 :"ten";column7:"words" or in data.frame something like this (as I understand) : data.frame': xx obs. of 12 variables: $ Opis : factor :"I have a sentens

Re: [R] spliting first 10 words in a string

2010-11-01 Thread Phil Spector
Column7: factor"words" Hope that explains it better, I am still having some troubles understanding R and all.. m -----Original Message----- From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On Behalf Of Matevž Pavlič Sent: Monday, November 01, 2010 10:34 PM To: Da

Re: [R] spliting first 10 words in a string

2010-11-01 Thread Matevž Pavlič
ll having some troubles understanding R and all.. m -Original Message- From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On Behalf Of Matevž Pavlič Sent: Monday, November 01, 2010 10:34 PM To: David Winsemius Cc: r-help@r-project.org Subject: Re: [R] spliting first 10

Re: [R] spliting first 10 words in a string

2010-11-01 Thread Matevž Pavlič
explains better... Thank you, m -Original Message- From: David Winsemius [mailto:dwinsem...@comcast.net] Sent: Monday, November 01, 2010 10:13 PM To: Matevž Pavlič Cc: r-help@r-project.org Subject: Re: [R] spliting first 10 words in a string On Nov 1, 2010, at 4:39 PM, Matevž Pavlič wrote:

Re: [R] spliting first 10 words in a string

2010-11-01 Thread David Winsemius
On Nov 1, 2010, at 4:39 PM, Matevž Pavlič wrote: Hi all, I have a columnn with text that has quite a few words in it. I would like to split these words in separate columns, but just first ten words in the string. Is that possible in R? Not sure what a column means to you. It's not a

[R] spliting first 10 words in a string

2010-11-01 Thread Matevž Pavlič
Hi all, I have a columnn with text that has quite a few words in it. I would like to split these words in separate columns, but just first ten words in the string. Is that possible in R? Thank you, m [[alternative HTML version deleted]] _