Thanks. But when I apply your codes I get all NA instead of TRUE and FALSE
From: PIKAL Petr
Sent: Wednesday, August 23, 2017 11:20:00 AM
To: Patrick Casimir; r-help@r-project.org
Subject: RE: Comparing 2 dale columns
Hi
your code is wrong.
I get
> t
Hi Mark,
Instead of 1 and 0. It generates NA
NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA
From: Mark Sharp
Sent: Wednesday, August 23, 2017 11:28:39 AM
To: Patrick Casimir
Cc: r-help@r-project.org
Subject: Re: [R] Comparing 2 dale columns
Dear R fellows,
I created a new column Date_flag to compare the dates of COL1 and COL2 using
the code
below. But it showed that 5/1/15 is greater than 6/1/2014 and 5/1/2015 greater
than
7/1/2014 despite the year is greater. How do I fix that? I did try to format as
%y/%m/%d
but it does not f
-16
Jul-16 1-Aug-16
Aug-16 1-Aug-16
Sep-16 1-Aug-16
Oct-16 1-Aug-16
From: R-help on behalf of Spencer Graves
Sent: Tuesday, August 22, 2017 2:49 PM
To: r-help@r-project.org
Subject: Re: [R] Convert Factor to Date
On 2017-08-22 1:30 PM, Patrick Casimir
Dear R Fellows,
I Have a dataset( data1) with 2 columns of date showing a class of factor. How
to convert them to date? Then compare them, keep the greater date only in a new
column. Using as.Date to change the class to Date but the data becomes NA.
Much Thanks
COL1COL2
Apr-16 1-Nov-16
Use tm package and create a corpus to capture terms from the TDM within the
corpus. Then you can apply as.matrix() to display terms' occurences. Go to CRAN
and read about tm package.
From: R-help on behalf of Boris Steipe
Sent: Thursday, August 3, 2017 6:40:09
6 Type Package Title Bridging the Gap Between
Qualitative Data and Quantitative Analysis Version 2.2.5 Date 2016-06-15
Patrick Casimir, PhD
Health Analytics, Data Science, Big Data Expert & Independent Consultant
C: 954.614.1178
From: Elahe chalabi
Sent: Mo
you can use
summary (my string)
Patrick Casimir, PhD
Health Analytics, Data Science, Big Data Expert & Independent Consultant
C: 954.614.1178
From: Elahe chalabi
Sent: Monday, June 12, 2017 11:42:43 AM
To: Patrick Casimir; Bert Gunter
Cc: R-help Mailing
And so is the the
water is overflowing in the sink . And the dishes might get falled over if you
don't fell fall over there there if you don't get it . And it there it's a
picture of a kitchen window . And the curtains are very uh distinct . But the
water is still flowing."
Pat
You can define stop words as below.
data <- tm_map(data, removeWords, stopwords("english"))
Patrick Casimir, PhD
Health Analytics, Data Science, Big Data Expert & Independent Consultant
C: 954.614.1178
From: R-help on behalf of Bert Gunt
returns
from all docs in the DTM
Patrick Casimir, PhD
Health Analytics, Data Science, Big Data Expert & Independent Consultant
C: 954.614.1178
From: Jeff Newmiller
Sent: Friday, May 19, 2017 11:04:22 AM
To: r-help@r-project.org; Patrick Casimir; r-help@r-proje
Thanks Jeff. I will try elsewhere.
Patrick Casimir, PhD
Health Analytics, Data Science, Big Data Expert & Independent Consultant
C: 954.614.1178
From: Jeff Newmiller
Sent: Friday, May 19, 2017 11:04:22 AM
To: r-help@r-project.org; Patrick Casimir; r-he
2
Patient24.txt 1112 4
Patient25.txt 8 9 4
Patient41.txt 810 4
Patient46.txt 810 3
Patient8.txt 912 2
Patient9.txt 823 2
Thanks
xt 1112 4
Patient25.txt 8 9 4
Patient41.txt 810 4
Patient46.txt 810 3
Patient8.txt 912 2
Patient9.txt 823 2
Thanks
Patrick Casi
Hello Fellows,
I want to use dictionary function to capture all specific terms from a corpus
of 102 docs but the dictionary only captures those terms in 10 documents. I
need those terms from all 102 docs. Any idea why? How do I get the dictionary
to return for all 102 docs? See my coding belo
Hello Fellows,
I used the dictionary function to capture terms from a corpus of 102 docs but
the dictionary only captures those terms in 10 documents. I need those terms
from all 102 docs. Any idea why? How do I get the dictionary to return for all
102 docs? See my coding below.
> myTerms <-
Will do.
From: Ista Zahn
Sent: Tuesday, December 6, 2016 2:49:30 PM
To: Patrick Casimir
Cc: r-help@r-project.org
Subject: Re: [R] Why is DocumentTermMatrix showing 0 term?
On Tue, Dec 6, 2016 at 2:28 PM, Patrick Casimir wrote:
> Actually, the DTM works
gt;
Non-/sparse entries: 920/2144
Sparsity : 70%
Maximal term length: 29
Weighting : term frequency (tf)
From: Ista Zahn
Sent: Tuesday, December 6, 2016 12:20:57 PM
To: Patrick Casimir
Cc: r-help@r-project.org
Subject: Re: [R] Why is Docum
;
Metadata: 7
Content: chars: 2366
From: Ista Zahn
Sent: Tuesday, December 6, 2016 10:08:28 AM
To: Patrick Casimir
Cc: r-help@r-project.org
Subject: Re: [R] Why is DocumentTermMatrix showing 0 term?
What is in docs?
What does
inspect(docs)
say?
--Ista
On Tue, Dec 6, 2016 at 9:29 AM, P
ds, stopwords("english"))
> inspect(docs[1])
> docs <- tm_map(docs, stripWhitespace)
> docs <- tm_map(docs, stemDocument)
> dtm <- DocumentTermMatrix(docs)
> dtm
<>
Non-/sparse entries: 0/0
Sparsity : 100%
Maximal term length: 0
Weighting
<>
Non-/sparse entries: 0/0
Sparsity : 100%
Maximal term length: 0
Weighting : term frequency (tf)
[[alternative HTML version deleted]]
__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.eth
My dtm is showing the 4 files in the corpus correctly, but the number of terms
is incorrect at 0. What can cause that?
dtm <- DocumentTermMatrix(docs)
dtm
## <>
__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch
22 matches
Mail list logo