Tag Archives: functions

Revisiting Car Prices | Python | requests, BeautifulSoup, Pandas

It feels like ages since I last posted something, and I’ve been trying to figure out how I can come up with the sort of scraping scripts I normally prepare…but in Python instead of R. In R, I would normally … Continue reading

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

Plotting Driving Routes and Rental Data for Houston | gepaf, gmap, plotly, Leaflet

I started with a new script to scrape rental data for Houston, and i’m curious to see if i could not only plot the posts and the rentals, but also a cluster plot using Leaflet. I’m also eager to try … Continue reading

Posted in Uncategorized | Tagged , , , , , , , , , , , , , , , | 2 Comments

Interactive Map of Singapore Rentals | rvest, stringr, leaflet, gmailr

Decided to have a go at plotting another interactive map, this time using fresh data involving room rentals in Singapore. I’ve gone about extracting the data in the same way as i normally do, the only difference being that i’ve … Continue reading

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

Swedish Real Estate Prices | rvest, RSelenium, ggplot2

Finally got myself an internet connection at home, so i can start with another scraping project. This time i thought it would be nice to try a non-English site that also has coordinate data in each post. Settled on a … Continue reading

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

Eroding Commitment

There’s an old saying that goes: “If you dream and want something hard enough, but have no commitment….then you’re probably full of shit”. After having finished the Getting and Cleaning Data course on Coursera, I haven’t typed a single line of R … Continue reading

Posted in Uncategorized | Tagged , , | Leave a comment

Summarizing/Exploring Global Wealth Data

Alright. Time to take a crack at another data set, and see if i can hone some of those data cleaning skills that i’ve just learned on Coursera. The data sets I’m using are from the World Bank’s Changing Wealth of … Continue reading

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

R Functions: Removing NA Columns

I realize that this might sound a little nerdy, but making simple and useful R functions can be quite fun. Here are a couple of simple R functions i occasionally use that remove columns with NAs. This function would remove … Continue reading

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

Scraping IMDB’s Search Results

Learning how to scrape web pages on the internet, and given how i’m still a complete programming newbie, it took some getting used to. Credit to a certain Lee Hawthorn on how to do this. I used SelectorGadget, as was suggested in … Continue reading

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

First R function

One thing that i’ve always wanted is have a function that would run the corrplot function of all the numerical variables. Since i’m still new to R, this is all i could come up with. It definitely needs some more … Continue reading

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