Solve ‘The device does not recognize the command’ when saving a file in RStudio

  • by
  • 2 min read

The following error message is something that me and my colleagues keep running into when using Rstudio. ‘Error Saving File — The device does not recognize the command’ There are multiple things that cause this, but basically it’s because RStudio is having troubles writing to the file. Here’s what you… 

Pandas: Solve ‘You are trying to merge on object and int64 columns’

Pandas is the go-to package for anything data science in Python. However, if you’re used to R and the convenience of dplyr or data.table, pandas can be confusing, now and then. For example, the following error is a real newb issue. ValueError: You are trying to merge on object and… 

Storing a K-means model in R

  • by
  • 2 min read

K-means clustering is quick and dirty and generally provides some interesting results. However, the default kmeans function in R lacks features, such as actually storing the model to use the centroids for prediction purposes on unseen data. That’s where flexclust comes in. Flexclust is a package that is designed around…