Re: [R] Getting Started
By "contribute", do you mean you have a package (or potential package) that you'd like to share? Or do you have something else in mind? -Dan On Tue, Jan 10, 2017 at 9:33 AM, Lakshya Agrawalwrote: > Hello, > I would like to contribute to R i have gone over the development page but > could find anything on how to get started .Please can someone help me > getting started. Sorry if i have overlooked something. > > [[alternative HTML version deleted]] > > __ > R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see > 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. > > -- Dan Dalthorp, PhD USGS Forest and Rangeland Ecosystem Science Center Forest Sciences Lab, Rm 189 3200 SW Jefferson Way Corvallis, OR 97331 ph: 541-750-0953 ddalth...@usgs.gov [[alternative HTML version deleted]] __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see 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.
Re: [R] Getting Started
You obviously know little about R or you would not have asked that question. So heeding Jim's advice is clearly your first step. A second would be to read the "Writing R extensions" manual to learn about R packages. A third would be to check out the CRAN task views to get a sense of what's available in the 3000 or more packages users have already contributed. Cheers, Bert On Jan 10, 2017 1:50 PM, "Lakshya Agrawal"wrote: > Hello, > I would like to contribute to R i have gone over the development page but > could find anything on how to get started .Please can someone help me > getting started. Sorry if i have overlooked something. > > [[alternative HTML version deleted]] > > __ > R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see > 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. > [[alternative HTML version deleted]] __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see 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.
Re: [R] Getting Started
Hi Lakshya, One good way to contribute is to try to do something in R, and if you see a way to do it better or more easily, you may have an improvement that will find its way into R. This usually involves a lot of discovering that someone else has already done it, but as your knowledge of R expands, so do the opportunities to find something that no one has yet accomplished. Jim On Wed, Jan 11, 2017 at 4:33 AM, Lakshya Agrawalwrote: > Hello, > I would like to contribute to R i have gone over the development page but > could find anything on how to get started .Please can someone help me > getting started. Sorry if i have overlooked something. > > [[alternative HTML version deleted]] > > __ > R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see > 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. __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see 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.
[R] Getting Started
Hello, I would like to contribute to R i have gone over the development page but could find anything on how to get started .Please can someone help me getting started. Sorry if i have overlooked something. [[alternative HTML version deleted]] __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see 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.
Re: [R] getting started in parallel computing on a windows OS
Martin, This worked, thanks again! *Ben Caldwell* Graduate Fellow University of California, Berkeley 130 Mulford Hall #3114 Berkeley, CA 94720 Office 223 Mulford Hall (510)859-3358 On Thu, Apr 25, 2013 at 10:04 PM, Benjamin Caldwell btcaldw...@berkeley.edu wrote: Thanks for this martin. I'll start retooling and let you know how it goes. Ben Caldwell Graduate fellow On Apr 24, 2013 4:34 PM, Martin Morgan mtmor...@fhcrc.org wrote: On 04/24/2013 02:50 PM, Benjamin Caldwell wrote: Dear R help, I've what I think is a fairly simple parallel problem, and am getting bogged down in documentation and packages for much more complex situations. I have a big matrix (30^5,5]. I have a function that will act on each row of that matrix sequentially and output the 'best' result from the whole matrix (it compares the result from each row to the last and keeps the 'better' result). I would like to divide that first large matrix into chunks equal to the number of cores I have available to me, and work through each chunk, then output the results from each chunk. I'm really having trouble making head or tail of how to do this on a windows machine - lots of different false starts on several different packages now. Basically, I have the function, and I can of course easily divide the matrix into chunks. I just need a way to process each chunk in parallel (other than opening new R sessions for each core manually). Any help much appreciated - after two days of trying to get this to work I'm pretty burnt out. Hi Ben -- in your code from this morning you had a function fitting - function(ndx.grd=two,dt.grd=**one,ind.vr='ind',rsp.vr='res') { ## ... setup for(i in 1:length(ndx.grd[,1])){ ## ... do work } ## ... collate results } that you're trying to run in parallel. Obviously the ## ... represent lines I've removed. When you say something like y - foreach(icount(length(two))) %dopar% fitting() its saying that you want to run fitting() length(two) times. So you're actually doing the same thing length(two) times, whereas you really want to divide the work thats inside fitting() into chunks, and do those on separate cores! Conceptually what you'd like to do is fit_one - function(idx, ndx.grd, dt.grd, ind.vr, rsp.vr) { ## ... do work on row idx _ONLY_ } and then evaluate with ## ... setup y - foreach (idx = icount(nrow(two)) %dopar% one_fit(idx, two, one, ind, res) ## ... collate so that fit_one fits just one of your combinations. foreach will worry about distributing the work. Make sure that fit_one works first, before trying to run this in parallel; your use of try(), trying to fit different data types (character, integer, numeric) into a matrix rather than data.frame, and the type coercions all indicate that you're fighting with R rather than working with it. Hope that helps, Martin Thanks *Ben Caldwell* [[alternative HTML version deleted]] __** R-help@r-project.org mailing list https://stat.ethz.ch/mailman/**listinfo/r-helphttps://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/** posting-guide.html http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- Computational Biology / Fred Hutchinson Cancer Research Center 1100 Fairview Ave. N. PO Box 19024 Seattle, WA 98109 Location: Arnold Building M1 B861 Phone: (206) 667-2793 [[alternative HTML version deleted]] __ 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.
Re: [R] getting started in parallel computing on a windows OS
Thanks for this martin. I'll start retooling and let you know how it goes. Ben Caldwell Graduate fellow On Apr 24, 2013 4:34 PM, Martin Morgan mtmor...@fhcrc.org wrote: On 04/24/2013 02:50 PM, Benjamin Caldwell wrote: Dear R help, I've what I think is a fairly simple parallel problem, and am getting bogged down in documentation and packages for much more complex situations. I have a big matrix (30^5,5]. I have a function that will act on each row of that matrix sequentially and output the 'best' result from the whole matrix (it compares the result from each row to the last and keeps the 'better' result). I would like to divide that first large matrix into chunks equal to the number of cores I have available to me, and work through each chunk, then output the results from each chunk. I'm really having trouble making head or tail of how to do this on a windows machine - lots of different false starts on several different packages now. Basically, I have the function, and I can of course easily divide the matrix into chunks. I just need a way to process each chunk in parallel (other than opening new R sessions for each core manually). Any help much appreciated - after two days of trying to get this to work I'm pretty burnt out. Hi Ben -- in your code from this morning you had a function fitting - function(ndx.grd=two,dt.grd=**one,ind.vr='ind',rsp.vr='res') { ## ... setup for(i in 1:length(ndx.grd[,1])){ ## ... do work } ## ... collate results } that you're trying to run in parallel. Obviously the ## ... represent lines I've removed. When you say something like y - foreach(icount(length(two))) %dopar% fitting() its saying that you want to run fitting() length(two) times. So you're actually doing the same thing length(two) times, whereas you really want to divide the work thats inside fitting() into chunks, and do those on separate cores! Conceptually what you'd like to do is fit_one - function(idx, ndx.grd, dt.grd, ind.vr, rsp.vr) { ## ... do work on row idx _ONLY_ } and then evaluate with ## ... setup y - foreach (idx = icount(nrow(two)) %dopar% one_fit(idx, two, one, ind, res) ## ... collate so that fit_one fits just one of your combinations. foreach will worry about distributing the work. Make sure that fit_one works first, before trying to run this in parallel; your use of try(), trying to fit different data types (character, integer, numeric) into a matrix rather than data.frame, and the type coercions all indicate that you're fighting with R rather than working with it. Hope that helps, Martin Thanks *Ben Caldwell* [[alternative HTML version deleted]] __** R-help@r-project.org mailing list https://stat.ethz.ch/mailman/**listinfo/r-helphttps://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/** posting-guide.html http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- Computational Biology / Fred Hutchinson Cancer Research Center 1100 Fairview Ave. N. PO Box 19024 Seattle, WA 98109 Location: Arnold Building M1 B861 Phone: (206) 667-2793 [[alternative HTML version deleted]] __ 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.
[R] getting started in parallel computing on a windows OS
Dear R help, I've what I think is a fairly simple parallel problem, and am getting bogged down in documentation and packages for much more complex situations. I have a big matrix (30^5,5]. I have a function that will act on each row of that matrix sequentially and output the 'best' result from the whole matrix (it compares the result from each row to the last and keeps the 'better' result). I would like to divide that first large matrix into chunks equal to the number of cores I have available to me, and work through each chunk, then output the results from each chunk. I'm really having trouble making head or tail of how to do this on a windows machine - lots of different false starts on several different packages now. Basically, I have the function, and I can of course easily divide the matrix into chunks. I just need a way to process each chunk in parallel (other than opening new R sessions for each core manually). Any help much appreciated - after two days of trying to get this to work I'm pretty burnt out. Thanks *Ben Caldwell* [[alternative HTML version deleted]] __ 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.
Re: [R] getting started in parallel computing on a windows OS
On 04/24/2013 02:50 PM, Benjamin Caldwell wrote: Dear R help, I've what I think is a fairly simple parallel problem, and am getting bogged down in documentation and packages for much more complex situations. I have a big matrix (30^5,5]. I have a function that will act on each row of that matrix sequentially and output the 'best' result from the whole matrix (it compares the result from each row to the last and keeps the 'better' result). I would like to divide that first large matrix into chunks equal to the number of cores I have available to me, and work through each chunk, then output the results from each chunk. I'm really having trouble making head or tail of how to do this on a windows machine - lots of different false starts on several different packages now. Basically, I have the function, and I can of course easily divide the matrix into chunks. I just need a way to process each chunk in parallel (other than opening new R sessions for each core manually). Any help much appreciated - after two days of trying to get this to work I'm pretty burnt out. Hi Ben -- in your code from this morning you had a function fitting - function(ndx.grd=two,dt.grd=one,ind.vr='ind',rsp.vr='res') { ## ... setup for(i in 1:length(ndx.grd[,1])){ ## ... do work } ## ... collate results } that you're trying to run in parallel. Obviously the ## ... represent lines I've removed. When you say something like y - foreach(icount(length(two))) %dopar% fitting() its saying that you want to run fitting() length(two) times. So you're actually doing the same thing length(two) times, whereas you really want to divide the work thats inside fitting() into chunks, and do those on separate cores! Conceptually what you'd like to do is fit_one - function(idx, ndx.grd, dt.grd, ind.vr, rsp.vr) { ## ... do work on row idx _ONLY_ } and then evaluate with ## ... setup y - foreach (idx = icount(nrow(two)) %dopar% one_fit(idx, two, one, ind, res) ## ... collate so that fit_one fits just one of your combinations. foreach will worry about distributing the work. Make sure that fit_one works first, before trying to run this in parallel; your use of try(), trying to fit different data types (character, integer, numeric) into a matrix rather than data.frame, and the type coercions all indicate that you're fighting with R rather than working with it. Hope that helps, Martin Thanks *Ben Caldwell* [[alternative HTML version deleted]] __ 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. -- Computational Biology / Fred Hutchinson Cancer Research Center 1100 Fairview Ave. N. PO Box 19024 Seattle, WA 98109 Location: Arnold Building M1 B861 Phone: (206) 667-2793 __ 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.
[R] getting started with R and mysql
I have a mysql database I installed on my Ubuntu server, and I'm trying to figure out how to access and analyze it from a Win XP machine running R 2.15.1. I thought that RMySQL was the way to go. (Is there an easier way?) I tried to follow the instructions at http://www.r-bloggers.com/installing-the-rmysql-package-on-windows-7/ so I installed mysql-installer-community-5.5.27.0.msi, then set the environment variable MYSQL_HOME, and tried to install RMySQL within R. It failed, as shown below, but I can't see what is wrong. What's missing? If I only want to read tables from the database and work on them in R, is there an easier package? Sys.getenv(MYSQL_HOME) [1] C:\\Program Files\\MySQL\\MySQL Server 5.5 install.packages('RMySQL',type='source') also installing the dependency ‘DBI’ trying URL 'http://probability.ca/cran/src/contrib/DBI_0.2-5.tar.gz' Content type 'application/x-gzip' length 308395 bytes (301 Kb) opened URL downloaded 301 Kb trying URL 'http://probability.ca/cran/src/contrib/RMySQL_0.9-3.tar.gz' Content type 'application/x-gzip' length 165363 bytes (161 Kb) opened URL downloaded 161 Kb * installing *source* package 'DBI' ... ** R ** inst ** preparing package for lazy loading Creating a generic function for 'summary' from package 'base' in package 'DBI' ** help *** installing help indices ** building package indices ** installing vignettes 'DBI.Rnw' ** testing if installed package can be loaded * DONE (DBI) * installing *source* package 'RMySQL' ... ** package 'RMySQL' successfully unpacked and MD5 sums checked checking for $MYSQL_HOME... C:\Program Files\MySQL\MySQL Server 5.5 test: Files\MySQL\MySQL: unknown operand ** libs Warning: this package has a non-empty 'configure.win' file, so building only the main architecture gcc -IC:/R/R-215~1.1/include -DNDEBUG -IC:\Program Files\MySQL\MySQL Server 5.5/include -O3 -Wall -std=gnu99 -mtune=core2 -c RS-DBI.c -o RS-DBI.o RS-DBI.c:1: error: bad value (core2) for -mtune= switch make: *** [RS-DBI.o] Error 1 ERROR: compilation failed for package 'RMySQL' * removing 'C:/R/R-2.15.1/library/RMySQL' The downloaded source packages are in ‘C:\Documents and Settings\friendly\Local Settings\Temp\RtmpCU2QBs\downloaded_packages’ Warning messages: 1: running command 'C:/R/R-2.15.1/bin/i386/R CMD INSTALL -l C:/R/R-2.15.1/library C:\DOCUME~1\friendly\LOCALS~1\Temp\RtmpCU2QBs/downloaded_packages/RMySQL_0.9-3.tar.gz' had status 1 2: In install.packages(RMySQL, type = source) : installation of package ‘RMySQL’ had non-zero exit status -- Michael Friendly Email: friendly AT yorku DOT ca Professor, Psychology Dept. York University Voice: 416 736-2100 x66249 Fax: 416 736-5814 4700 Keele StreetWeb: http://www.datavis.ca Toronto, ONT M3J 1P3 CANADA __ 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.
Re: [R] getting started with R and mysql
I have a mysql database I installed on my Ubuntu server, and I'm trying to figure out how to access and analyze it from a Win XP machine running R 2.15.1. I thought that RMySQL was the way to go. (Is there an easier way?) We use RODBC. Is there a reason that won't work? cur -- Curt Seeliger, Data Ranger Raytheon Information Services - Contractor to ORD seeliger.c...@epa.gov 541/754-4638 [[alternative HTML version deleted]] __ 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.
Re: [R] getting started with R and mysql
On 08/08/2012 18:42, Michael Friendly wrote: I have a mysql database I installed on my Ubuntu server, and I'm trying to figure out how to access and analyze it from a Win XP machine running R 2.15.1. I thought that RMySQL was the way to go. (Is there an easier way?) I tried to follow the instructions at http://www.r-bloggers.com/installing-the-rmysql-package-on-windows-7/ so I installed mysql-installer-community-5.5.27.0.msi, then set the environment variable MYSQL_HOME, and tried to install RMySQL within R. It failed, as shown below, but I can't see what is wrong. What's missing? If I only want to read tables from the database and work on them in R, is there an easier package? From Windows, RODBC is likely to be easier, not least as binaries are available. You will need to install the ODBC driver of the appropriate (32- or 64-bit) architecture. A while ago the tricky steps were to get the Unix-alike server to allow access from elsewhere. This may have changed (because we have serious MySQL database servers, I now leave this to my sysadmins). Sys.getenv(MYSQL_HOME) [1] C:\\Program Files\\MySQL\\MySQL Server 5.5 install.packages('RMySQL',type='source') also installing the dependency ‘DBI’ trying URL 'http://probability.ca/cran/src/contrib/DBI_0.2-5.tar.gz' Content type 'application/x-gzip' length 308395 bytes (301 Kb) opened URL downloaded 301 Kb trying URL 'http://probability.ca/cran/src/contrib/RMySQL_0.9-3.tar.gz' Content type 'application/x-gzip' length 165363 bytes (161 Kb) opened URL downloaded 161 Kb * installing *source* package 'DBI' ... ** R ** inst ** preparing package for lazy loading Creating a generic function for 'summary' from package 'base' in package 'DBI' ** help *** installing help indices ** building package indices ** installing vignettes 'DBI.Rnw' ** testing if installed package can be loaded * DONE (DBI) * installing *source* package 'RMySQL' ... ** package 'RMySQL' successfully unpacked and MD5 sums checked checking for $MYSQL_HOME... C:\Program Files\MySQL\MySQL Server 5.5 test: Files\MySQL\MySQL: unknown operand ** libs Warning: this package has a non-empty 'configure.win' file, so building only the main architecture gcc -IC:/R/R-215~1.1/include -DNDEBUG -IC:\Program Files\MySQL\MySQL Server 5.5/include -O3 -Wall -std=gnu99 -mtune=core2 -c RS-DBI.c -o RS-DBI.o RS-DBI.c:1: error: bad value (core2) for -mtune= switch That looks like the wrong compiler. make: *** [RS-DBI.o] Error 1 ERROR: compilation failed for package 'RMySQL' * removing 'C:/R/R-2.15.1/library/RMySQL' The downloaded source packages are in ‘C:\Documents and Settings\friendly\Local Settings\Temp\RtmpCU2QBs\downloaded_packages’ Warning messages: 1: running command 'C:/R/R-2.15.1/bin/i386/R CMD INSTALL -l C:/R/R-2.15.1/library C:\DOCUME~1\friendly\LOCALS~1\Temp\RtmpCU2QBs/downloaded_packages/RMySQL_0.9-3.tar.gz' had status 1 2: In install.packages(RMySQL, type = source) : installation of package ‘RMySQL’ had non-zero exit status -- Brian D. Ripley, rip...@stats.ox.ac.uk Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/ University of Oxford, Tel: +44 1865 272861 (self) 1 South Parks Road, +44 1865 272866 (PA) Oxford OX1 3TG, UKFax: +44 1865 272595 __ 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.
[R] Getting started with Bayesian Change Point model in R
Hi- I am interested in running the BCP model in R and I am also new to R. My main issue is how to ask a specific questions within the script for this model, i.e., how one or multiple dependent factors (blue) are interact with the dependent factor (yellow), and nest the question do categorical factors (green) changes those interactions. I have attached some fake data in the link below with potential results. Thanks for any script or suggestions on how to develop this model further. Once those questions have been completed I am interested tweaking the model to prioritize the data (observations) based upon frequency of observations in space and time, then run the initial questions again. http://research.pbsci.ucsc.edu/eeb/kendrakarr/bcp/ Well thanks for any thoughts! -- *Kendra Karr, PhD* Post Doc, Ocean Innovations Environmental Defense Fund Center for Ocean Health 100 Shaffer RD. Santa Cruz, California 95060 Phone: 415 293 6050 Fax: 415 293 6051 Email: _kk...@edf.org _Skype: kendra.karr_ _ [[alternative HTML version deleted]] __ 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.
[R] Getting Started
I am a new user and want to learn R from the most basic level. Suggest me a reading or a link. Thanks Varsha P.S. I would appreciate if you could also send me the link where I can read questions and answers posted by others. [[alternative HTML version deleted]] __ 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.
Re: [R] Getting Started
On 07/21/2011 05:16 AM, Varsha Agrawal wrote: I am a new user and want to learn R from the most basic level. Suggest me a reading or a link. Googling 'R introduction' lead to a great number of interesting links. Also take a look at CRAN, primarily the documentation sections. Books related to R are on the r-project webpage [1]. Also take a look at the R taskviews for directions on specific application areas [2]. Also take a look at the website of Patrick Burns for interesting articles [3]. cheers, Paul [1] http://www.r-project.org/doc/bib/R-books.html [2] http://cran.r-project.org/web/views/ [3] http://www.burns-stat.com/ Thanks Varsha P.S. I would appreciate if you could also send me the link where I can read questions and answers posted by others. Googling using 'R-help your keywords' is in my experience the best way to search the [[alternative HTML version deleted]] __ 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. -- Paul Hiemstra, Ph.D. Global Climate Division Royal Netherlands Meteorological Institute (KNMI) Wilhelminalaan 10 | 3732 GK | De Bilt | Kamer B 3.39 P.O. Box 201 | 3730 AE | De Bilt tel: +31 30 2206 494 http://intamap.geo.uu.nl/~paul http://nl.linkedin.com/pub/paul-hiemstra/20/30b/770 __ 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.
Re: [R] Getting Started
cran.r-project.org/doc/manuals/R-intro.pdf cran.r-project.org/doc/contrib/Paradis-rdebuts_en.pdf cran.r-project.org/doc/contrib/Verzani-SimpleR.pdf cran.r-project.org/doc/contrib/Lemon-kickstart/kr_intro.html https://stat.ethz.ch/mailman/listinfo/r-help On Thursday 21 July 2011 10:46:43 Varsha Agrawal wrote: I am a new user and want to learn R from the most basic level. Suggest me a reading or a link. Thanks Varsha P.S. I would appreciate if you could also send me the link where I can read questions and answers posted by others. [[alternative HTML version deleted]] __ 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. __ 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.
[R] Getting started
Hi,) I am just getting started with R but have hit an early snag. I am working through Crawley (2008) The R Book and on page 6, 'Significance Stars', I am trying to enter the commands given. However, 'Gain.txt' does not seem to have been downloaded when I downloaded the R programme. I have searched for it in case it put it somewhere other than 'temp' but I cannot find it. Can anybody tell me how to do this? Many thanks Andrew Kelly [[alternative HTML version deleted]] __ 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.
Re: [R] Getting started
The author's site is here: http://www.bio.ic.ac.uk/research/mjcraw/therbook/ and you can read the file right off his site like this: URL - http://www.bio.ic.ac.uk/research/mjcraw/therbook/data/Gain.txt; gg - read.table(URL, header = TRUE) On Tue, Jun 8, 2010 at 9:37 AM, Andrew Kelly andrew.ke...@qub.ac.uk wrote: Hi,) I am just getting started with R but have hit an early snag. I am working through Crawley (2008) The R Book and on page 6, 'Significance Stars', I am trying to enter the commands given. However, 'Gain.txt' does not seem to have been downloaded when I downloaded the R programme. I have searched for it in case it put it somewhere other than 'temp' but I cannot find it. Can anybody tell me how to do this? Many thanks Andrew Kelly [[alternative HTML version deleted]] __ 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. __ 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.
Re: [R] Getting Started with Bayesian MCMC
The purpose of the task view is to answer questions like this. I for one would not be able to give a better answer than what is there. My suggestion would be to pull out your Bayesian textbook (or get one, or use online notes from a class, etc.) and look through the homework problems and examples for things that may be similar to what you may be doing in the future. Then try doing those problems/examples using a few of the different tools recommended in the task view (start with simple things even if they are not the types of problems you will do for real, just to get a feel for the different packages). This will help you decide which packages work best for you and which interfaces you prefer. Then when you have real problems to solve, you will have the knowledge of which tools to use and how to use them. You should also consider contributing what you learn back to the task view for others. -- Gregory (Greg) L. Snow Ph.D. Statistical Data Center Intermountain Healthcare greg.s...@imail.org 801.408.8111 -Original Message- From: r-help-boun...@r-project.org [mailto:r-help-boun...@r- project.org] On Behalf Of Ben Sent: Tuesday, April 13, 2010 5:50 PM To: r-help@r-project.org Subject: [R] Getting Started with Bayesian MCMC Hi all, I would like to start to use R's MCMC abilities to compute answers in Bayesian statistics. I don't have any specific problems in mind yet, but I would like to be able to compute/sample posterior probabilities for low-dimensional custom models, as well as handle standard Bayesian cases like linear regression and hierarchical models. R clearly has a lot of abilities in this area: http://cran.r-project.org/web/views/Bayesian.html --enough to be confusing! For instance, there are apparently three separate interfaces to JAGS, and I'm not even sure I want/need to interface to JAGS at all. Can someone please get me started? Are there a handful of must-have packages and software that everyone (who uses MCMC regularly) uses? Any responses are appreciated, -- Ben __ 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. __ 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.
[R] Getting Started with Bayesian MCMC
Hi all, I would like to start to use R's MCMC abilities to compute answers in Bayesian statistics. I don't have any specific problems in mind yet, but I would like to be able to compute/sample posterior probabilities for low-dimensional custom models, as well as handle standard Bayesian cases like linear regression and hierarchical models. R clearly has a lot of abilities in this area: http://cran.r-project.org/web/views/Bayesian.html --enough to be confusing! For instance, there are apparently three separate interfaces to JAGS, and I'm not even sure I want/need to interface to JAGS at all. Can someone please get me started? Are there a handful of must-have packages and software that everyone (who uses MCMC regularly) uses? Any responses are appreciated, -- Ben __ 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.
Re: [R] Getting Started with Bayesian MCMC
Hi Ben, Before you begin playing with BUGS/JAGS, there are several native R packages that deal with a wide variety of Bayesian models that worth considering. Among many others, I find MCMCpack, DPpackage, and MCMCglmm very useful (and convenient). Best, Shige On Tue, Apr 13, 2010 at 7:49 PM, Ben mi...@emerose.org wrote: Hi all, I would like to start to use R's MCMC abilities to compute answers in Bayesian statistics. I don't have any specific problems in mind yet, but I would like to be able to compute/sample posterior probabilities for low-dimensional custom models, as well as handle standard Bayesian cases like linear regression and hierarchical models. R clearly has a lot of abilities in this area: http://cran.r-project.org/web/views/Bayesian.html --enough to be confusing! For instance, there are apparently three separate interfaces to JAGS, and I'm not even sure I want/need to interface to JAGS at all. Can someone please get me started? Are there a handful of must-have packages and software that everyone (who uses MCMC regularly) uses? Any responses are appreciated, -- Ben __ 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. __ 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.
[R] Getting started,
Hello, First of all, I'm new to R and I don't have anyone who already knows the language to ask for tips, so please excuse my ignorance. I'm trying to download data direct from the Federal Reserve statistics website and graph it, using the following: #This downloads the data from the Fed website download.file(http://www.federalreserve.gov/releases/h15/data/Business_day/H15_ED_M1.txt,Eurodollar_deposits1M.dat;) #This reads that data into a table data_download=read.table(Eurodollar_deposits1M.dat,skip=8,sep=,,head=T) #This is attempting to get R to read the date column, which is in mm/dd/ format #I have restricted it to the first 50 data points (to keep it simple) date_vec = as.Date(data_download[1:50,1],%m/%d/%y) #This reads the values again for just the first 50 data points eurodollar_vec = data_download[1:50,2] #This plots the date and data values. plot(date_vec,eurodollar_vec) A few issues with the output from this: 1) The date_vec data ends up looking like this 2019-01-04 - for some reason all year 2019, irrespective of the actual year (e.g. 1971, 1972). Any suggestions as to where I am going wrong? 2) The chart ends up as a scatter diagram, not surprisingly. I initially tried to use the ts.plot() function but when I did, I found that it doesn't use the date column in the data as the x axis. Is there a way of creating a time series that uses the date column, or alternatively, how would I turn these two columns (date value) into a line graph? 3) The y-axis output should be from about 4.5 to about 8.5, but the y-axis shows as being about 430-670. There also seems to be a line of points across the top which are all of the same value - as though anything above about 670 gets charted as 670. I'm sorry for this being a what am I doing wrong post, but I have looked through the manuals without success, and I am new enough to R that I don't have a feel for ways round these sorts of problems. Any suggestions would be greatly appreciated. Thanks. -- View this message in context: http://www.nabble.com/Getting-started%2C-tp22719735p22719735.html Sent from the R help mailing list archive at Nabble.com. __ 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.
Re: [R] Getting started,
In answer to your first question, your statement should be: date_vec = as.Date(data_download[1:50,1],%m/%d/%Y) Notice the capital Y; lower case says the year is only 2 digits, so you were pickup up the '19' from the date. Use 'plot(..., type='l')' for a line plot. Your data is being read in as factors: str(data_download) 'data.frame': 9972 obs. of 2 variables: $ DATE: Factor w/ 9972 levels 01/01/1973,01/01/1974,..: 84 112 140 167 195 279 307 335 362 390 ... $ EDM1: Factor w/ 673 levels 0.70, 0.75,..: 599 597 593 594 591 586 583 571 574 586 ... You need to convert EDM1 to numeric data_download$EDM1 - as.numeric(as.character(data_download$EDM1)) and then your data will plot as you like. On Thu, Mar 26, 2009 at 6:58 AM, gug guygr...@netvigator.com wrote: Hello, First of all, I'm new to R and I don't have anyone who already knows the language to ask for tips, so please excuse my ignorance. I'm trying to download data direct from the Federal Reserve statistics website and graph it, using the following: #This downloads the data from the Fed website download.file(http://www.federalreserve.gov/releases/h15/data/Business_day/H15_ED_M1.txt,Eurodollar_deposits1M.dat;) #This reads that data into a table data_download=read.table(Eurodollar_deposits1M.dat,skip=8,sep=,,head=T) #This is attempting to get R to read the date column, which is in mm/dd/ format #I have restricted it to the first 50 data points (to keep it simple) date_vec = as.Date(data_download[1:50,1],%m/%d/%y) #This reads the values again for just the first 50 data points eurodollar_vec = data_download[1:50,2] #This plots the date and data values. plot(date_vec,eurodollar_vec) A few issues with the output from this: 1) The date_vec data ends up looking like this 2019-01-04 - for some reason all year 2019, irrespective of the actual year (e.g. 1971, 1972). Any suggestions as to where I am going wrong? 2) The chart ends up as a scatter diagram, not surprisingly. I initially tried to use the ts.plot() function but when I did, I found that it doesn't use the date column in the data as the x axis. Is there a way of creating a time series that uses the date column, or alternatively, how would I turn these two columns (date value) into a line graph? 3) The y-axis output should be from about 4.5 to about 8.5, but the y-axis shows as being about 430-670. There also seems to be a line of points across the top which are all of the same value - as though anything above about 670 gets charted as 670. I'm sorry for this being a what am I doing wrong post, but I have looked through the manuals without success, and I am new enough to R that I don't have a feel for ways round these sorts of problems. Any suggestions would be greatly appreciated. Thanks. -- View this message in context: http://www.nabble.com/Getting-started%2C-tp22719735p22719735.html Sent from the R help mailing list archive at Nabble.com. __ 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. -- Jim Holtman Cincinnati, OH +1 513 646 9390 What is the problem that you are trying to solve? __ 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.
Re: [R] Getting started,
Try this: library(zoo) library(chron) my.url - http://www.federalreserve.gov/releases/h15/data/Business_day/H15_ED_M1.txt; z - read.zoo(my.url, skip = 8, header = TRUE, sep = ,, na.strings = ND, strip.white = TRUE, FUN = as.chron) plot(z[1:50,]) # or to plot with NAs interpolated plot(na.approx(z[1:50,])) See the three zoo vignettes: vignette(package = zoo) vignette(zoo) # etc. and for more on dates see R News 4/1. On Thu, Mar 26, 2009 at 6:58 AM, gug guygr...@netvigator.com wrote: Hello, First of all, I'm new to R and I don't have anyone who already knows the language to ask for tips, so please excuse my ignorance. I'm trying to download data direct from the Federal Reserve statistics website and graph it, using the following: #This downloads the data from the Fed website download.file(http://www.federalreserve.gov/releases/h15/data/Business_day/H15_ED_M1.txt,Eurodollar_deposits1M.dat;) #This reads that data into a table data_download=read.table(Eurodollar_deposits1M.dat,skip=8,sep=,,head=T) #This is attempting to get R to read the date column, which is in mm/dd/ format #I have restricted it to the first 50 data points (to keep it simple) date_vec = as.Date(data_download[1:50,1],%m/%d/%y) #This reads the values again for just the first 50 data points eurodollar_vec = data_download[1:50,2] #This plots the date and data values. plot(date_vec,eurodollar_vec) A few issues with the output from this: 1) The date_vec data ends up looking like this 2019-01-04 - for some reason all year 2019, irrespective of the actual year (e.g. 1971, 1972). Any suggestions as to where I am going wrong? 2) The chart ends up as a scatter diagram, not surprisingly. I initially tried to use the ts.plot() function but when I did, I found that it doesn't use the date column in the data as the x axis. Is there a way of creating a time series that uses the date column, or alternatively, how would I turn these two columns (date value) into a line graph? 3) The y-axis output should be from about 4.5 to about 8.5, but the y-axis shows as being about 430-670. There also seems to be a line of points across the top which are all of the same value - as though anything above about 670 gets charted as 670. I'm sorry for this being a what am I doing wrong post, but I have looked through the manuals without success, and I am new enough to R that I don't have a feel for ways round these sorts of problems. Any suggestions would be greatly appreciated. Thanks. -- View this message in context: http://www.nabble.com/Getting-started%2C-tp22719735p22719735.html Sent from the R help mailing list archive at Nabble.com. __ 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. __ 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.
Re: [R] Getting started help
Thank you very much, everybody. The scale of responses of depth of guidance is overwhelming. All this will help me to become an expert in no time! I have a while yet as I am still collecting data for my PhD project but when I start statistical data analysis, thanks to all of you, I will know what to do with one of the required softwares! I will let you know how I get on. Donatas G. wrote: I have been asking these same questions here on this list half a year before. You will probably find what you need by following this link and the subsequent discussion: https://stat.ethz.ch/pipermail/r-help/2007-July/136162.html Donatas On Tuesday 19 February 2008 15:14:19 jim holtman rašė: I have no idea what numbers form the RAD7 machine look like, but there is a whole section on importing data in the user manual. 'read.table' is a start. To change directories, use 'setwd'. To start a new R session on Windows, just setup a shortcut to RGUI.exe. Most of this is covered in the documentation that comes with R. On 2/19/08, Rthoughts [EMAIL PROTECTED] wrote: Hello, I need to learn to use r-software for my PhD research project involving long timelines of radon radiation variations. I am using windows. I am currently discouraged by the use of r. I cannot figure out how to use it despite extensive searches. Can anyone help me with getting started? How can import a txt file with series of numbers from the RAD7 machine? How can I open up and set directories with the imported file or to start a new r session? Thank you so much if you can help. -- View this message in context: http://www.nabble.com/Getting-started-help-tp15560581p15560581.html Sent from the R help mailing list archive at Nabble.com. __ 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. -- Donatas Glodenis http://dg.lapas.info __ 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. -- View this message in context: http://www.nabble.com/Getting-started-help-tp15560581p15588323.html Sent from the R help mailing list archive at Nabble.com. __ 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.
[R] Getting started help
Hello, I need to learn to use r-software for my PhD research project involving long timelines of radon radiation variations. I am using windows. I am currently discouraged by the use of r. I cannot figure out how to use it despite extensive searches. Can anyone help me with getting started? How can import a txt file with series of numbers from the RAD7 machine? How can I open up and set directories with the imported file or to start a new r session? Thank you so much if you can help. -- View this message in context: http://www.nabble.com/Getting-started-help-tp15560581p15560581.html Sent from the R help mailing list archive at Nabble.com. __ 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.
Re: [R] Getting started help
If someone told you to learn R, then there must a local R guru in your neighbourhood. Therefore I would suggest that you consult this person first. Reading an introduction into R will help you too (e.g. Peter Dalgaard. Introductory Statistics with R. Springer, 2002. ISBN 0-387-95475-9) HTH, Thierry ir. Thierry Onkelinx Instituut voor natuur- en bosonderzoek / Research Institute for Nature and Forest Cel biometrie, methodologie en kwaliteitszorg / Section biometrics, methodology and quality assurance Gaverstraat 4 9500 Geraardsbergen Belgium tel. + 32 54/436 185 [EMAIL PROTECTED] www.inbo.be Do not put your faith in what statistics say until you have carefully considered what they do not say. ~William W. Watt A statistical analysis, properly conducted, is a delicate dissection of uncertainties, a surgery of suppositions. ~M.J.Moroney -Oorspronkelijk bericht- Van: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Namens Rthoughts Verzonden: dinsdag 19 februari 2008 13:54 Aan: r-help@r-project.org Onderwerp: [R] Getting started help Hello, I need to learn to use r-software for my PhD research project involving long timelines of radon radiation variations. I am using windows. I am currently discouraged by the use of r. I cannot figure out how to use it despite extensive searches. Can anyone help me with getting started? How can import a txt file with series of numbers from the RAD7 machine? How can I open up and set directories with the imported file or to start a new r session? Thank you so much if you can help. -- View this message in context: http://www.nabble.com/Getting-started-help-tp15560581p15560581.html Sent from the R help mailing list archive at Nabble.com. __ 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. __ 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.
Re: [R] Getting started help
Hi Rthoughts, I am currently discouraged by the use of r. I cannot figure out how to use it despite extensive searches. Can anyone help me with getting started? How can import a txt file with series... There are piles of documents that you could (and should) read. I am surprised that you haven't found them in your extensive searches. To set your thoughts free, go here: http://www.r-project.org/ http://cran.r-project.org/manuals.html## read the first one, and whatever else you need Then click on CRAN, and choose a mirror site (nearby), say: http://cran.za.r-project.org/ Then go: http://cran.za.r-project.org/other-docs.html and start at the top. HTH, Mark. PS: It might help you in your future enquiries if you used a real name, and if you called R R rather than r (since your keyboard clearly doesn't have a broken R ;). Rthoughts wrote: Hello, I need to learn to use r-software for my PhD research project involving long timelines of radon radiation variations. I am using windows. I am currently discouraged by the use of r. I cannot figure out how to use it despite extensive searches. Can anyone help me with getting started? How can import a txt file with series of numbers from the RAD7 machine? How can I open up and set directories with the imported file or to start a new r session? Thank you so much if you can help. -- View this message in context: http://www.nabble.com/Getting-started-help-tp15560581p15561419.html Sent from the R help mailing list archive at Nabble.com. __ 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.
Re: [R] Getting started help
Hi Rthoughts, Don't be discouraged I'm learning R on/off for classes and when I was under pressure to get work done, learning R likes pulling my hair (and teeth) off of frustration. But, this forum is great; I got so much help from this forum. I use R on windows as well. After install R, if the R is not on the desktop, go to: start - program - R, make the short cut on the desktop. (If this is not what you are asking, please post the question again.) Hope this helps. My D. Coyne -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Rthoughts Sent: Tuesday, February 19, 2008 11:52 AM To: r-help@r-project.org Subject: Re: [R] Getting started help Hi Mark, Thank you for the reply. I meant the command prompts to start an R file. To be followed on by importint data I can then use to practise the software with. The installation did put an icon on teh desktop. I am a very skilled user of computers but command lines for many programs is something that cna throw me sometimes! Regrads, Seb. Mark Difford wrote: Hi Rthoughts, It isn't clear what you mean. When you install R, the installation program usually puts an icon on your desktop that you can click on to run the program. So, if you don't have that, but have installed R, and what you mean is, How do I start the R program? or How do I run R? then do the following: Go to the directory where R has been installed. If necessary, use your file manager to find the file named Rgui.exe. When you have found it, execute it to start an R session. (Rgui.exe usually lives in something like: ...\Program Files\R\bin\) Later you will find out how to set this all up properly. Usually the installation program does a faultless job. HTH, Mark. Rthoughts wrote: Hi Mark, Thank you for your reply. There is one link I haven't come across, the last one. I have seen them but I couldn't find where 'how to start R' is explained for Windows platforms. I will look further into them. As for everyone else who sent e-mails, thank you. I have printed them out and will look into them. Mark Difford wrote: Hi Rthoughts, I am currently discouraged by the use of r. I cannot figure out how to use it despite extensive searches. Can anyone help me with getting started? How can import a txt file with series... There are piles of documents that you could (and should) read. I am surprised that you haven't found them in your extensive searches. To set your thoughts free, go here: http://www.r-project.org/ http://cran.r-project.org/manuals.html## read the first one, and whatever else you need Then click on CRAN, and choose a mirror site (nearby), say: http://cran.za.r-project.org/ Then go: http://cran.za.r-project.org/other-docs.html and start at the top. HTH, Mark. PS: It might help you in your future enquiries if you used a real name, and if you called R R rather than r (since your keyboard clearly doesn't have a broken R ;). Rthoughts wrote: Hello, I need to learn to use r-software for my PhD research project involving long timelines of radon radiation variations. I am using windows. I am currently discouraged by the use of r. I cannot figure out how to use it despite extensive searches. Can anyone help me with getting started? How can import a txt file with series of numbers from the RAD7 machine? How can I open up and set directories with the imported file or to start a new r session? Thank you so much if you can help. -- View this message in context: http://www.nabble.com/Getting-started-help-tp15560581p15562214.html Sent from the R help mailing list archive at Nabble.com. __ 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. __ 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.
Re: [R] Getting started help
Hi, if I may further add it would be very helpful if you get a book on R from your library... the introductory chapters should be very much helpful as all of them start on how to simply start R, load your data files, etc etc The deepness and power of R is well beyond any other software, but you do have to use your keyboard more than your mouse :). although there are some GUI's available... when i started using R I used R-commander and rattle which helped me get started a bit... On 19/02/2008, Mark Difford [EMAIL PROTECTED] wrote: Hi Rthoughts, I am currently discouraged by the use of r. I cannot figure out how to use it despite extensive searches. Can anyone help me with getting started? How can import a txt file with series... There are piles of documents that you could (and should) read. I am surprised that you haven't found them in your extensive searches. To set your thoughts free, go here: http://www.r-project.org/ http://cran.r-project.org/manuals.html## read the first one, and whatever else you need Then click on CRAN, and choose a mirror site (nearby), say: http://cran.za.r-project.org/ Then go: http://cran.za.r-project.org/other-docs.html and start at the top. HTH, Mark. PS: It might help you in your future enquiries if you used a real name, and if you called R R rather than r (since your keyboard clearly doesn't have a broken R ;). Rthoughts wrote: Hello, I need to learn to use r-software for my PhD research project involving long timelines of radon radiation variations. I am using windows. I am currently discouraged by the use of r. I cannot figure out how to use it despite extensive searches. Can anyone help me with getting started? How can import a txt file with series of numbers from the RAD7 machine? How can I open up and set directories with the imported file or to start a new r session? Thank you so much if you can help. -- View this message in context: http://www.nabble.com/Getting-started-help-tp15560581p15561419.html Sent from the R help mailing list archive at Nabble.com. __ 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. -- -- Yianni [[alternative HTML version deleted]] __ 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.
Re: [R] Getting started help
Hi Mark, Thank you for your reply. There is one link I haven't come across, the last one. I have seen them but I couldn't find where 'how to start R' is explained for Windows platforms. I will look further into them. As for everyone else who sent e-mails, thank you. I have printed them out and will look into them. Mark Difford wrote: Hi Rthoughts, I am currently discouraged by the use of r. I cannot figure out how to use it despite extensive searches. Can anyone help me with getting started? How can import a txt file with series... There are piles of documents that you could (and should) read. I am surprised that you haven't found them in your extensive searches. To set your thoughts free, go here: http://www.r-project.org/ http://cran.r-project.org/manuals.html## read the first one, and whatever else you need Then click on CRAN, and choose a mirror site (nearby), say: http://cran.za.r-project.org/ Then go: http://cran.za.r-project.org/other-docs.html and start at the top. HTH, Mark. PS: It might help you in your future enquiries if you used a real name, and if you called R R rather than r (since your keyboard clearly doesn't have a broken R ;). Rthoughts wrote: Hello, I need to learn to use r-software for my PhD research project involving long timelines of radon radiation variations. I am using windows. I am currently discouraged by the use of r. I cannot figure out how to use it despite extensive searches. Can anyone help me with getting started? How can import a txt file with series of numbers from the RAD7 machine? How can I open up and set directories with the imported file or to start a new r session? Thank you so much if you can help. -- View this message in context: http://www.nabble.com/Getting-started-help-tp15560581p15561538.html Sent from the R help mailing list archive at Nabble.com. __ 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.
Re: [R] Getting started help
Hi Mark, Thank you for the reply. I meant the command prompts to start an R file. To be followed on by importint data I can then use to practise the software with. The installation did put an icon on teh desktop. I am a very skilled user of computers but command lines for many programs is something that cna throw me sometimes! Regrads, Seb. Mark Difford wrote: Hi Rthoughts, It isn't clear what you mean. When you install R, the installation program usually puts an icon on your desktop that you can click on to run the program. So, if you don't have that, but have installed R, and what you mean is, How do I start the R program? or How do I run R? then do the following: Go to the directory where R has been installed. If necessary, use your file manager to find the file named Rgui.exe. When you have found it, execute it to start an R session. (Rgui.exe usually lives in something like: ...\Program Files\R\bin\) Later you will find out how to set this all up properly. Usually the installation program does a faultless job. HTH, Mark. Rthoughts wrote: Hi Mark, Thank you for your reply. There is one link I haven't come across, the last one. I have seen them but I couldn't find where 'how to start R' is explained for Windows platforms. I will look further into them. As for everyone else who sent e-mails, thank you. I have printed them out and will look into them. Mark Difford wrote: Hi Rthoughts, I am currently discouraged by the use of r. I cannot figure out how to use it despite extensive searches. Can anyone help me with getting started? How can import a txt file with series... There are piles of documents that you could (and should) read. I am surprised that you haven't found them in your extensive searches. To set your thoughts free, go here: http://www.r-project.org/ http://cran.r-project.org/manuals.html## read the first one, and whatever else you need Then click on CRAN, and choose a mirror site (nearby), say: http://cran.za.r-project.org/ Then go: http://cran.za.r-project.org/other-docs.html and start at the top. HTH, Mark. PS: It might help you in your future enquiries if you used a real name, and if you called R R rather than r (since your keyboard clearly doesn't have a broken R ;). Rthoughts wrote: Hello, I need to learn to use r-software for my PhD research project involving long timelines of radon radiation variations. I am using windows. I am currently discouraged by the use of r. I cannot figure out how to use it despite extensive searches. Can anyone help me with getting started? How can import a txt file with series of numbers from the RAD7 machine? How can I open up and set directories with the imported file or to start a new r session? Thank you so much if you can help. -- View this message in context: http://www.nabble.com/Getting-started-help-tp15560581p15562214.html Sent from the R help mailing list archive at Nabble.com. __ 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.
Re: [R] Getting started help
Hi Rthoughts, It isn't clear what you mean. When you install R, the installation program usually puts an icon on your desktop that you can click on to run the program. So, if you don't have that, but have installed R, and what you mean is, How do I start the R program? or How do I run R? then do the following: Go to the directory where R has been installed. If necessary, use your file manager to find the file named Rgui.exe. When you have found it, execute it to start an R session. (Rgui.exe usually lives in something like: ...\Program Files\R\bin\) Later you will find out how to set this all up properly. Usually the installation program does a faultless job. HTH, Mark. Rthoughts wrote: Hi Mark, Thank you for your reply. There is one link I haven't come across, the last one. I have seen them but I couldn't find where 'how to start R' is explained for Windows platforms. I will look further into them. As for everyone else who sent e-mails, thank you. I have printed them out and will look into them. Mark Difford wrote: Hi Rthoughts, I am currently discouraged by the use of r. I cannot figure out how to use it despite extensive searches. Can anyone help me with getting started? How can import a txt file with series... There are piles of documents that you could (and should) read. I am surprised that you haven't found them in your extensive searches. To set your thoughts free, go here: http://www.r-project.org/ http://cran.r-project.org/manuals.html## read the first one, and whatever else you need Then click on CRAN, and choose a mirror site (nearby), say: http://cran.za.r-project.org/ Then go: http://cran.za.r-project.org/other-docs.html and start at the top. HTH, Mark. PS: It might help you in your future enquiries if you used a real name, and if you called R R rather than r (since your keyboard clearly doesn't have a broken R ;). Rthoughts wrote: Hello, I need to learn to use r-software for my PhD research project involving long timelines of radon radiation variations. I am using windows. I am currently discouraged by the use of r. I cannot figure out how to use it despite extensive searches. Can anyone help me with getting started? How can import a txt file with series of numbers from the RAD7 machine? How can I open up and set directories with the imported file or to start a new r session? Thank you so much if you can help. -- View this message in context: http://www.nabble.com/Getting-started-help-tp15560581p15561960.html Sent from the R help mailing list archive at Nabble.com. __ 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.
Re: [R] Getting started help
Hi Rthoughts, Yes, I see now that they truly are (just) Rthoughts;) but take courage, for we are getting closer (to the start). You still need to read the basic documentation, and you will get used to the command line. What I think you need is a package called Rcmdr. So, start R using your desktop icon, click on the Packages menu, then on Install package(s)..., and then scroll down and choose Rcmdr (you will probably first be asked to choose a download site). For you the TeachingDemos plugin is a good additional choice. Click OK. Once Rcmdr has been installed, type the following at R's command prompt: require(Rcmdr)## loads Rcmdr and runs it You can now switch windows between Rcmdr and R. Again, at the R prompt type the following commands: require(datasets) ?datasets data(ChickWeight) ## careful: R is case sensitive! ls() ## try ?ls Now, switch to the Rcmdr window and use the Data set: button to load ChickWeight into Rcmdr's workspace. Now mess with it; or load another data set, more to your taste. Use Rcmdr's Tools menu to load any plugins you installed. ls() str(ChickWeight)## try ?str summary(ChickWeight) ?rm rm(ChickWeight) ls() HTH, Mark. Rthoughts wrote: Hi Mark, Thank you for the reply. I meant the command prompts to start an R file. To be followed on by importint data I can then use to practise the software with. The installation did put an icon on teh desktop. I am a very skilled user of computers but command lines for many programs is something that cna throw me sometimes! Regrads, Seb. Mark Difford wrote: Hi Rthoughts, It isn't clear what you mean. When you install R, the installation program usually puts an icon on your desktop that you can click on to run the program. So, if you don't have that, but have installed R, and what you mean is, How do I start the R program? or How do I run R? then do the following: Go to the directory where R has been installed. If necessary, use your file manager to find the file named Rgui.exe. When you have found it, execute it to start an R session. (Rgui.exe usually lives in something like: ...\Program Files\R\bin\) Later you will find out how to set this all up properly. Usually the installation program does a faultless job. HTH, Mark. Rthoughts wrote: Hi Mark, Thank you for your reply. There is one link I haven't come across, the last one. I have seen them but I couldn't find where 'how to start R' is explained for Windows platforms. I will look further into them. As for everyone else who sent e-mails, thank you. I have printed them out and will look into them. Mark Difford wrote: Hi Rthoughts, I am currently discouraged by the use of r. I cannot figure out how to use it despite extensive searches. Can anyone help me with getting started? How can import a txt file with series... There are piles of documents that you could (and should) read. I am surprised that you haven't found them in your extensive searches. To set your thoughts free, go here: http://www.r-project.org/ http://cran.r-project.org/manuals.html## read the first one, and whatever else you need Then click on CRAN, and choose a mirror site (nearby), say: http://cran.za.r-project.org/ Then go: http://cran.za.r-project.org/other-docs.html and start at the top. HTH, Mark. PS: It might help you in your future enquiries if you used a real name, and if you called R R rather than r (since your keyboard clearly doesn't have a broken R ;). Rthoughts wrote: Hello, I need to learn to use r-software for my PhD research project involving long timelines of radon radiation variations. I am using windows. I am currently discouraged by the use of r. I cannot figure out how to use it despite extensive searches. Can anyone help me with getting started? How can import a txt file with series of numbers from the RAD7 machine? How can I open up and set directories with the imported file or to start a new r session? Thank you so much if you can help. -- View this message in context: http://www.nabble.com/Getting-started-help-tp15560581p15562350.html Sent from the R help mailing list archive at Nabble.com. __ 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.