Skip to main content

All Questions

Tagged with
Filter by
Sorted by
Tagged with
1 vote
1 answer
16 views

Create a dataframe by fixing rows in one column and repeating other columns

Lets say I have three variables: var1<-c(101,102,103,104) var2<-c("AB","XY") var3<-c(1,2) X<-expand.grid(var1,var2,var3) X Above code gives this output Var1 Var2 ...
vp_050's user avatar
  • 508