I solve this as follows
m2 <- subset(m1,`Classification Description`=="Borrowing from the Public" |
`Classification Description`=="By Other Means" | `Classification
Description`=="Total Surplus (+) or Deficit (-)")
sincerely
Engin YILMAZ
Engin Yılmaz , 29 Tem 2020 Çar, 16:57 tarihinde şunu
yazd
Hello,
Try %in% instead of == in:
m2<-m1[m1$`Classification Description` == levels(m1$`Classification
Description`)[c(1,15,2,4],]
Hope this helps,
Rui Barradas
Às 14:57 de 29/07/2020, Engin Yılmaz escreveu:
Dear
I try to create a new subset from my dataframe.
My dataframe's name is m1.
Dear Engin,
On 2020-07-29 16:57 +0300, Engin Yılmaz wrote:
> Dear
>
> I try to create a new subset from my dataframe.
> My dataframe's name is m1.
> "Classification Description" column has 15 different factors.
> The following code is used creating a subset for 1 factor.
> m2<-m1[m1$`Classificati
Dear
I try to create a new subset from my dataframe.
My dataframe's name is m1.
"Classification Description" column has 15 different factors.
The following code is used creating a subset for 1 factor.
m2<-m1[m1$`Classification Description` == levels(m1$`Classification
Description`)[1],]
My aim is
4 matches
Mail list logo