It seems rep is an R function. If you are in the sage
notebook, you need to make sure your cell is an R cell.
I don't use the notebook much myself, but this:

d <- rep(1:8,6)
d

returns

[1] 1 2 3 4 5 6 7 8 1 2 3 4 5 6 7 8 1 2 3 4 5 6 7 8 1 2 3 4 5 6 7 8 1 2 3 4 5 6
[39] 7 8 1 2 3 4 5 6 7 8

Is that what you want?

Not, if you just want to create repetition of a list on the command line,
you can also try list multiplication like this:

sage: [1,2,3]*4
[1, 2, 3, 1, 2, 3, 1, 2, 3, 1, 2, 3]

On Sat, Nov 13, 2021 at 11:09 AM Papi London <abdulrahimab...@gmail.com> wrote:
>
> --
> You received this message because you are subscribed to the Google Groups 
> "sage-support" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to sage-support+unsubscr...@googlegroups.com.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/sage-support/68d5a0fe-e95a-4ab6-9aba-6cdc9942a673n%40googlegroups.com.

-- 
You received this message because you are subscribed to the Google Groups 
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-support+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-support/CAEQuuAUw%2BKgRzeRaNeQ8re8dCw%3DNscm3QDR%3DZ%3DRtgGU3AsENSA%40mail.gmail.com.

Reply via email to