X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=r%2Flearning_r%2Fvariables_and_objects.mdwn;h=202dd8b388898915f4beb084de5193172410e0ca;hb=ca652cfbd2e7c1f63cc8ac6a310b37cd0c8fafc0;hp=15e2a3c52729e4d50311d3e00615c8cf8f0ecec7;hpb=c876956fa6426bde78854f44729a18ac8587435e;p=don.git diff --git a/r/learning_r/variables_and_objects.mdwn b/r/learning_r/variables_and_objects.mdwn index 15e2a3c..202dd8b 100644 --- a/r/learning_r/variables_and_objects.mdwn +++ b/r/learning_r/variables_and_objects.mdwn @@ -1,17 +1,32 @@ [[!meta title="Learning R: Basic Variables and Objects"]] -Eventually here, you'll see some explanation of basic usage of -variables and objects in R. For the time being, there are just some -tests of my -[sweavealike](http://git.donarmstrong.com/?p=ikiwiki_plugins.git;a=blob;f=sweavealike.pm;hb=HEAD) -plugin for IkiWiki. +Variables and Objects +--------------------- + +Like most computer languages, R uses variables as a means of storing +information in memory and retrieving it later. A variable + +In R, variables are more correctly called objects, because they have +structure and do not directly refer to a memory. + +Basic Types +---------- + +Vectors +======= + +A vector is the major data type used in R. You can think of it as a +line of cells, each containing a value of the same type. +[Type here means a number or a string.] + + +Lists +===== + + +Object Attributes +----------------- -[[!sweavealike verbatim=1 code=""" -a <- 1 -a <- a + 10 -print(a) -"""]] -testing