Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
kgwgk
on March 22, 2022
|
parent
|
context
|
favorite
| on:
One Year with R
> [discussing how c(list(1, 2, 3), LETTERS[1:5]) is not what the author would expect] To get list(1, 2, 3, LETTERS[1:5]), you must do something like x <- list(1, 2, 3); x[[4]] <- LETTERS[1:5].
The following works and it looks quite natural:
c(list(1, 2, 3), list(LETTERS[1:5]))
Join us for
AI Startup School
this June 16-17 in San Francisco!
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search:
The following works and it looks quite natural:
c(list(1, 2, 3), list(LETTERS[1:5]))