I have a dataframe:

```
Start <- data.frame("Number" = 2,"Square" = 4,"Cube" = 8)

```

A Vector of inputs:

```
Numbers <- c(3,5)

```

I want to iterate the elements of Numbers in the function Squarecube and fill the dataframe with the results:

```
 SquareCube <- function(x){ df <- c(x^2,x^3) 
df}

```

Desired Output:

```
 Filled <- data.frame("Number" = c(2,3,5),"Square" = c(4,9,25),"Cube" = c(8,27,125))

```

Note: Already searched for this topic , but in this case the size of the vector Numbers can be different. My intent is to fill the dataframe with the results of the function.

Thanks