Santiago Barreda
Assistant Professor, Department of Linguistics, UC Davis

Main Research Vignettes CV phonTools Statistics Links

 


zeros [phonTools]

 

A simple function that returns a vector or 2D matrix of zeros of the same shape as the input.

If a scalar value is given, a vector of that many zeros is returned. If the y parameter is also specified, a matrix is returned with x rows and y columns.

If a vector is given, a vector of zeros of the same length is returned.

If a 2D matrix or dataframe is given, a matrix of zeros with the name number of rows and columns is returned.