What does %>% function mean in R?

%…% operators %>% has no builtin meaning but the user (or a package) is free to define operators of the form %whatever% in any way they like. For example, this function will return a string consisting of its left argument followed by a comma and space and then it’s right argument. The base of R … Read more

Categories R

“inconsistent use of tabs and spaces in indentation”

I’m trying to create an application in Python 3.2 and I use tabs all the time for indentation, but even the editor changes some of them into spaces and then print out “inconsistent use of tabs and spaces in indentation” when I try to run the program. How can I change the spaces into tabs? … Read more

Program to Unjumble Words on Python [closed]

To accomplish this, you will need a database of viable words. An english dictionary will do. One way is to check for words in the database that are anagrams of the jumbled string. Here’s a naive algo: read the viable words into an appropriate data structure a python dict or tuple will suffice. Assume the … Read more

Error in : object of type ‘closure’ is not subsettable

I was finally able to work out the code for my scraping. It seemed to be working fine and then all of a sudden when I ran it again, I got the following error message: I am not sure why as I changed nothing in my code. Please advise.

Categories R