myfunsLoc returns the location of jmfuns.rda.  JM has written this function to make it easy to use R on multiple computers on which jmfuns.rda may be located in different places.

'n' computes the length of a vector.  By default, it drops the missing cases and warns if there are missing cases. 

Set 'warn.missing  = FALSE' to prevent the warning for missing cases.

If 'all = TRUE' (default), 'n' returns a vector that shows the number of non-missing, missing, and total cases.  If 'all = FALSE', 'n' only returns the number of non-missing cases.

Set 'miss = TRUE' to return just the count of missing cases.

Set 'total = TRUE' to return just the count of all cases.

Used by:  'stats.by'

n.unique computes the number of unique values of x. This function is useful for computing the number of factor levels.

The na.to.F function has been deprecated in favor of the NA.to.F function.  Please replace "na.to.F" with "NA.to.F" in all JM function code.  The na.to.F function will be retained for awhile but it will eventually be deleted.  Current date = 12/30/2013.

'na.to.F' converts a logical vector that may contain some NA's to a logical vector of the same length in which every NA is replaced with FALSE while leaving all existing TRUE's and FALSE's as they are.

'NA.to.F' converts a logical vector that may contain some NA's to a logical vector of the same length in which every NA is replaced with FALSE while leaving all existing TRUE's and FALSE's as they are.

nScreens sets the twoScreens object in jmfuns.rda to either TRUE or FALSE depending on whether R is configured for one computer monitor only or to two computer monitors.  nScreens configures R to run either for single monitor (X220 only) or dual monitor (Dell monitor + X220).  

nScreens(1) sets R to use graphics options appropriate for a single monitor.

nScreens(2) sets to use graphics options appropriate for dual monitors.

Function 'nxt' resets the current graphics device.  

If 'w = NA' (default), then 'nxt()' resets the current graphics device to the next graphics device on the device list.  If no graphics devices are currently open, then 'nxt()' opens a graphics window using the default values in the 'windows.jm' function.  

If 'w = <N>' where N is an integer, then 'nxt(N)' resets the current graphics device to N-th device on the device list.  If N exceeds the number of currently open devices, then nxt opens additional graphics windows until there are N of them.  

NOTE:  R enumerates the open graphics windows starting at 2, so the first graphics window is window 2, the second graphics window is window 3, etc.  The nxt(1) makes window 2 the active window; nxt(2) makes window 3 the active window; etc.