Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

The complaints about R still seem counterintuitive to me. Python has the same data types listed above, and many more.

A list in R is a list in Python. A data frame in R is a date frame in the pandas library. A matrix in R is a matrix in numpy. A vector in R is a 1-dimensional ndarray in numpy.

But Python adds dictionaries, tuples, iterators, sets, and a bunch of other data types that aren't used in R.

R's lists and vectors are relatively similar... but you could say the same thing about numpy's matrix and ndarray. You could probably say the same thing about python's sets, tuples and lists.

To be honest, I'd have said the strength of python is that it has many more data types than R... rather than fewer data types.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: