Answers for "creating a df in "R""

0

creating a df in "R"

tibble(
  x = 1:5, 
  y = 1, 
  z = x ^ 2 + y
)
#> # A tibble: 5 x 3
#>       x     y     z
#>   <int> <dbl> <dbl>
#> 1     1     1     2
#> 2     2     1     5
#> 3     3     1    10
#> 4     4     1    17
#> 5     5     1    26Copy
Posted by: Guest on June-11-2021

Browse Popular Code Answers by Language