Collapse duplicate rows in Julia matrix

I have a matrix U = vcat(s, e, p) of the form

3167×2 Matrix{Int64}:
    1  1
    1  1
    1  1
    1  1
    1  2
    1  2
    1  2
    1  3
    1  3
    1  3
    3  2
    3  2
    3  3
    ⋮  
  962  5
  962  5
  962  5
  962  5
  962  5
 1007  5
 1009  5
 1009  5
 1009  5
 1009  5
 1009  5
 1045  2

where s, e, p are matrices of two columns themselves.

I want an equivalent of the unique function but for the rows, so that I obtain a matrix U' whose rows are the rows of U but without any duplicates. How can this be done?

Would unique(m; dims=1) work?

Works. Thanks!