[R] connecting R eclipse problem
i am connecting R 2.15 with Eclipse IDE 3.7,using [StatET] -: http://www.walware.de/ i have installed rjava,rj-1.1,rj.gd-1.1,installed new software StatET 3.0-3.1 in eclipse ,etc as prerequisite, i done all procedure as per eclipse says(Configure Launch R console panel),but at end,when configuring with R,gives error in Eclipse console * using log directory ‘/home/trendwise/lib.Rcheck’ * using R version 2.15.1 (2012-06-22) * using platform: x86_64-pc-linux-gnu (64-bit) * using session charset: UTF-8 * checking for file ‘lib/DESCRIPTION’ ... NO i have installed R in /usr/lib/R (R_HOME),why R checking for DESCRIPTION file ? - Sagar Nikam B.Pharm, M.Sc(Bioinformatics) Software Engineer (Data Research Analyst ) Trendwise Analytics,Bangalore India -- View this message in context: http://r.789695.n4.nabble.com/connecting-R-eclipse-problem-tp4648700.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] Any good R server-with connection examples
Sir,i installed opencpu on Ubuntu12.04, but they don't have step-by-step tutorials,instead they have direct written pages to try by people (in which situatuion u can use opencpu) can u tell me logic from where should i start,i want to load R package (RHive),which is installed in my regular R and do some queries n statistical calculations. i don't know json also how to write any html/php query to connect to R directly retrieve results ? do u have any script written by u,from which i can decode to get how to proceed ? - Sagar Nikam B.Pharm, M.Sc(Bioinformatics) Software Engineer (Data Research Analyst ) Trendwise Analytics,Bangalore India -- View this message in context: http://r.789695.n4.nabble.com/Any-good-R-server-with-connection-examples-tp4647010p4648294.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] Rserve-PHP client warning
i connected Rserver successfully. can do some functions like rnorm(),print(),etc... i am connecting R with Hive-hadoop i have installed library RHive which will take care of connection but when i am connecting it throws warning..like Warning: type 7 is currently not implemented in the PHP client. code:-- === //connecting to Rserve $socket=Rserve_connect(); print Socket:-.$x_socket; echo br; //setting path variables Rserve_eval($socket,Sys.setenv(HADOOP_HOME='/home/trendwise/Hadoop/hadoop-0.20.2')); Rserve_eval($socket,Sys.setenv(HIVE_HOME='/home/trendwise/Hadoop/hive-0.7.1')); //loading RHive library $library=Rserve_eval($socket,library(RHive)); echo Loaded library:- ; foreach($library as $value){echo $value. ;} echo br.initializingbr; //initializaing RHive library $kum_faya=Rserve_eval($socket,rhive.init()); echo br.connectingbr; //connecting R-Hive $kesar=Rserve_eval($socket,rhive.connect()); foreach($kesar as $value){ print $value.br; } === output:- Loaded library:- RHive Rserve rJava stats graphics grDevices utils datasets methods base initializing... connecting... Warning: type 7 is currently not implemented in the PHP client.Warning: type 7 is currently not implemented in the PHP client.Warning: type 7 is currently not implemented in the PHP client.Warning: type 7 is currently not implemented in the PHP client.Warning: type 7 is currently not implemented in the PHP client. Array localhost Array hdfs://localhost:54310 - Sagar Nikam B.Pharm, M.Sc(Bioinformatics) Software Engineer (Data Research Analyst ) Trendwise Analytics,Bangalore India -- View this message in context: http://r.789695.n4.nabble.com/Rserve-PHP-client-warning-tp4647110.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] Any good R server-with connection examples
I want to connect R with HTML/PHP pages to take input from user,do some statistical processing on it show results to HTML page again. I search on net,i got Rserve package,but examples are mainly for java langaure not for PHP i am wondering how to connect it to PHP-Apache-MySQL Is there any good tutorial/video which will tell me how to do that ? At least tell me logical way how to use it ? - Sagar Nikam B.Pharm, M.Sc(Bioinformatics) Software Engineer (Data Research Analyst ) Trendwise Analytics,Bangalore India -- View this message in context: http://r.789695.n4.nabble.com/Any-good-R-server-with-connection-examples-tp4647010.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] problem in installing RMySQL
i m installing pkg but get error like this install.packages(RMySQL) Installing package(s) into ‘/home/trendwise/R/x86_64-pc-linux-gnu-library/2.13’ (as ‘lib’ is unspecified) trying URL 'http://ftp.iitm.ac.in/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 ‘RMySQL’ ... checking for gcc... gcc checking for C compiler default output file name... a.out checking whether the C compiler works... yes checking whether we are cross compiling... no checking for suffix of executables... checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ANSI C... none needed checking how to run the C preprocessor... gcc -E checking for compress in -lz... yes checking for getopt_long in -lc... yes checking for mysql_init in -lmysqlclient... no checking for egrep... grep -E checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking mysql.h usability... no checking mysql.h presence... no checking for mysql.h... no checking for mysql_init in -lmysqlclient... no checking for mysql_init in -lmysqlclient... no checking for mysql_init in -lmysqlclient... no checking for mysql_init in -lmysqlclient... no checking for mysql_init in -lmysqlclient... no checking for mysql_init in -lmysqlclient... no checking for mysql_init in -lmysqlclient... no checking /usr/local/include/mysql/mysql.h usability... no checking /usr/local/include/mysql/mysql.h presence... no checking for /usr/local/include/mysql/mysql.h... no checking /usr/include/mysql/mysql.h usability... no checking /usr/include/mysql/mysql.h presence... no checking for /usr/include/mysql/mysql.h... no checking /usr/local/mysql/include/mysql/mysql.h usability... no checking /usr/local/mysql/include/mysql/mysql.h presence... no checking for /usr/local/mysql/include/mysql/mysql.h... no checking /opt/include/mysql/mysql.h usability... no checking /opt/include/mysql/mysql.h presence... no checking for /opt/include/mysql/mysql.h... no checking /include/mysql/mysql.h usability... no checking /include/mysql/mysql.h presence... no checking for /include/mysql/mysql.h... no Configuration error: could not find the MySQL installation include and/or library directories. Manually specify the location of the MySQL libraries and the header files and re-run R CMD INSTALL. INSTRUCTIONS: 1. Define and export the 2 shell variables PKG_CPPFLAGS and PKG_LIBS to include the directory for header files (*.h) and libraries, for example (using Bourne shell syntax): export PKG_CPPFLAGS=-IMySQL-include-dir export PKG_LIBS=-LMySQL-lib-dir -lmysqlclient Re-run the R INSTALL command: R CMD INSTALL RMySQL_version.tar.gz 2. Alternatively, you may pass the configure arguments --with-mysql-dir=base-dir (distribution directory) or --with-mysql-inc=base-inc (where MySQL header files reside) --with-mysql-lib=base-lib (where MySQL libraries reside) in the call to R INSTALL --configure-args='...' R CMD INSTALL --configure-args='--with-mysql-dir=DIR' RMySQL_version.tar.gz ERROR: configuration failed for package ‘RMySQL’ * removing ‘/home/trendwise/R/x86_64-pc-linux-gnu-library/2.13/RMySQL’ The downloaded packages are in ‘/tmp/Rtmp97FOng/downloaded_packages’ Warning message: In install.packages(RMySQL) : installation of package 'RMySQL' had non-zero exit status == i download extract mysql-connector-c-6.0.2-linux-glibc2.3-x86-64bit export two variables as PKG_CPPFLAGS=/var/lib/mysql/mysql-connector-c-6.0.2-linux-glibc2.3-x86-64bit/include export $PKG_CPPFLAGS PKG_LIBS=/var/lib/mysql/mysql-connector-c-6.0.2-linux-glibc2.3-x86-64bit/lib export $PKG_LIBS where did i was wrong ? - Sagar Nikam B.Pharm, M.Sc(Bioinformatics) Software Engineer (Data Research Analyst ) Trendwise Analytics,Bangalore India -- View this message in context: http://r.789695.n4.nabble.com/problem-in-installing-RMySQL-tp4646186.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] how to include --configure-args= in R CMD INSTALL
I am installing RMySQL_0.9-3.tar.gz pkg on windows-7 64 bit machine as:--- C:\Users\trendwise R CMD INSTALL --configure-args='--with-mysql-inc=C:\\Program Files\\MySQL\\MySQL Server 5.5\\include' C:\\Users\\trendwise\\Downloads\\RMySQL_0.9-3.tar.gz * installing to library 'C:/Users/trendwise/Documents/R/win-library/2.14' * installing *source* package 'RMySQL' ... ** package 'RMySQL' successfully unpacked and MD5 sums checked checking for $MYSQL_HOME... C:\Program Files\MySQL\MySQL Server 5.5\.; cygwin warning: MS-DOS style path detected: C:\Program Preferred POSIX equivalent is: /cygdrive/c/Program CYGWIN environment variable option nodosfilewarning turns off this warning. Consult the user's guide for more details about POSIX paths: http://cygwin.com/cygwin-ug-net/using.html#using-pathnames test: Files\MySQL\MySQL: unknown operand ** libs Warning: this package has a non-empty 'configure.win' file, so building only the main architecture cygwin warning: MS-DOS style path detected: C:/PROGRA~1/R/R-214~1.2/etc/x64/Makeconf Preferred POSIX equivalent is: /cygdrive/c/PROGRA~1/R/R-214~1.2/etc/x64/Makeconf CYGWIN environment variable option nodosfilewarning turns off this warning. Consult the user's guide for more details about POSIX paths: http://cygwin.com/cygwin-ug-net/using.html#using-pathnames gcc -m64 -IC:/PROGRA~1/R/R-214~1.2/include -IC:\Program Files\MySQL\MySQL Server 5.5\.;/include-Id:/RCompile/CRANpkg/extralibs64/local/include -O2 -Wall -std=gnu99 -mtune=core2 -c RS-DBI.c -o RS-DBI.o RS-DBI.c: In function 'RS_na_set': RS-DBI.c:1219:11: warning: variable 'c' set but not used [-Wunused-but-set-variable] gcc -m64 -IC:/PROGRA~1/R/R-214~1.2/include -IC:\Program Files\MySQL\MySQL Server 5.5\.;/include-Id:/RCompile/CRANpkg/extr alibs64/local/include -O2 -Wall -std=gnu99 -mtune=core2 -c RS-MySQL.c -o RS-MySQL.o In file included from RS-MySQL.c:22:0: RS-MySQL.h:32:19: fatal error: mysql.h: No such file or directory compilation terminated. make: *** [RS-MySQL.o] Error 1 ERROR: compilation failed for package 'RMySQL' * removing 'C:/Users/trendwise/Documents/R/win-library/2.14/RMySQL' === its giving this error, RS-MySQL.h:32:19: fatal error: mysql.h: No such file or directory i want to include mysql.h path in either RCMD INSTALL or install.packages() command - Sagar Nikam B.Pharm, M.Sc(Bioinformatics) Software Engineer (Data Research Analyst ) Trendwise Analytics,Bangalore India -- View this message in context: http://r.789695.n4.nabble.com/how-to-include-configure-args-in-R-CMD-INSTALL-tp4646220.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] problem in downloading RMySQL pkg
when i am installing Rmysql packages i get error like Warning in install.packages : package ‘RMySQL’ is not available (for R version 2.15.0) which is earliest version should i used ?how should i know the specific version -- View this message in context: http://r.789695.n4.nabble.com/problem-in-downloading-RMySQL-pkg-tp4645967.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] installing RMySQL error due to cygwin
when i am installing package manually (using below command) i get error about cygwin as, install.packages(C:\\Users\\trendwise\\Downloads\\RMySQL_0.9-3.tar.gz,lib=getOption(lib), repos = NULL, type=source) error:-- Installing package(s) into ‘C:/Users/trendwise/Documents/R/win-library/2.15’ (as ‘lib’ is unspecified) * installing *source* package 'RMySQL' ... ** package 'RMySQL' successfully unpacked and MD5 sums checked tty option detected in CYGWIN environment variable. CYGWIN=tty is no longer supported. Please remove it from your CYGWIN environment variable and use a terminal emulator like mintty, xterm, or rxvt. checking for $MYSQL_HOME... not found... searching registry... Error in readRegistry(SOFTWARE\\MySQL AB, hive = HLM, maxdepth = 2) : Registry key 'SOFTWARE\MySQL AB' not found Execution halted ERROR: configuration failed for package 'RMySQL' * removing 'C:/Users/trendwise/Documents/R/win-library/2.15/RMySQL' Warning in install.packages : running command 'C:/PROGRA~1/R/R-215~1.0/bin/x64/R CMD INSTALL -l C:/Users/trendwise/Documents/R/win-library/2.15 C:/Users/trendwise/Downloads/RMySQL_0.9-3.tar.gz' had status 1 Warning in install.packages : installation of package ‘C:/Users/trendwise/Downloads/RMySQL_0.9-3.tar.gz’ had non-zero exit status i dont want to uninstall cygwin -- View this message in context: http://r.789695.n4.nabble.com/installing-RMySQL-error-due-to-cygwin-tp4645968.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] RS-MySQL.h:32:19: fatal error: mysql.h: No such file or directory
i m installing RMySQL under windows -7 64bit, i have wamp server(which has mysql5.5.16) i have given MYSQL_HOME path in environment variable as MYSQL_HOME=C:\wamp\bin\mysql\mysql5.5.16\bin , also create Renviron.site file in C:\Program Files\R\R-2.15.0\etc giving MYSQL_HOME=C:/wamp/bin/mysql/mysql5.5.16/bin as path i install c connector MySQL Connector C 6.0.2 version also, which has mysql.h file Question:- In which folder should I include mysql.h file ? i dont know how to put mysql.h in RMySQL_0.9-3.tar.gz f, if yes how can i do it ? install.packages(RMySQL,type=source) Installing package(s) into ‘C:/Users/trendwise/Documents/R/win-library/2.15’ (as ‘lib’ is unspecified) trying URL 'http://ftp.iitm.ac.in/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 'RMySQL' ... ** package 'RMySQL' successfully unpacked and MD5 sums checked checking for $MYSQL_HOME... C:\wamp\bin\mysql\mysql5.5.16\bin cygwin warning: MS-DOS style path detected: C:\wamp\bin\mysql\mysql5.5.16\bin Preferred POSIX equivalent is: /cygdrive/c/wamp/bin/mysql/mysql5.5.16/bin CYGWIN environment variable option nodosfilewarning turns off this warning. Consult the user's guide for more details about POSIX paths: http://cygwin.com/cygwin-ug-net/using.html#using-pathnames ** libs Warning: this package has a non-empty 'configure.win' file, so building only the main architecture cygwin warning: MS-DOS style path detected: C:/PROGRA~1/R/R-215~1.0/etc/x64/Makeconf Preferred POSIX equivalent is: /cygdrive/c/PROGRA~1/R/R-215~1.0/etc/x64/Makeconf CYGWIN environment variable option nodosfilewarning turns off this warning. Consult the user's guide for more details about POSIX paths: http://cygwin.com/cygwin-ug-net/using.html#using-pathnames gcc -m64 -IC:/PROGRA~1/R/R-215~1.0/include -DNDEBUG -IC:\wamp\bin\mysql\mysql5.5.16\bin/include -Id:/RCompile/CRANpkg/extralibs64/local/include -O2 -Wall -std=gnu99 -mtune=core2 -c RS-DBI.c -o RS-DBI.o RS-DBI.c: In function 'RS_na_set': RS-DBI.c:1219:11: warning: variable 'c' set but not used [-Wunused-but-set-variable] gcc -m64 -IC:/PROGRA~1/R/R-215~1.0/include -DNDEBUG -IC:\wamp\bin\mysql\mysql5.5.16\bin/include -Id:/RCompile/CRANpkg/extralibs64/local/include -O2 -Wall -std=gnu99 -mtune=core2 -c RS-MySQL.c -o RS-MySQL.o In file included from RS-MySQL.c:22:0: RS-MySQL.h:32:19: fatal error: mysql.h: No such file or directory compilation terminated. make: *** [RS-MySQL.o] Error 1 ERROR: compilation failed for package 'RMySQL' * removing 'C:/Users/trendwise/Documents/R/win-library/2.15/RMySQL' * restoring previous 'C:/Users/trendwise/Documents/R/win-library/2.15/RMySQL' Warning in install.packages : running command 'C:/PROGRA~1/R/R-215~1.0/bin/x64/R CMD INSTALL -l C:/Users/trendwise/Documents/R/win-library/2.15 C:\Users\TRENDW~1\AppData\Local\Temp\RtmpshWgve/downloaded_packages/RMySQL_0.9-3.tar.gz' had status 1 Warning in install.packages : installation of package ‘RMySQL’ had non-zero exit status - Sagar Nikam B.Pharm, M.Sc(Bioinformatics) Software Engineer (Data Research Analyst ) Trendwise Analytics,Bangalore India -- View this message in context: http://r.789695.n4.nabble.com/RS-MySQL-h-32-19-fatal-error-mysql-h-No-such-file-or-directory-tp4646060.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] package request
which package from CRAN used for Big-Data analysis ? is there any separate package for Big-Data analysis? or for making reports Business intelligence -- View this message in context: http://r.789695.n4.nabble.com/package-request-tp4645661.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] histogram corelation plots
i want to show histogram in innovative way (good if interactive) in html report..is threre any tutorials/hint also there is any package to show correalation plot -- View this message in context: http://r.789695.n4.nabble.com/histogram-corelation-plots-tp4645726.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] any certification for R language
oracle has their SCJP certification for java language like that i want R certification for my job interview Also 1) i want interview questions on R(any website/pdb/any source) 2)any video about R learning(tutorials), any CD/DVD learning software -- View this message in context: http://r.789695.n4.nabble.com/any-certification-for-R-language-tp4632781.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] how to check given number seq. is time series or not?
i have following numbers 0.889046409368551 1.22726162946495 1.22726162946495 1.35785109728356 1.35785109728356 1.10704609982913 1.4424189950435 1.2277843378837 1.35785109728356 0.970883941918588 0.822170913920467 1.35785109728356 0.358815782262543 0.774234247460432 0.822170913920467 0.822170913920467 0.72599976881814 0.671583894425946 0.813223271443211 0.774234247460432 1.00184802593319 1.4424189950435 1.22726162946495 0.970883941918588 0.358815782262543 1.31016840948316 0.970883941918588 1.4424189950435 0.889046409368551 4.91679981837699 1.2277843378837 1.21605333196293 0.369861996166875 0.774748148811057 0.369861996166875 1.4424189950435 1.22726162946495 1.4424189950435 1.22726162946495 1.16291100715022 2.33863311242767 0.774234247460432 4.91679981837699 0.9670580678417 0.970883941918588 0.9670580678417 1.10704609982913 4.91679981837699 1.4424189950435 1.05410985855726 1.22726162946495 1.21605333196293 1.35785109728356 0.822170913920467 1.4424189950435 0.970883941918588 0.835429195630044 0.774234247460432 1.61328986496929 0.970883941918588 1.2277843378837 1.22726162946495 0.970883941918588 1.10704609982913 1.10704609982913 1.10704609982913 1.4424189950435 1.22726162946495 1.4424189950435 1.35785109728356 0.9670580678417 0.9670580678417 0.885419165744907 1.16291100715022 0.369861996166875 0.9670580678417 0.774748148811057 1.22726162946495 1.4424189950435 1.22726162946495 1.31016840948316 0.813223271443211 1.4424189950435 0.822170913920467 1.05410985855726 0.853014111520372 1.3245534157835 0.774234247460432 0.774234247460432 1.22726162946495 0.889046409368551 1.4424189950435 0.842622628771215 0.889046409368551 0.889046409368551 1.31898472833595 1.4424189950435 1.35785109728356 0.682617341489085 0.965180291004232 i don't want to check by plotting graph of above data(because i have thousands of such data structures) is there any function in R to check it ? how can i check validity by programming? -- View this message in context: http://r.789695.n4.nabble.com/how-to-check-given-number-seq-is-time-series-or-not-tp4631434.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] how to check given number seq. is time series or not?
Yes,sir index of above/below numbers is time (both dataset are same) x 1 0.8890464 2 1.2272616 3 1.2272616 4 1.3578511 5 1.3578511 6 1.1070461 7 1.4424190 8 1.2277843 9 1.3578511 10 0.9708839 11 0.8221709 12 1.3578511 13 0.3588158 14 0.7742342 15 0.8221709 16 0.8221709 17 0.7259998 18 0.6715839 19 0.8132233 20 0.7742342 21 1.0018480 22 1.4424190 23 1.2272616 24 0.9708839 25 0.3588158 26 1.3101684 27 0.9708839 28 1.4424190 29 0.8890464 30 4.9167998 31 1.2277843 32 1.2160533 33 0.3698620 34 0.7747481 35 0.3698620 36 1.4424190 37 1.2272616 38 1.4424190 39 1.2272616 40 1.1629110 41 2.3386331 42 0.7742342 43 4.9167998 44 0.9670581 45 0.9708839 46 0.9670581 47 1.1070461 48 4.9167998 49 1.4424190 50 1.0541099 51 1.2272616 52 1.2160533 53 1.3578511 54 0.8221709 55 1.4424190 56 0.9708839 57 0.8354292 58 0.7742342 59 1.6132899 60 0.9708839 61 1.2277843 62 1.2272616 63 0.9708839 64 1.1070461 65 1.1070461 66 1.1070461 67 1.4424190 68 1.2272616 69 1.4424190 70 1.3578511 71 0.9670581 72 0.9670581 73 0.8854192 74 1.1629110 75 0.3698620 76 0.9670581 77 0.7747481 78 1.2272616 79 1.4424190 80 1.2272616 81 1.3101684 82 0.8132233 83 1.4424190 84 0.8221709 85 1.0541099 86 0.8530141 87 1.3245534 88 0.7742342 89 0.7742342 90 1.2272616 91 0.8890464 92 1.4424190 93 0.8426226 94 0.8890464 95 0.8890464 96 1.3189847 97 1.4424190 98 1.3578511 99 0.6826173 100 0.9651803 kindly tell me is this is time series or not ? if yes,how can i find by coding/programming? -- View this message in context: http://r.789695.n4.nabble.com/how-to-check-given-number-seq-is-time-series-or-not-tp4631434p4631482.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] how to check given number seq. is time series or not?
is this is time series ? x 1 2 2 2 3 2 4 2 5 2 6 2 7 2 8 2 9 2 10 2 11 2 12 2 -- View this message in context: http://r.789695.n4.nabble.com/how-to-check-given-number-seq-is-time-series-or-not-tp4631434p4631483.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] how to predict/forecast missing values in time series ?
i have time series as 1.3578511 0.5119648 1.3189847 0.9214787 1.2272616 4.9167998 1.2272616 1.2272616 0.8854192 2.3386331 1.6132899 0.2030302 0.8426226 1.2277843 NA 1.3189847 1.3578511 0.8530141 2.3386331 1.0541099 0.7747481 0.5764672 1.3189847 1.2160533 1.2272616 0.6715839 0.9651803 1.6132899 1.2006974 0.6875047 1.3245534 1.2006974 0.8221709 1.3101684 1.6132899 1.6132899 1.2006974 1.3189847 1.0018480 1.2277843 1.4424190 1.6132899 1.2277843 1.2006974 0.7779642 0.9381081 0.8854192 NA NA 1.3189847 1.1070461 0.8221709 4.9167998 0.9214787 1.3189847 1.3189847 1.2277843 1.4424190 1.6132899 1.6132899 4.9167998 0.8235792 0.9708839 1.1070461 1.2160533 0.8354292 1.4424190 1.1958634 0.5119648 1.4424190 1.4424190 1.6132899 1.6132899 0.6710844 1.2272616 0.9708839 0.8890464 1.4424190 0.8890464 0.8221709 1.1958634 0.8132233 0.4630722 4.9167998 0.8890464 1.3189847 0.7373181 1.1070461 1.2279813 0.8890464 0.3588158 1.4424190 0.8132233 0.4297043 1.3578511 4.9167998 1.2272616 0.8426226 1.4424190 1.6132899 NA in which NA are missing values,i want to predict/forecast it,i search on internet,i found that Amelia packages can impute missing values; i used but it giving error,how can i resolve it library(Amelia) t-read.table(C:\\Users\\exam\\Desktop\\missing_ts.txt) a.out - amelia(t) Amelia Error Code: 42 There is only 1 column of data. Cannot impute amelia(x=as.matrix(1:101,t$V1)) Amelia Error Code: 39 Your data has no missing values. Make sure the code for missing data is set to the code for R, which is NA amelia(t$V1) Error in colSums(!is.na(x)) : 'x' must be an array of at least two dimensions is my way of predicting wrong?,if yes,then which method should i follow? -- View this message in context: http://r.789695.n4.nabble.com/how-to-predict-forecast-missing-values-in-time-series-tp4630588.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] how to download source code, pdf manual for any package from internet?
i use download.file() ,it works good for package source code t-available.packages(type=source) #all packages(list) from repository in source code .tar.gz format length(t[,2]) #total packages-- 3796 #package source file download for( i in seq_along(t[,1]) ) { download.file( paste(t[i,Repository],/,t[i,Package],_,t[i,Version],.tar.gz,sep=),destfile=paste(C:/Users/exam.2-235/Documents/R_laveria/,t[i,Package],_,t[i,Version],.tar.gz,sep=) ) } #package pdf downloading for(j in seq_along(t[,1]) ){ download.file( paste(http://cran.r-project.org/web/packages/,t[j,Package],/,t[j,Package],.pdf,sep=;),destfile=paste(C:/Users/exam.2-235/Documents/R_rab/,t[j,Package],.pdf,sep=) ) } when i am trying for pdf ,it downloads completely, but when open in pdf reader,it tell that pdf cannot be open because it's damaged cannot be repaired what will be problem ? i am working on windows-vista -- View this message in context: http://r.789695.n4.nabble.com/how-to-download-source-code-pdf-manual-for-any-package-from-internet-tp4630354p4630600.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] how to download source code, pdf manual for any package from internet?
i can get list of available packages by r-available.packages() No of available packages length(r[,1]) [1] 3739 single package name r[1,1] [1] ACCLMA i want download all packages starting with A / a alphabets, with their source code, pdf manual/vignettes from internet -- View this message in context: http://r.789695.n4.nabble.com/how-to-download-source-code-pdf-manual-for-any-package-from-internet-tp4630354.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] how to make http proxy setting as automatically detect?
i am connecting through my mobile connection,which don't have proxy setting i can access internet in browser using automatically detect setting,i get error when trying below source(http://bioconductor.org/biocLite.R;) Error in file(file, r, encoding = encoding) : cannot open the connection In addition: Warning message: In file(file, r, encoding = encoding) : InternetOpenUrl failed: 'ÿÄÿLM×Ëw€%' i set proxy as none by Sys.setenv(no_proxy=) Sys.getenv(http_proxy) [1] is there any way to tell R about auto detect setting for mobile connections -- View this message in context: http://r.789695.n4.nabble.com/how-to-make-http-proxy-setting-as-automatically-detect-tp4625521.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] how to download data from soap server using R
i don't know perl,but on server site,they give soap:lite using perl , go to---http://www.kegg.jp/kegg/soap/doc/keggapi_manual.html i want to download data from kegg server ,using R only, how to proceed? what is mean by SOAP client driver ? also go to http://soap.genome.jp/KEGG.wsdl -- View this message in context: http://r.789695.n4.nabble.com/how-to-download-data-from-soap-server-using-R-tp4612595.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] problem in matching numbers in two variables
No its not perfectly working see below j-c(1,1,2,2,3) k-c(2,1,1,1,1) j%%k [1] 1 0 0 0 0 problem comes when one of my sequence have 1 -- View this message in context: http://r.789695.n4.nabble.com/problem-in-matching-numbers-in-two-variables-tp4594912p4595849.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] problem in matching numbers in two variables
i want to compare two variables (having numbers) serially for matching/dismatching both having equal length x [1] 2 2 1 2 3 2 2 2 2 3 3 2 2 2 2 2 2 3 2 2 2 2 2 2 2 2 2 2 3 2 3 2 2 2 1 2 2 [38] 2 2 2 3 2 3 2 2 1 2 2 2 2 1 1 1 3 2 2 2 2 1 1 3 1 1 1 2 2 2 3 2 3 3 3 2 2 [75] 2 2 3 2 2 1 1 1 2 3 2 2 2 2 2 2 2 2 2 1 1 3 2 2 2 2 2 2 2 2 2 2 2 1 3 y [1] 2 2 2 1 3 1 3 2 1 3 3 3 3 2 2 1 2 3 3 3 1 1 2 2 2 2 2 2 1 2 3 1 2 2 1 1 2 [38] 1 2 3 2 1 3 1 1 2 2 2 2 1 2 1 2 3 2 3 2 1 2 2 3 1 1 1 2 2 2 3 2 3 3 3 3 3 [75] 2 2 1 2 1 2 1 2 1 3 3 3 1 2 2 2 1 2 1 2 2 3 2 3 2 3 2 2 2 2 1 2 2 2 3 length(x) [1] 109 length(y) [1] 109 #both having equal length which(x%in%y) #gives no of matches positions [1] 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 [19] 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 [37] 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 [55] 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 [73] 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 [91] 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 [109] 109 length(which(x%in%y)) [1] 109 it show that all numbers are matched ,but in real this is not true so,how to find matched numbers from two variables(numeric) like this? -- View this message in context: http://r.789695.n4.nabble.com/problem-in-matching-numbers-in-two-variables-tp4594912p4594912.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] How to find 5 closest number from matrix having attributes?
i found one clue in our forum, but it can give position for whole matrix, n-read.table(file.choose(),header=T) y-n[,c(1,2,3)] my.number=1.12270420185886 z-abs(y-my.number)==min(abs(y-my.number)) which(z) [1] 19 i have uploaded file,which have matrix[21,3] dimension i want to find at least 5 closest value with letter also column no in another way,i want 5 closest single value from matrix with position uploaded file:- http://r.789695.n4.nabble.com/file/n4589728/chocolate_potential_x.txt chocolate_potential_x.txt -- View this message in context: http://r.789695.n4.nabble.com/How-to-find-5-closest-number-from-matrix-having-attributes-tp4589728p4589728.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] how to avoid newlines tabs in file opening?
i have uploaded file,but when i am opening it in R,using u-file(file.choose(),r) k-readLines(u) k k[1:120] is has all /t (tabs) newlines, how to avoid it, can i take first 3 columns only in table form (lines starts with # not important for me) uploaded file:- http://r.789695.n4.nabble.com/file/n4577757/rabata.txt rabata.txt -- View this message in context: http://r.789695.n4.nabble.com/how-to-avoid-newlines-tabs-in-file-opening-tp4577757p4577757.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] how to cut files from any folder to another folder?
i want to cut file from e.g. abc folder put it into another location with folder name e.g. xyz how should i proceed? -- View this message in context: http://r.789695.n4.nabble.com/how-to-cut-files-from-any-folder-to-another-folder-tp4577818p4577818.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] how to write html output (webscraped using RCurl package) into file?
i want http://scop.berkeley.edu/astral/pdbstyle/?id=d1fjgc2output=html,showing information in webpage to be written in .txt file as it is(i don't want any html tag) i am using RCurl package marathi-htmlTreeParse(http://scop.berkeley.edu/astral/pdbstyle/?id=d1fjgc2output=html;) marathi kasam-marathi$children$html[[body]][[pre]][[text]] kasam write(kasam,papita.txt) Error in cat(list(...), file, sep, fill, labels, append) : argument 1 (type 'list') cannot be handled by 'cat i want to write kasam, as shown on console into .txt file -- View this message in context: http://r.789695.n4.nabble.com/how-to-write-html-output-webscraped-using-RCurl-package-into-file-tp4576476p4576476.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] want to forecast AR model calculate R square (but which method is good)
i used itsmr package , want to forecast AR model calculate R square to judge my forecasting/prediction ,that is it good or not ? i take original model(i)make example/demo model(j) ( 20 numbers less from original model) #AR model forecasting i-read.table(file.choose(),skip=1) #taking times series data used file:--- http://r.789695.n4.nabble.com/file/n4572840/1AIS_B.txt 1AIS_B.txt i-i$V1 #original data j-i[1:(length(i)-20)]#withdrawing last 20 numbers dynamite_ori_20-i[(length(i)-19):length(i)] #original numbers(last 20) arar_j-arar(y=j,h=20)#AR forecasting #plotting to visualize k-append(j,arar_j$pred) plotc(i,k) #calculates R squred for AR forcasted #1st method x-dynamite_ori_20#original value y-arar_j$pred#predicted value f-lm(y~x) beta=f$coeff[x]*(sd(x)/sd(y)) r_square-beta*cov(x,y) r_square x 0.0008692213 __ #2) method summary(f)[c(r.squared, adj.r.squared)] $r.squared [1] 0.0173342 $adj.r.squared [1] -0.03725834 __ which r_square i used to check my forecasting is good or bad? is there any other method to check forecasting quality ? -- View this message in context: http://r.789695.n4.nabble.com/want-to-forecast-AR-model-calculate-R-square-but-which-method-is-good-tp4572840p4572840.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] what is this warnings ?
i am running one script for many files, Script file atttached:- http://r.789695.n4.nabble.com/file/n4556770/AR_anarkali_aic.r AR_anarkali_aic.r warnings are given as below what is meaning of these warnings? Warning messages: 1: In optim(coef, err, gr = NULL, hessian = TRUE, ...) : one-diml optimization by Nelder-Mead is unreliable: use Brent or optimize() directly is there anything wrong with my code or my approach to calculate AIC values ? how i know due to which function warnings is generated? if i want to print warnings with file name then ...? -- View this message in context: http://r.789695.n4.nabble.com/what-is-this-warnings-tp4556770p4556770.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] i am not getting time series prediction results?
i have attached file, http://r.789695.n4.nabble.com/file/n4542543/1BHP_A.txt 1BHP_A.txt i just want to validate predicting results, i give less 10 digits for prediction compare results it with previous input data(input file) i-read.table(file.choose()) #attached file taking i-i$V1 length(i) [1] 44 j-i[1:34] pre-predict(ar(i),n.ahead=10) ts.plot(ts(j),pre$pred,col=c(1,5)) pre$pred Time Series: Start = 45 End = 54 Frequency = 1 [1] -0.01136364 -0.01136364 -0.01136364 -0.01136364 -0.01136364 [6] -0.01136364 -0.01136364 -0.01136364 -0.01136364 -0.01136364 prediction gives similar values,i.e. straight line. why this so? -- View this message in context: http://r.789695.n4.nabble.com/i-am-not-getting-time-series-prediction-results-tp4542543p4542543.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] how can i get AIC value for AR model
attached file:- http://r.789695.n4.nabble.com/file/n4525253/1A1I_A.txt 1A1I_A.txt arr-ar(t$V1) str(arr) arr$aic 0 1 2 3 4 5 6 4.273791 4.397484 2.258405 3.008703 1.884487 0.00 1.476055 7 8 910111213 3.204865 3.544783 5.474194 3.787079 3.873081 5.872812 7.085577 141516171819 8.762945 10.758352 11.484045 12.837440 7.465485 8.729661 but which is perfect aic value to take ? ? ? ? ? -- View this message in context: http://r.789695.n4.nabble.com/how-can-i-get-AIC-value-for-AR-model-tp4525253p4525253.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] Is it there any std pattern in R which show same representation style of ppt found on net
i m searching on net,material related to R, whenever i get ppt presentation of some topic ,i found it in speical format white backgroud blue bars,having links for further topics see link 1) https://www.rmetrics.org/files/Meielisalp2007/Presentations/Pfaff.pdf 2)http://grapevine.com.au/~yanchang/docs/Time-Series-Mining-slides.pdf If this is format,how can i made it,if i want to give my R codes presentation with your std style is there any software to make it -- View this message in context: http://r.789695.n4.nabble.com/Is-it-there-any-std-pattern-in-R-which-show-same-representation-style-of-ppt-found-on-net-tp4521236p4521236.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] Is this is correct way to calculate AIC value for time series ?
i want aic value to find best model from AR ARMA model i calculate ARMA model via autofit() function from itsmr package when i get aic of AR model,then i will compare with ARMA's aicc value is my way logically correct? -- View this message in context: http://r.789695.n4.nabble.com/Is-this-is-correct-way-to-calculate-AIC-value-for-time-series-tp4521545p4521550.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] Is this is correct way to calculate AIC value for time series ?
i have attached time series file http://r.789695.n4.nabble.com/file/n4521545/1A1I_A_phi_psi_pot_r_k.txt 1A1I_A_phi_psi_pot_r_k.txt i am not understanding formula() function,but what i read,from that 1 st method:- t-read.table(file.choose()) #choosing attached file lm-lm(t$V1~ 1) # i used Tilde sign loglik-logLik(lm) AIC(loglik) --- 2 nd method:- arr-ar(t$V1) str(arr) arr$aic 0 1 2 3 4 5 6 4.273791 4.397484 2.258405 3.008703 1.884487 0.00 1.476055 7 8 910111213 3.204865 3.544783 5.474194 3.787079 3.873081 5.872812 7.085577 141516171819 8.762945 10.758352 11.484045 12.837440 7.465485 8.729661 but which is perfect aic value to take ? ? ? ? ? -- which method correct to calculate classical/general AIC value or my both method are wrong,if yes,then how should i proceed? -- View this message in context: http://r.789695.n4.nabble.com/Is-this-is-correct-way-to-calculate-AIC-value-for-time-series-tp4521545p4521545.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] how to increase speed for function?/time efficiency of below function
Yes sir,i m using another's code,i will acknowledge them in my paper publication when my project completes. but can u tell me, how to decide P,D Q values in sarima() function using code its difficult to decide by visually,i have 4500 such time series -- View this message in context: http://r.789695.n4.nabble.com/how-to-increase-speed-for-function-time-efficiency-of-below-function-tp4515201p4519140.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] SARIMA MODEL QUESTION
how will you decide P,D Q in sarima() function using code,can u give me code -- View this message in context: http://r.789695.n4.nabble.com/sorting-the-data-tp857402p4519263.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] how to increase speed for function?/time efficiency of below function
i am using sarima() function as below ___ sarima=function(data,p,d,q,P=0,D=0,Q=0,S=-1,tol=.001){ n=length(data) constant=1:n xmean=matrix(1,n,1) if (d0 D0) fitit=arima(data, order=c(p,d,q), seasonal=list(order=c(P,D,Q), period=S), optim.control=list(trace=1,REPORT=1,reltol=tol)) if (d0 D==0) fitit=arima(data, order=c(p,d,q), seasonal=list(order=c(P,D,Q), period=S), xreg=constant,include.mean=F, optim.control=list(trace=1,REPORT=1,reltol=tol)) if (d==0 D==0) fitit=arima(data, order=c(p,d,q), seasonal=list(order=c(P,D,Q), period=S), xreg=xmean,include.mean=F, optim.control=list(trace=1,REPORT=1,reltol=tol)) if (d==0 D0) fitit=arima(data, order=c(p,d,q), seasonal=list(order=c(P,D,Q), period=S), xreg=constant,include.mean=F, optim.control=list(trace=1,REPORT=1,reltol=tol)) if (S 0) goof=20 else goof=3*S tsdiag(fitit,gof.lag=goof) k=length(fitit$coef) BIC=log(fitit$sigma2)+(k*log(n)/n) AICc=log(fitit$sigma2)+((n+k)/(n-k-2)) AIC=log(fitit$sigma2)+((n+2*k)/n) innov-fitit$resid list(fit=fitit, AIC=AIC, AICc=AICc, BIC=BIC) } it takes 1-2 minutes for one time series,i have 4500 times series data,how to increase speed/time of execution is there any concept of threading/parallel computing in R Please..Please.can u suggest me code for above function,which will be time efficient,i am frustrated with time consumption reading material on parallel computing, but i cant understand it properly -- View this message in context: http://r.789695.n4.nabble.com/how-to-increase-speed-for-function-time-efficiency-of-below-function-tp4515201p4515201.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] How to move files from one folder to another
How to move files from one folder to another i.e. cutting/copying from one location pasting to another -- View this message in context: http://r.789695.n4.nabble.com/How-to-move-files-from-one-folder-to-another-tp4512087p4512087.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] how to convert digits to specified decimal vectors
yes sir i used format() function like x-c(3,5,6) y-format(x,nsmall=6) y [1] 3.00 5.00 6.00 but it again gives me same output as.double(y[1]) [1] 3 i want it in decimal style like 4.000 (i.e. without string format) -- View this message in context: http://r.789695.n4.nabble.com/how-to-convert-digits-to-specified-decimal-vectors-tp4498588p4500920.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] how to know perfect execution of function ? if error occurred in execution, how to report it?
i have one for loop,in which i am dealing with time series arima function, while iterating at some stage there is a error, like Error in arima(x, c(p, 0, q)) : non-stationary AR part from CSS i want to know at which step this error occurred print that iterating number e.g. x-c(1:10) for (i in 1:5 ){ z-arima(x[i]) print(z) } if error occurred in arima function at i=3 step, it should report execute complete loop until i=5 -- View this message in context: http://r.789695.n4.nabble.com/how-to-know-perfect-execution-of-function-if-error-occurred-in-execution-how-to-report-it-tp4498037p4498037.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] how to convert digits to specified decimal vectors
x [1] 7 8 9 10 11 12 convert such that 7. 8. 9. 10.000 11.000 12.000 total size of 5 digits for each value -- View this message in context: http://r.789695.n4.nabble.com/how-to-convert-digits-to-specified-decimal-vectors-tp4498588p4498588.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] how to make this time series data stationary ?
i have below file as time series data http://r.789695.n4.nabble.com/file/n4494907/1A2X_B_phi_psi_pot_r_k.txt 1A2X_B_phi_psi_pot_r_k.txt i used autofit function from itsmr package k-read.table(file.choose()) ar(k$V1) Call: ar(x = k$V1) Order selected 0 sigma^2 estimated as 0.2499 autofit(k$V1) Error in arima(x, c(p, 0, q)) : non-stationary AR part from CSS what is this CSS ? hot to make it stationary -- View this message in context: http://r.789695.n4.nabble.com/how-to-make-this-time-series-data-stationary-tp4494907p4494907.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] how to check stationary/non-stationary time series data?
i have following file http://r.789695.n4.nabble.com/file/n4495257/1A2X_B_phi_psi_pot_r_k.txt 1A2X_B_phi_psi_pot_r_k.txt but i don't know which test used to check non-stationary ness of time series? -- View this message in context: http://r.789695.n4.nabble.com/how-to-check-stationary-non-stationary-time-series-data-tp4495257p4495257.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] how calculate seasonal component cyclic component of time series?
i am new to time series,whatever i know up till now,from that i have uploaded time series file what to build arma model,but for that i want p q values(orders) tell me how to calculate best p q values to find best AIC values for model i am doing but giving error bhavar-read.table(file.choose()) #taking time series file decompose(bhavar$V1) Error in decompose(bhavar$V1) : time series has no or less than 2 periods what this error is telling ? http://r.789695.n4.nabble.com/file/n4491470/tinku.txt tinku.txt -- View this message in context: http://r.789695.n4.nabble.com/how-calculate-seasonal-component-cyclic-component-of-time-series-tp4491470p4491470.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] No its not working, how to calculate best p order value for arma process
ts-ts(bhavar$V1) decompose(ts) Error in decompose(ts) : time series has no or less than 2 periods HoltWinters(ts) Error in decompose(ts(x[1L:wind], start = start(x), frequency = f), seasonal) : time series has no or less than 2 periods is it true that order of ar(ts) function is p-value used for arma(p,q) calculation ar(ts) Call: ar(x = ts) Coefficients: 12345678 9 10 11 -0.0979 -0.0380 -0.1823 -0.1096 0.1806 0.0414 -0.1439 0.1093 0.0348 -0.1580 0.2900 Order selected 11 sigma^2 estimated as 0.4339 -- View this message in context: http://r.789695.n4.nabble.com/how-calculate-seasonal-component-cyclic-component-of-time-series-tp4491470p4491673.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] how to decide best order for ma(x, order, centre=TRUE) in time series
when fitting an autoregressive time series model to the data i.e. in function ma(x, order, centre=TRUE) i attached file (time series data) http://r.789695.n4.nabble.com/file/n4491858/tinku.txt tinku.txt how to decide best order for a good time series model which would be valuable for arma() process -- View this message in context: http://r.789695.n4.nabble.com/how-to-decide-best-order-for-ma-x-order-centre-TRUE-in-time-series-tp4491858p4491858.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] how to find order of the autoregressive process in r
if i have time series,the give me code example for finding auto-regressive process -- View this message in context: http://r.789695.n4.nabble.com/how-to-find-order-of-the-autoregressive-process-in-r-tp4487721p4487721.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] what is p,d q in arima() function of time series
i am new to time series i found in help about arima arima(x = data, order = c(p, d, q)) what is exactly p,d,q? if i not changed them,what effects will happens? -- View this message in context: http://r.789695.n4.nabble.com/what-is-p-d-q-in-arima-function-of-time-series-tp4484368p4484368.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] How to cluster/classify following time series?
how to cluster/classify attached time series ?(each column/time series consider as single unit while clustering/classifying) if my concept is wrong,tell me how to extract time series with highest information content ? given file is to do it http://r.789695.n4.nabble.com/file/n4484173/rasta.txt rasta.txt -- View this message in context: http://r.789695.n4.nabble.com/How-to-cluster-classify-following-time-series-tp4484173p4484173.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] how to bind uneven column (not equal length) into matrix without recycling values
i have x [1] 1 2 3 4 5 6 y [1] 34 5 6 z-cbind(x,y) z x y [1,] 1 34 [2,] 2 5 [3,] 3 6 [4,] 4 34 [5,] 5 5 [6,] 6 6 i don't want recycling, instead can we put NA /0 like below z x y [1,] 1 34 [2,] 2 5 [3,] 3 6 [4,] 4 NA [5,] 5 NA [6,] 6 NA want distance matrix -- View this message in context: http://r.789695.n4.nabble.com/how-to-bind-uneven-column-not-equal-length-into-matrix-without-recycling-values-tp4474304p4474304.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] how to find best model of time series?giving error
yes but giving error t-read.table(file.choose()) t-ts(t) plot(t) Hit Return to see next plot: ht-HoltWinters(t) Error in decompose(ts(x[1L:wind], start = start(x), frequency = f), seasonal) : time series has no or less than 2 periods what should i do? -- View this message in context: http://r.789695.n4.nabble.com/how-to-find-best-model-of-time-series-tp4469296p4471097.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] not saving plot with resizable size?
i want to save plots in batch mode(100 plots in single code) in resizable mode which format should i use,i m working on windows savePlot(zatka,type=pdf,device=dev.cur()) Error in savePlot(zatka, type = pdf, device = dev.cur()) : can only copy from 'windows' devices -- View this message in context: http://r.789695.n4.nabble.com/not-saving-plot-with-resizable-size-tp4471520p4471520.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] how to calculate AIC value from below values using time series model
t -0.15264004 0.056076439 -0.07276116 -0.00917326 -0.02069089 -0.00416232 -0.07225855 -0.02654577 -0.06131410 -0.09380202 0.057414014 -0.05239976 0.014397612 0.016145161 -0.00670587 0.018696335 0.036943654 -0.02450233 0.031161705 0.006513503 -0.02892329 -0.00831519 -0.00877744 -0.00634399 -0.02612019 -0.02531800 -0.01435533 0.011148840 -0.01893775 0.029859128 0.029878797 -0.00125987 0.031404385 0.035127606 -0.00191775 0.059797202 -0.03268047 -0.06026960 -0.02216465 -0.08145612 -0.02772806 -0.03171683 -0.02842562 -0.11807898 -0.01457311 -0.12612482 0.409631265 -0.06375234 if i have 200 such t variable (which have time observations ranging from 100-400) want to select best model,how should i select it? -- View this message in context: http://r.789695.n4.nabble.com/how-to-calculate-AIC-value-from-below-values-using-time-series-model-tp4472014p4472014.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] how to find best model of time series? calculate aic value, if i have
yes,but i want AIC value to calculate for below value, using frequency =1 in ts() function t -0.15264004 0.056076439 -0.07276116 -0.00917326 -0.02069089 -0.00416232 -0.07225855 -0.02654577 -0.06131410 -0.09380202 0.057414014 -0.05239976 0.014397612 0.016145161 -0.00670587 0.018696335 0.036943654 -0.02450233 0.031161705 0.006513503 -0.02892329 -0.00831519 -0.00877744 -0.00634399 -0.02612019 -0.02531800 -0.01435533 0.011148840 -0.01893775 0.029859128 0.029878797 -0.00125987 0.031404385 0.035127606 -0.00191775 0.059797202 -0.03268047 -0.06026960 -0.02216465 -0.08145612 -0.02772806 -0.03171683 -0.02842562 -0.11807898 -0.01457311 -0.12612482 0.409631265 -0.06375234 in short, i want to know which is best model if i have this type of vectors(t) 200,each having 400 observations at respective time i.e. 1,2,3,4.400 -- View this message in context: http://r.789695.n4.nabble.com/how-to-find-best-model-of-time-series-tp4469296p4471664.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] how to find best model of time series?
i have data in one file below like (i have such type of file =200,each file have below type of data) t -0.15264004 0.056076439 -0.07276116 -0.00917326 -0.02069089 -0.00416232 -0.07225855 -0.02654577 -0.06131410 -0.09380202 0.057414014 -0.05239976 0.014397612 0.016145161 -0.00670587 0.018696335 0.036943654 -0.02450233 0.031161705 0.006513503 -0.02892329 -0.00831519 -0.00877744 -0.00634399 -0.02612019 -0.02531800 -0.01435533 0.011148840 -0.01893775 0.029859128 0.029878797 -0.00125987 0.031404385 0.035127606 -0.00191775 0.059797202 -0.03268047 -0.06026960 -0.02216465 -0.08145612 -0.02772806 -0.03171683 -0.02842562 -0.11807898 -0.01457311 -0.12612482 0.409631265 -0.06375234 plot.ts(t) i am new to time series,i get plot,but don't know which pattern this is? tell me how to determine type of time series(seasonal,trend,irregular,etc) from 200 such file/plot ,which model should i select as best model for forecasting future events -- View this message in context: http://r.789695.n4.nabble.com/how-to-find-best-model-of-time-series-tp4469296p4469296.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] how to run system command
i run like ,but it giving other than what i expect i also want to capture output print it e-system(date) e [1] 127 e-system(dir) e [1] 127 -- View this message in context: http://r.789695.n4.nabble.com/how-to-run-system-command-tp4449597p4449597.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] how to used regular expression while reading file
i have file as in txt format @ATTRIBUTE f1996 REAL @ATTRIBUTE f1997 REAL @ATTRIBUTE f1998 REAL @ATTRIBUTE f1999 REAL @ATTRIBUTE f2000 REAL @ATTRIBUTE class {-1,1} @DATA 2.080750,1.099070,0.927763,1.029080,-0.130763,1.265460,-0.43 1.109460,0.786453,0.445560,-0.146323,-0.996316,0.555759,0.29 -0.676530,1.693100,1.559250,1.559980,-0.982179,-1.358510,-1. 0.534396,1.677540,1.489030,0.778605,-0.183776,-1.116850,-1.4 -1.018900,0.511080,0.755641,1.013820,0.529899,0.160440,-0.08 -1.185370,-0.514473,-0.566634,1.224720,0.619244,-0.684713,-0 1.779050,0.423947,0.820696,2.525690,0.666921,0.661346,0.4253 -- i want to parse only numbers not starting with @ like 2.080750,1.099070,0.927763,1.029080,-0.130763,1.265460,-0.43 1.109460,0.786453,0.445560,-0.146323,-0.996316,0.555759,0.29 -0.676530,1.693100,1.559250,1.559980,-0.982179,-1.358510,-1. 0.534396,1.677540,1.489030,0.778605,-0.183776,-1.116850,-1.4 -1.018900,0.511080,0.755641,1.013820,0.529899,0.160440,-0.08 -1.185370,-0.514473,-0.566634,1.224720,0.619244,-0.684713,-0 1.779050,0.423947,0.820696,2.525690,0.666921,0.661346,0.4253 putting numbers only in array for each line how should i assess (read) file -- View this message in context: http://r.789695.n4.nabble.com/how-to-used-regular-expression-while-reading-file-tp4449889p4449889.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] how to run system command
i used it on windows system, but giving error like e - system(date, intern=TRUE) Error in system(date, intern = TRUE) : 'date' not found -- View this message in context: http://r.789695.n4.nabble.com/how-to-run-system-command-tp4449597p4449906.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] how to see inbuilt function(cor.test) how to get p-value from t-value(test of significance) ?
i can see source code of function cor function (x, y = NULL, use = everything, method = c(pearson, kendall, spearman)) { na.method - pmatch(use, c(all.obs, complete.obs, pairwise.complete.obs, everything, na.or.complete)) - but for cor.test,i gives cor.test function (x, ...) UseMethod(cor.test) bytecode: 0x05a5bff8 environment: namespace:stats - i want p-value calculation formula also,i have t-values(test of significance) -- View this message in context: http://r.789695.n4.nabble.com/how-to-see-inbuilt-function-cor-test-how-to-get-p-value-from-t-value-test-of-significance-tp4452454p4452454.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] how to append element at last position in array dynamically
h-array() h [1] NA append(h,9) [1] NA 9 but what it append. h [1] NA -- View this message in context: http://r.789695.n4.nabble.com/how-to-append-element-at-last-position-in-array-dynamically-tp4427893p4427893.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] how to get file name/file path
i open a table table-read.table(file.choose(),skip=1) at sometime i forget which file i open,so i want file name/file path -- View this message in context: http://r.789695.n4.nabble.com/how-to-get-file-name-file-path-tp4428126p4428126.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] how to read file append at specified positon
i have one file as munnabhai-read.table(hyphen[1],skip=1) munnabhai V1 V2 V3 V4 V5 V6 V7 1 1 12AS_A 4 A0.0 157.8994119 2 2 2 12AS_A 5 Y -41.61818 -56.8011795 1 3 3 12AS_A 6 I -55.47021 -51.1328352 1 4 4 12AS_A 7 A -54.43085 -58.3428366 1 5 5 12AS_A 8 K -54.31525 -39.2709474 1 6 6 12AS_A 9 Q -61.37700 -33.5304490 1 7 7 12AS_A 10 R -86.14173 -32.3448242 1 8 8 12AS_A 11 Q -52.88589 -57.2830246 1 want to read v7 vector add V8, edit it as in the same file V1 V2 V3 V4 V5 V6 V7V8 1 1 12AS_A 4 A0.0 157.8994119 22.3 2 2 12AS_A 5 Y -41.61818 -56.8011795 145.5 3 3 12AS_A 6 I -55.47021 -51.1328352 178.5 4 4 12AS_A 7 A -54.43085 -58.3428366 17.3 5 5 12AS_A 8 K -54.31525 -39.2709474 18.9 6 6 12AS_A 9 Q -61.37700 -33.5304490 14.5 7 7 12AS_A 10 R -86.14173 -32.3448242 17.3 8 8 12AS_A 11 Q -52.88589 -57.2830246 11.0 -- View this message in context: http://r.789695.n4.nabble.com/how-to-read-file-append-at-specified-positon-tp4424227p4424227.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] how to make hash? append element, if i want following condition
i want hash like A : 1.2, 3.4, 4.5 B : 9.7, 5.6, 4.8 C : 3.4 ,5.7, 4.6 where A key contain all three value at right sight how to append single keys values if i have predefined hash with known length -- View this message in context: http://r.789695.n4.nabble.com/how-to-make-hash-append-element-if-i-want-following-condition-tp4409761p4409761.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] how to make hash? append element, if i want following condition
i did it, but using hash package ,i got error like hash1 - new.env() hash1$A - c(1.2, 3.4, 4.5) hash1$A [1] 1.2 3.4 4.5 h-hash(keys=c(A,B),values=c(hash1$A,hash1$A) ) Error in .set(h, ...) : Keys of length 2 do not match values of length 6 how should i proceed -- View this message in context: http://r.789695.n4.nabble.com/how-to-make-hash-append-element-if-i-want-following-condition-tp4409761p4410576.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] how to identify which value is missing from array/variable
i have variable C as c [1] 1 2 3 6 7 8 12 13 14 15 16 17 18 want to check variable sequentially for missing values/integers reporting their positions, latter on,i want to fill with appropriate /missed values increasingly. -- View this message in context: http://r.789695.n4.nabble.com/how-to-identify-which-value-is-missing-from-array-variable-tp4401407p4401407.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] how to delete all classes variables in current previously saved history?
i have variables stored in previous history,next time i log in, load previous history,i want to use same variable name for using other values, i don't know exactly how many are they ? their names also.. How to delete all variable created in current previous session i.e. (known unknown) which form up-to current state? -- View this message in context: http://r.789695.n4.nabble.com/how-to-delete-all-classes-variables-in-current-previously-saved-history-tp4401389p4401389.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] how to made .exe of any gui project in R
i made jDialog through JGR package(Java gui 4 R), i want to export it with imported external package e.g.bio3d,RCOR , into .exe or if not possible convert code to executable jar file how should i go, give me package name,example codes (if possible) -- View this message in context: http://r.789695.n4.nabble.com/how-to-made-exe-of-any-gui-project-in-R-tp4375938p4375938.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] which R package is used for browsing web pages through coding
i know RCurl pakage to retrieve web content,it has limited use, i want interactive package like (in perl---Mechanize, In java---Watij,Prowser,HTMLunit,HTTPunit, in RubyWatir ,etc) this modules/packages opens appropriate browser,which can create queries,retrieves output, clicks buttons, fill up form automatically,searches keyword in search engine, Downloads many items from internet All this is by coding if find ,kindly give me sample examples(codes) at list two/five if not found,give me RCurl's sample codes starting from how to import library to closing browser, with explanation for each line of code -- View this message in context: http://r.789695.n4.nabble.com/which-R-package-is-used-for-browsing-web-pages-through-coding-tp4372888p4372888.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] which R package is used for browsing web pages through coding
Perl has Mechanize module which browse web pages through programming(coding),creates queries retrives data through it which R package support web browsing through programming -- View this message in context: http://r.789695.n4.nabble.com/which-R-package-is-used-for-browsing-web-pages-through-coding-tp4368349p4368349.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] appending variable's values in table like fashion
i have two variable pyar [1] M 12 34 13 gita [1] U 22 33 44 want to append gita object below pyar object as want to take in anther variable M 12 34 13 U 22 33 44 write it in table fashion inside file -- View this message in context: http://r.789695.n4.nabble.com/appending-variable-s-values-in-table-like-fashion-tp4360966p4360966.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] how to avoid writing index in write.table command
how to avoid writing index of variable in write.table command, e.g. output--- index,character,state 1 M 2 2 K 3 3 R 1 4 E 1 5 S 1 6 H 1 7 K 1 8 H 1 9 A 1 10 E 3 11 Q 1 i tried col.name=FALSE row.name=FALSE but it can't -- View this message in context: http://r.789695.n4.nabble.com/how-to-avoid-writing-index-in-write-table-command-tp4358557p4358557.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] i want to retrieve count for each freq of given summary from table()
i want to retrieve count for each freq of given summary from table() e.g. A cout,B count save it in different variables table(dil) dil A C D E F G H I K L M N P Q 49433 10361 38490 44549 27182 44947 16310 39002 39829 58805 11228 29320 28900 25802 R S T V W X Y 32674 40066 36052 45866 9405 1 23885 -- View this message in context: http://r.789695.n4.nabble.com/i-want-to-retrieve-count-for-each-freq-of-given-summary-from-table-tp4360579p4360579.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] want to drop levels of table vector join two vector(appending)
is have vector from table stored in s variable s [1] R P Y A C P V E S C D R R F S R S A D L T R H I R I Levels: A C D E F G H I K L M N P Q R S T V Y -- View this message in context: http://r.789695.n4.nabble.com/want-to-drop-levels-of-table-vector-join-two-vector-appending-tp4356851p4356851.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] iterating through for loop
how to iterate two elements each through for loop? e.g. x-c(1,2,4,7,34,6) y-c(3,5,6,9,34,7) for(z in x){ print(paste(z,y)) } i want both element of vector iterate serially with same position -- View this message in context: http://r.789695.n4.nabble.com/iterating-through-for-loop-tp4354101p4354101.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.