Tag Archives: dataframe

Conversion of list of dictionary and dataframe in Python

In Python there is a dataframe package: pandas. The dataframe package simplifies a lot of things and it is comparable to a dataframe in R. Sometime you need convert a list of dictionary to a dataframe and vice versa. To … Continue reading

Posted in Python | Tagged , , , | Leave a comment

Clustering in R

There is a nice post at https://stackoverflow.com/questions/15376075/cluster-analysis-in-r-determine-the-optimal-number-of-clusters that provide a number of examples to illustrate how to determine number of clusters. Below are two examples: # prepare data from a dataframe # var1 includes one group # var2 includes second group … Continue reading

Posted in R, R/S-Plus | Tagged , , , , | Leave a comment