I recommend you read the Introduction to R document that comes with R. Look for making vectors with the c() function, and using the mean() and sd() functions.
Note that this is not a homework help forum (read the Posting Guide mentioned at the bottom of every message). If this is not homework, you are going to need to do quite a bit of self study before you can ask questions clearly enough to get useful responses on this list. See http://stackoverflow.com/questions/5963269/how-to-make-a-great-r-reproducible-example --------------------------------------------------------------------------- Jeff Newmiller The ..... ..... Go Live... DCN:<jdnew...@dcn.davis.ca.us> Basics: ##.#. ##.#. Live Go... Live: OO#.. Dead: OO#.. Playing Research Engineer (Solar/Batteries O.O#. #.O#. with /Software/Embedded Controllers) .OO#. .OO#. rocks...1k --------------------------------------------------------------------------- Sent from my phone. Please excuse my brevity. Xavier Prudent <prudentxav...@gmail.com> wrote: >Dear all, > >Very simple question, but apparently uneasy to solve in R: > >I have a sampling of a variable x: (3, 4. 5, 2, ...) > >I want to know: > - the mean <x> -> mean(x) > - the uncertainty on <x> -> std.error(x) ? Or sd(x)? > - the standard deviation of x -> ? > - the uncertainty on the standard deviation -> ? > >Anyone has an idea? > >Thanks in advance, > >regards, >Xavier ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.