Both solutions work great. Thank you for your help.
--
View this message in context:
http://r.789695.n4.nabble.com/Merging-two-or-more-frequency-tables-tp4643663p4643692.html
Sent from the R help mailing list archive at Nabble.com.
__
R-help@r-projec
: mcelis
Cc: r-help@r-project.org
Sent: Wednesday, September 19, 2012 6:18 PM
Subject: Re: [R] Merging two or more frequency tables
Hello,
Try the following.
fun <- function(x, ...){
z <- Reduce(paste, list(x, ...))
tsum <- table(strsplit(tolower(z), "\\W"))
tsu
Hello,
Try the following.
fun <- function(x, ...){
z <- Reduce(paste, list(x, ...))
tsum <- table(strsplit(tolower(z), "\\W"))
tsum
}
x <- "It was the age of wisdom it was the age of foolishness it was the
epoch of belief"
y <- "it was the epoch of incredulity it was the season of
6 1 1 1 1
# season
# 2
- Original Message -
From: mcelis
To: r-help@r-project.org
Cc:
Sent: Wednesday, September 19, 2012 3:08 PM
Subject: [R] Merging two or more frequency tables
I am new to R and am looking to merge two or more f
I am new to R and am looking to merge two or more frequency tables into one.
I have searched around but have been unable to find exactly what I need.
I have two frequency tables obtained from two sample texts
t0<-table(strsplit(tolower("It was the age of wisdom it was the age of
foolishness it wa
5 matches
Mail list logo