Combine Rows by a Pattern

Hi,

I have a DF (asd) and I want to combine rows that end with "," (comma).

Original DF:
.
1 Kayıtlı Arama
2 -
3 Favori
4 -
5 Mesaj
6 -
7 2 + 1
8 100 m2
9 İlan no
10 119867-10
11 Son Güncelleme Tarihi
12 Bugün
13 İlan Durumu
14 Satılık
15 Konut Şekli
16 Daire
17 Oda + Salon Sayısı
18 2 + 1
19 Brüt / Net M2
20 100 m2
21 / 85 m2
22 Bulunduğu Kat
23 1. Kat
24 Bina Yaşı
25 Sıfır Bina
26 Isınma Tipi
27 Merkezi
28 Kat Sayısı
29 5 Katlı
30 Krediye Uygunluk
31 Uygun
32 Eşya Durumu
33 Eşyalı Değil
34 Banyo Sayısı
35 1
36 Yapı Tipi
37 Betonarme
38 Yapının Durumu
39 Sıfır
40 Kullanım Durumu
41 Boş
42 Tapu Durumu
43 Kat Mülkiyeti
44 Takas
45 Evet
46 Öğrenciye / Bekara
47 Evet
48 Cephe
49 Kuzey,
50 ,
51 Güney,
52 ,
53 Doğu,
54 ,
55 Batı
56 Site İçerisinde
57 KARANFİL KONUTLARI
58 Yakıt Tipi
59 Doğalgaz
60 0542

I want:

                   .

1 Kayıtlı Arama
2 -
3 Favori
4 -
5 Mesaj
6 -
7 2 + 1
8 100 m2
9 İlan no
10 119867-10
11 Son Güncelleme Tarihi
12 Bugün
13 İlan Durumu
14 Satılık
15 Konut Şekli
16 Daire
17 Oda + Salon Sayısı
18 2 + 1
19 Brüt / Net M2
20 100 m2
21 / 85 m2
22 Bulunduğu Kat
23 1. Kat
24 Bina Yaşı
25 Sıfır Bina
26 Isınma Tipi
27 Merkezi
28 Kat Sayısı
29 5 Katlı
30 Krediye Uygunluk
31 Uygun
32 Eşya Durumu
33 Eşyalı Değil
34 Banyo Sayısı
35 1
36 Yapı Tipi
37 Betonarme
38 Yapının Durumu
39 Sıfır
40 Kullanım Durumu
41 Boş
42 Tapu Durumu
43 Kat Mülkiyeti
44 Takas
45 Evet
46 Öğrenciye / Bekara
47 Evet
48 Cephe
49 Kuzey,Güney,Doğu,Batı
56 Site İçerisinde
57 KARANFİL KONUTLARI
58 Yakıt Tipi
59 Doğalgaz
60 0542

Thank you!

What do you intend to do with the other columns of the data.frame?

As just a vector this would be fairly straightforward, but I don't see a good way to combine the rest of your variables.

Maybe if you explained what your overall intention is?

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.