Data frame manipulations Quiz

Author

Silvie Cinková

Published

August 5, 2025

1 Data

2 Transformation 1

Warning in attr(x, "align"): 'xfun::attr()' is deprecated.
Use 'xfun::attr2()' instead.
See help("Deprecated")
Warning in attr(x, "format"): 'xfun::attr()' is deprecated.
Use 'xfun::attr2()' instead.
See help("Deprecated")
country year pop gdpPercap
Czech Republic 2002 10256295 17596.21
Germany 2002 82350671 30035.80
Czech Republic 2007 10228744 22833.31
Germany 2007 82400996 32170.37

3 Transformation 2

Warning in attr(x, "align"): 'xfun::attr()' is deprecated.
Use 'xfun::attr2()' instead.
See help("Deprecated")
Warning in attr(x, "format"): 'xfun::attr()' is deprecated.
Use 'xfun::attr2()' instead.
See help("Deprecated")
country year pop gdpPercap
Germany 2002 82350671 30035.80
Germany 2007 82400996 32170.37
Warning in attr(x, "align"): 'xfun::attr()' is deprecated.
Use 'xfun::attr2()' instead.
See help("Deprecated")

Warning in attr(x, "align"): 'xfun::attr()' is deprecated.
Use 'xfun::attr2()' instead.
See help("Deprecated")
country year pop gdpPercap
Germany 2002 82350671 30035.80
Germany 2007 82400996 32170.37

4 Transformation 3

Warning in attr(x, "align"): 'xfun::attr()' is deprecated.
Use 'xfun::attr2()' instead.
See help("Deprecated")
Warning in attr(x, "format"): 'xfun::attr()' is deprecated.
Use 'xfun::attr2()' instead.
See help("Deprecated")
country year pop
Czech Republic 2002 10256295
Czech Republic 2007 10228744
Germany 2002 82350671
Germany 2007 82400996

5 Transformation 4

Warning in attr(x, "align"): 'xfun::attr()' is deprecated.
Use 'xfun::attr2()' instead.
See help("Deprecated")
Warning in attr(x, "format"): 'xfun::attr()' is deprecated.
Use 'xfun::attr2()' instead.
See help("Deprecated")
pop gdpPercap year country
10256295 17596.21 2002 Czech Republic
10228744 22833.31 2007 Czech Republic
82350671 30035.80 2002 Germany
82400996 32170.37 2007 Germany

6 Transformation 5

Warning in attr(x, "align"): 'xfun::attr()' is deprecated.
Use 'xfun::attr2()' instead.
See help("Deprecated")
Warning in attr(x, "format"): 'xfun::attr()' is deprecated.
Use 'xfun::attr2()' instead.
See help("Deprecated")
country year POPULATION gdpPercap
Czech Republic 2002 10256295 17596.21
Czech Republic 2007 10228744 22833.31
Germany 2002 82350671 30035.80
Germany 2007 82400996 32170.37

7 Transformation 6

Warning in attr(x, "align"): 'xfun::attr()' is deprecated.
Use 'xfun::attr2()' instead.
See help("Deprecated")
Warning in attr(x, "format"): 'xfun::attr()' is deprecated.
Use 'xfun::attr2()' instead.
See help("Deprecated")
country meanGDPcap
Czech Republic 20214.76
Germany 31103.09

8 Transformation 6

Warning in attr(x, "align"): 'xfun::attr()' is deprecated.
Use 'xfun::attr2()' instead.
See help("Deprecated")
Warning in attr(x, "format"): 'xfun::attr()' is deprecated.
Use 'xfun::attr2()' instead.
See help("Deprecated")
country year pop gdpPercap continent lifeExp
Czech Republic 2002 10256295 17596.2102 NA NA
Czech Republic 2007 10228744 22833.3085 NA NA
Germany 2002 82350671 30035.8020 NA NA
Germany 2007 82400996 32170.3744 NA NA
Afghanistan 1952 8425333 779.4453 Asia 28.801