Description Usage Arguments Details Value Author(s) References Examples
Retrieves the amount of money (in US Dollars) in your MTurk account. SufficientFunds provides a wrapper that checks whether your account has sufficient funds based upon specified characters of your HIT.
1 2 3 4 5  | AccountBalance(verbose = getOption('MTurkR.verbose', TRUE), ...)
SufficientFunds(amount = NULL, assignments = NULL, hits = NULL, 
                bonus.ct = NULL, bonus.amount = NULL, masters = FALSE, 
                turkfee = 0.2, turkmin = 0.01, mastersfee = 0.05, ...)
 | 
amount | 
 Intended per-assignment payment amount.  | 
assignments | 
 Number of intended assignments (per HIT, if multiple HITs).  | 
hits | 
 Number of HITs.  | 
bonus.ct | 
 Number of intended bonuses.  | 
bonus.amount | 
 Amount of each bonus.  | 
masters | 
 A logical indicating whether MTurk Masters will be used. Default is   | 
turkfee | 
 Amazon's fee as percentage of payments. Default is 20-percent (as 0.20). Note, however, that MTurk charges an additional 20-percent if the number of   | 
turkmin | 
 Amazon's minimum per-assignment fee. Default is $0.01.  | 
mastersfee | 
 Amazon's additional charge for use of MTurk Masters. Default is 5-percent (as 0.05).  | 
verbose | 
 Optionally print the results of the API request to the standard output. Default is taken from   | 
... | 
 Additional arguments passed to   | 
AccountBalance takes no substantive arguments. SufficientFunds is a wrapper for AccountBalance that accepts as inputs information about intended payments and bonuses to check whether your account has sufficient funds. If sandbox=TRUE, AccountBalance always returns “$10,000.00”.
accountbalance() and getbalance() are aliases for AccountBalance.
Return value is an object of class “MTurkResponse”, including an additional character string (balance) containing the balance of the account in US Dollars. Note: object is returned invisibly.
Thomas J. Leeper
1 2 3 4 5 6  | ## Not run: 
AccountBalance()
SufficientFunds(amount = ".25", assignments = "50", hits = "5")
SufficientFunds(bonus.ct = "150", bonus.amount = ".75")
## End(Not run)
 | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.