Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

The expression [rep(token, nrow(.)), ] in R signifies the creation of a new vector by repeating the value of "token" nrow(.) times, where nrow(.) is the number of rows in the dataset referred to by the dot operator. The comma followed by an empty space indicates that the newly created vector should be appended to the end of the existing vector or data frame.