Objective functions could be imagined as essence of a constructor in a function . this gives the ability to reuse or declare the parameters to the function and keep it instantiated instead of passing the parameters each time.
Learned a little bit of plotting and the different types of plot , probably the easiest of the visualizations.
Learned a little bit of plotting and the different types of plot , probably the easiest of the visualizations.
Mode, Class and Type of R objects
https://stats.stackexchange.com/questions/3212/mode-class-and-type-of-r-objects
https://cran.r-project.org/doc/manuals/r-patched/R-intro.html#Object-orientation
t2, like all POSIXlt objects, is just a list of values that make up the date and
| time. Use str(unclass(t2)) to have a more compact view.
>
> str(unclass(t2))
List of 11
$ sec : num 18.5
$ min : int 32
$ hour : int 16
$ mday : int 23
$ mon : int 3
$ year : int 117
$ wday : int 0
$ yday : int 112
$ isdst : int 0
$ zone : chr "AST"
$ gmtoff: int 10800
- attr(*, "tzone")= chr [1:3] "" "AST" " "
| That's a job well done!
| The same line of thinking applies to addition and the other comparison operators.
| If you want more control over the units when finding the above difference in
| times, you can use difftime(), which allows you to specify a 'units' parameter.
...Sys.time()-t1
|======================================================================= | 94%
| Use difftime(Sys.time(), t1, units = 'days') to find the amount of time in DAYS
| that has passed since you created t1.
> difftime(Sys.time(),t1,unit='days')
Time difference of 0.009101417 days
IF STATEMENT CAN TEST ONLY A SINGLE LOGICAL CONDITION
http://stackoverflow.com/questions/28641395/what-is-parent-frame-of-r
http://stackoverflow.com/questions/20766649/understanding-lexical-scoping-in-r
http://wiki.math.yorku.ca/index.php/R:_Scoping_of_free_variable_names
Formatting Using C-style Formats
Description
Formatting numbers individually and flexibly, formatC() using C style format specifications.
prettyNum() is used for “prettifying” (possibly formatted) numbers, also in format.default.
.format.zeros(), an auxiliary function of prettyNum() re-formats the zeros in a vector x of formatted numbers.
Comments
Post a Comment