In R, I've got the following data frame:

> 'data.frame' str(df): 545227 observations of 15 variables:
\$ ykod: int 93 93 93 93 93 93 93 93 93 93 93 93 93 93 93 93 93 93 93 93 93 93 93 93 93 93 93 93 93 93
\$ yad : Factor with 42 levels "BAKUGAN","BARBIE",...: 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30
3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3
\$ donem: int 201101 201101 201101 201101 201101 201101 201101 201101 201101 201101 201101 201101 201101 201101 201101 201101 201101 201101 201101 201101 201101 201101 201101 201101 201101 201101 201101 201101 2011
sayi: int 201101 201101 201101 201101 201101 201101 201101 201101 201101 201101 201101 201101 201101 201101 201101 201101 201101 201101 201101 201101 201101 201101 201101 201101 201101 201101 201101 201101 201101
\$ mkod: int 4 5 9 11 12 18 20 22 25 26...\$ mkod: int 4 5 9 11 12 18 20 22 25 26...\$ mkod: int
405 8075 9710 10145 9297 7973 \$ mad: Factor with 10464 levels " Defne Market ",..: 405 8075 9710 10145 9297 7973
Jun 19, 2022 231 views

## 1 answer to this question.

```df <- data.frame(yad = c("BARBIE", "BARBIE", "BAKUGAN", "BAKUGAN"),
per = c("AYLIK",  "AYLIK",  "2 AYLIK", "2 AYLIK"),
hmm = 1:4)

df
# 1  BARBIE   AYLIK   1
# 2  BARBIE   AYLIK   2
# 3 BAKUGAN 2 AYLIK   3
# 4 BAKUGAN 2 AYLIK   4

# 1  BARBIE   AYLIK
# 3 BAKUGAN 2 AYLIK```

Unleash the power of data with our comprehensive Data Science Training.

• 3,040 points

## What does |> (pipe greater than) mean in R?

The "pipe" operator in R is |>. ...READ MORE

## Unexpected behavior for setdiff() function in R

Asymmetric difference is provided by 18 setdiff. ...READ MORE

## Calculate correlation with cor(), only for numerical columns

I have a dataframe and would like ...READ MORE

## Big Data transformations with R

Dear Koushik, Hope you are doing great. You can ...READ MORE

## Finding frequency of observations in R

You can use the "dplyr" package to ...READ MORE

The below is the code to perform ...READ MORE