Re: [R] Problem in reading Excel spreadsheets

2010-12-01 Thread Stephen Liu
in reading Excel spreadsheets Hi, I don't know much about RODBC, but the package xlsReadWrite works pretty well for me for reading and writing xls files (and it doesn't need Perl or anything else to run). Ivan Le 12/1/2010 08:56, Stephen Liu a écrit : Hi folks, Win 7 64bit R 2.12.0 32bit

Re: [R] Problem in reading Excel spreadsheets

2010-12-01 Thread Stephen Liu
or Python if I'm not mistaken. I have no idea whether they work on Windows 64 bits. Visit Crantastic http://crantastic.org/ Ivan Le 12/1/2010 10:34, Stephen Liu a écrit : Hi Ivan, Thanks for your advice. I have problem running xlsReadWrite on 64 bit Win7. library(xlsReadWrite) xlsReadWrite

[R] Problem in reading Excel spreadsheets

2010-11-30 Thread Stephen Liu
Hi folks, Win 7 64bit R 2.12.0 32bit Problem in reading Excel spreadsheets (the text file, research_databaseI.xls, was download on Internet) data=odbcConnectExcel(file.choose()) sqlTables(data) TABLE_CAT TABLE_SCHEM 1

Re: [R] Where is gdata?

2010-11-29 Thread Stephen Liu
Hi Liviu, Not if you library(gdata) first. Then ?read.xls should work. Yes, I did. I found something strange here which I can't explain. Win 7 64bit R 32/64 bit Just rebooted Win 7 and R library(gdata) gdata: Unable to locate valid perl interpreter gdata: gdata: read.xls() will be

Re: [R] Where is gdata?

2010-11-29 Thread Stephen Liu
. You need to install something like Strawberry perl, as I've previously stated. Spencer On 11/29/2010 12:44 AM, Stephen Liu wrote: Hi Liviu, Not if you library(gdata) first. Then ?read.xls should work. Yes, I did. I found something strange here which I can't explain. Win 7

Re: [R] Where is gdata?

2010-11-29 Thread Stephen Liu
Hi Gabor, - snip - .. The following object(s) are masked from 'package:utils': : object.size This is just a message that it can't find perl. If you don't need to use read.xls then you don't need perl so you can ignore the message. If you do need to use read.xls then install perl and

Re: [R] Where is gdata?

2010-11-29 Thread Stephen Liu
From: Gabor Grothendieck ggrothendi...@gmail.com To: Stephen Liu sati...@yahoo.com Cc: r-help r-help@r-project.org Sent: Mon, November 29, 2010 11:31:18 PM Subject: Re: [R] Where is gdata? On Mon, Nov 29, 2010 at 10:18 AM, Stephen Liu sati...@yahoo.com wrote: Hi

Re: [R] Where is gdata?

2010-11-29 Thread Stephen Liu
Hi Gabor, That is the correct version of gdata. I am using Windows 32 so there could be some differences due to that. At any rate, can you start a fresh R session and show the console output of the problems you have seen. Use Rgui --vanilla to start R to be sure you don't have anything else

Re: [R] Where is gdata?

2010-11-29 Thread Stephen Liu
Hi Gabor, Your virtual machine does not have gdata in its library. No. This virtual machine is running Oracle VBox as virtualizer with Ubunut 10.10 desktop 64bit as host. R is not installed on host. Even it has, host and VM won't interfere each another. Nor VMs would interfere amongst

Re: [R] Where is gdata?

2010-11-29 Thread Stephen Liu
Hi Gabor, Your library may not be set to what you think it is. Try issuing this command to discover which libraries its using: .libPaths() [1] C:\\Users\\satimiswin764\\Documents/R/win-library/2.12 [2] C:/PROGRA~1/R/R-212~1.0/library and read the help for that command. Also try this:

[R] Where is gdata?

2010-11-28 Thread Stephen Liu
Hi folks, Win 7 64 bit R 32 bit install.packages(gregmisc) Installing package(s) into ‘C:\Users\satimiswin764\Documents/R/win-library/2.12’ (as ‘lib’ is unspecified) --- Please select a CRAN mirror for use in this session --- also installing the dependency ‘gmodels’ trying URL

[R] Where to download R .xls sample files?

2010-11-28 Thread Stephen Liu
Hi folks, Which R packages containing sample .xls files? TIA B.R. Stephen L [[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

Re: [R] How to remove a package.

2010-11-28 Thread Stephen Liu
: Stefan Grosse singularit...@gmx.net Sent: Sun, November 28, 2010 7:23:19 PM Subject: Re: [R] How to remove a package. Am 27.11.2010 09:48, schrieb Stephen Liu: I found the datasets of AER cool. detach(package:AER, unload = TRUE) detach(package:AER) works for me. data() still found car

Re: [R] Where to download R .xls sample files?

2010-11-28 Thread Stephen Liu
-project.org Sent: Sun, November 28, 2010 7:54:14 PM Subject: Re: [R] Where to download R .xls sample files? On 2010-11-28 19:46, Stephen Liu wrote: Hi folks, Which R packages containing sample .xls files? TIA why do you need .xls format data file? B.R. Stephen L

Re: [R] How to remove a package.

2010-11-28 Thread Stephen Liu
, Stephen Liu wrote: Hi Stefan, Tks for your advice. snipped Installation went through w/o problem. library(Ecdat) data() Data sets in package ‘datasets’ NOT 'Ecdat' ??Ecdat ... Ecdat::Caschool The California Test Score Data Set Ecdat::GrilichesWage Datas Ecdat::MCAS

Re: [R] Where is gdata?

2010-11-28 Thread Stephen Liu
and they symptoms you get to this list. Also, please include sessionInfo() with your reply. Hope this helps. Spencer On 11/28/2010 6:38 PM, Stephen Liu wrote: Hi Spencer, Win 7 I can't find the folders RTools\perl perl is on C:\Users\satimis\My Document\R\win-library\2.12\gdata\perl

Re: [R] Where is gdata?

2010-11-28 Thread Stephen Liu
Hi Gabor, library(gdata) no complaint library(help = gdata) It works. Thanks ?read.xls I must run ??read.xls All the topics I tested must use ??topic_name B.R. Stephen L From: Gabor Grothendieck ggrothendi...@gmail.com Cc: Spencer Graves

[R] How to remove a package.

2010-11-27 Thread Stephen Liu
Hi folks, library(AER) data() I found the datasets of AER package. But I couldn't remove AER with: either detach(package:AER) or detach(package:AER, unload = TRUE) data() still found car there. What will be the correct way to remove it? TIA Besides:- I couldn't find EcDat

[R] How to search the name of dataset on database

2010-11-27 Thread Stephen Liu
Hi folks, I can't figure out using help.search to find the name of the dataset on database. If it is NOT the right tool please advise which tool shall I use? TIA B.R. Stephen L [[alternative HTML version deleted]] __

Re: [R] How to save a data set as .txt on fly?

2010-11-26 Thread Stephen Liu
-0800, Stephen Liu wrote: Hi David, But you didn't try: DNase# which was after all the name of the object you saved. Sorry I don't follow. He is telling you that it is not surprising that 'aaa' does not exist, if the object you saved was called DNase I can't do it with following

[R] How to add multiple ablines

2010-11-26 Thread Stephen Liu
Hi folks Run; ToothGrowth attach(ToothGrowth) toothgrowth=lm(len~dose) adding abline: abline(toothgrowth) I got it done adding single abline. How to add more ablines on the same diagram? I found following thread, applying mapply command; Plotting multiple ablines

Re: [R] How to add multiple ablines

2010-11-26 Thread Stephen Liu
Hi jim, Tks for your advice. I got it. 1) abline(v=c(1,2,3,4), h=c(10,20), toothgrowth) The output of following command is the same. abline(v=c(1,2), h=c(10,20), toothgrowth) 2) Afterwards can I add further abline? B.R. Stephen L From: jim holtman

[R] About searching criteria

2010-11-25 Thread Stephen Liu
Hi folks, I need to search the dataset on data with name on heading; Run conc density I look at ??help.search and could not resolve; help.search(pattern, fields = c(alias, concept, title) What shall I replace pattern? I suppose replacing alias, concept, title with Run, conc, density ?

Re: [R] About searching criteria

2010-11-25 Thread Stephen Liu
Hi Henrique, Lot of thanks for your advice which is a little complicate to me. It involves multiple R commands: d - data() ne - new.env() data(list = grep(\\(, d$results[,'Item'], value = TRUE, invert = TRUE), envir = ne) out - eapply(ne, names) names(which(lapply(lapply(out, '%in%',

[R] How to save a data set as .txt on fly?

2010-11-25 Thread Stephen Liu
Hi folks, Win7 64bit I tried to save DNase, a data set on database, as .txt file for future use with load. I can't do it on fly; save(DNase, file=C:/Users/satimis/Documents/aaa.txt) load(file=C:/Users/satimis/Documents/aaa.txt) aaa Error: object 'aaa' not found aaa.txt Error: object

Re: [R] How to save a data set as .txt on fly?

2010-11-25 Thread Stephen Liu
to know why the .txt file created in this way can't be read with Notpad and WordPad? B.R. Stephen L - Original Message From: David Winsemius dwinsem...@comcast.net To: Stephen Liu sati...@yahoo.com Cc: r-help@r-project.org Sent: Fri, November 26, 2010 11:56:23 AM Subject: Re: [R

[R] About available datasets on PC

2010-11-23 Thread Stephen Liu
Hi folks, Win7 On running; data(package = .packages(all.available = TRUE)) it displays a list of datasets under:- Data sets in package ‘AER’: But I couldn't call/load all of them on the list. DJFranses Error: object 'DJFranses' not found CreditCard Error: object 'CreditCard' not found

Re: [R] About available datasets on PC

2010-11-23 Thread Stephen Liu
Hi Jeff, Tks for your advice. I got it B.R. satimis - Original Message From: Jeff Newmiller jdnew...@dcn.davis.ca.us To: Stephen Liu sati...@yahoo.com Cc: r-help@r-project.org Sent: Tue, November 23, 2010 4:41:57 PM Subject: Re: [R] About available datasets on PC You need to load

[R] Searching dataset

2010-11-23 Thread Stephen Liu
Hi folks, help.search(item_name) displays a list of dataset containing the item_name. If I need to search containing more than one item_name. What will be the command TIA B.R. Stephen L __ R-help@r-project.org mailing list

[R] How to bold items on a data frame?

2010-11-23 Thread Stephen Liu
Hi folks, I ran following commands to create a data file: Year - c(1983, 1984, 1985, 1986, 1987, 1988, 1989, 1990) Yield - c(60, 50, 70, 70, 80, 50, 60, 40) Concentration% - c(30, 40, 50, 60, 70, 80, 90, 100) Temperature - c(56, 47, 53, 53, 56, 47, 44, 44) datafile -

Re: [R] Rexcel

2010-11-22 Thread Stephen Liu
Hi, For RExcel I would suggest subscribing; http://mailman.csd.univie.ac.at/listinfo/rcom-l They have a website on; http://rcom.univie.ac.at/ B.R. Stephen L - Original Message From: Luis Felipe Parra felipe.pa...@quantil.com.co To: r-help r-help@r-project.org Sent: Mon, November

[R] How to start default browser on R

2010-11-22 Thread Stephen Liu
Hi folks, Win7 64 bit IE 64 bit How to start IE on R? TIA B.R. Stephen L __ 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

Re: [R] How to start default browser on R

2010-11-22 Thread Stephen Liu
(file:http://d:/R/R-2.5.1/html/index.html;, browser=C:/Program Files/Internet Explorer/iexplore.exe) same result as 1) above What I have missed? TIA B.R. Stephen L - Original Message From: David Scott d.sc...@auckland.ac.nz To: Stephen Liu sati...@yahoo.com Cc: r-help@r-project.org r

Re: [R] How to start default browser on R

2010-11-22 Thread Stephen Liu
Zahn iz...@psych.rochester.edu To: Stephen Liu sati...@yahoo.com Cc: David Scott d.sc...@auckland.ac.nz; r-help@r-project.org r-help@r-project.org Sent: Tue, November 23, 2010 11:39:15 AM Subject: Re: [R] How to start default browser on R Hi Stephen, I'm not sure if this is the problem, but you

Re: [R] How to start default browser on R

2010-11-22 Thread Stephen Liu
to; On R (Windows) Packages - Load package B.R. Stephen L - Original Message From: David Scott d.sc...@auckland.ac.nz To: Stephen Liu sati...@yahoo.com Cc: Ista Zahn iz...@psych.rochester.edu; r-help@r-project.org r-help@r-project.org Sent: Tue, November 23, 2010 12:00:36 PM Subject: Re: [R

Re: [R] Problem on running update

2010-11-21 Thread Stephen Liu
are the above files? B.R. Stephen L - Original Message From: Martin Morgan mtmor...@fhcrc.org To: Stephen Liu sati...@yahoo.com Cc: r-help@r-project.org Sent: Sun, November 21, 2010 2:10:52 PM Subject: Re: [R] Problem on running update On 11/20/2010 08:56 PM, Stephen Liu wrote: Hi folks

Re: [R] Problem on running update

2010-11-21 Thread Stephen Liu
at them and wondered what to do next? B.R. Stephen L - Original Message From: Martin Morgan mtmor...@fhcrc.org To: Stephen Liu sati...@yahoo.com Cc: r-help@r-project.org Sent: Mon, November 22, 2010 1:30:29 AM Subject: Re: [R] Problem on running update On 11/21/2010 03:12 AM, Stephen Liu

Re: [R] Problem on running update

2010-11-21 Thread Stephen Liu
of thanks for your detail advice and time spent. B.R. Stephen L - Original Message From: Martin Morgan mtmor...@fhcrc.org To: Stephen Liu sati...@yahoo.com Cc: r-help@r-project.org Sent: Mon, November 22, 2010 10:55:20 AM Subject: Re: [R] Problem on running update On 11/21/2010 05:21 PM

Re: [R] An empty grey diagram

2010-11-20 Thread Stephen Liu
(ToothGrowth) plot(dose, len) # this step is needed. Don't close the diagram. Otherwise following command won't work. abline(lm(len ~ dose, data = ToothGrowth)) Graph displayed B.R. Stephen L - Original Message From: Joshua Wiley jwiley.ps...@gmail.com To: Stephen Liu sati

[R] (no subject)

2010-11-20 Thread Stephen Liu
Hi folks, Please advise where can I down free data files for learning R? Google search brought me many, not easy for to screen. TIA B.R. Stephen L __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read

Re: [R] (no subject)

2010-11-20 Thread Stephen Liu
: Michael Bedward michael.bedw...@gmail.com To: Stephen Liu sati...@yahoo.com Cc: r-help@r-project.org Sent: Sat, November 20, 2010 5:46:35 PM Subject: Re: [R] (no subject) Type data() to list the numerous example data sets included with the standard R distribution. Michael On 20 November 2010 20:42

[R] Import and export .xls

2010-11-20 Thread Stephen Liu
Hi folks, Whether I need following package to export R data to Excel spreadsheet and to import .xls file to R? xlsReadWrite http://www2.warwick.ac.uk/fac/sci/moac/degrees/modules/ch923/r_introduction/excel_in_r/ TIA B.R. Stephen L __

Re: [R] Import and export .xls

2010-11-20 Thread Stephen Liu
. But I can't find it after finish. Can you help? If the script works how to save it for future use? TIA B.R. Stephen L - Original Message From: Gabor Grothendieck ggrothendi...@gmail.com To: Stephen Liu sati...@yahoo.com Cc: r-help@r-project.org Sent: Sat, November 20, 2010 11:58

[R] problem on installing package

2010-11-20 Thread Stephen Liu
Hi folks, install.packages(RthroughExcelWorkbooksInstaller) Installing package(s) into ‘C:\Users\satimiswin764\Documents/R/win-library/2.12’ (as ‘lib’ is unspecified) --- Please select a CRAN mirror for use in this session --- Error: subscript out of bounds install.packages() Installing

[R] Problem on running update

2010-11-20 Thread Stephen Liu
Hi folks, Win 7 64bit R 2.12.) Today on running: update.packages() Error: subscript out of bounds Unable to proceed. I have been googling around and couldn't discover the cause. Pls help. TIA B.R. Stephen L __ R-help@r-project.org mailing

[R] An empty grey diagram

2010-11-19 Thread Stephen Liu
Hi folks, Win7 64bit R 1.12.0 I run following command on R:- ToothGrowth attach(ToothGrowth) plot(dose,len) matrics=lm(len~dose) abline(metrics) Error in int_abline(a = a, b = b, h = h, v = v, untf = untf, ...) : plot.new has not been called yet Only a grey diagram is displayed

Re: [R] An empty grey diagram

2010-11-19 Thread Stephen Liu
TRUE TRUE TRUE    FALSE B.R. Stephen L   - Original Message From: Joshua Wiley jwiley.ps...@gmail.com To: Stephen Liu sati...@yahoo.com Cc: r-help@r-project.org Sent: Sat, November 20, 2010 12:29:07 PM Subject: Re: [R] An empty grey diagram Hi Stephen, In a session

Re: [R] An empty grey diagram

2010-11-19 Thread Stephen Liu
To: Stephen Liu sati...@yahoo.com Cc: r-help@r-project.org Sent: Sat, November 20, 2010 10:50:42 AM Subject: Re: [R] An empty grey diagram Hi Stephen, Please try: with(ToothGrowth, plot(dose, len)) abline(lm(len ~ dose, data = ToothGrowth)) Cheers, Josh On Fri, Nov 19, 2010 at 6:44 PM, Stephen Liu

Re: [R] An empty grey diagram

2010-11-19 Thread Stephen Liu
. Stephen L - Original Message From: David Winsemius dwinsem...@comcast.net To: Stephen Liu sati...@yahoo.com Cc: Joshua Wiley jwiley.ps...@gmail.com; r-help@r-project.org Sent: Sat, November 20, 2010 1:08:21 PM Subject: Re: [R] An empty grey diagram On Nov 19, 2010, at 11:14 PM

Re: [R] An empty grey diagram

2010-11-19 Thread Stephen Liu
Hi Josh, plot.new() the gray background changes to white colour. If following my steps:- plot(matrics$resid) plots a new graph B.R. Stephen - Original Message From: Joshua Wiley jwiley.ps...@gmail.com To: Stephen Liu sati...@yahoo.com Cc: r-help@r-project.org Sent: Sat, November 20

Re: [R] An empty grey diagram

2010-11-19 Thread Stephen Liu
ToothGrowth attach(ToothGrowth) abline(lm(len ~ does, data = ToothGrowth)) an empty gray graph displayed continue plot.new() the background changes to white colour, still an empty graph B.R. satimis - Original Message From: Joshua Wiley jwiley.ps...@gmail.com To: Stephen Liu

Re: [R] About R and RKward

2010-11-18 Thread Stephen Liu
-R before without success. RKward seems to me an Editor of R. B.R. satimis - Original Message From: Ajay Ohri ohri2...@gmail.com To: Stephen Liu sati...@yahoo.com Cc: r-help@r-project.org Sent: Thu, November 18, 2010 11:30:14 AM Subject: Re: [R] About R and RKward some comparisons

[R] About R and RKward

2010-11-17 Thread Stephen Liu
Hi all, Has any folk tested or been using RKward? Please shed me some light whether it takes data from the spreadsheet, analyzes the data and puts the data back to the spreadsheet, similar to RExcel and R and Calc. Or RKward is only an editor of R, working on front-end? I have tested

Re: [R] How to permanently remove [Previously saved workspace restored]

2010-11-14 Thread Stephen Liu
] is still there Please advise. TIA B.R. Stephen L - Original Message From: Stephen Liu sati...@yahoo.com To: r-help@r-project.org Sent: Sun, November 14, 2010 2:33:21 PM Subject: [R] How to permanently remove [Previously saved workspace restored] Win 7 64 bit R version 2.11.1 (2010

Re: [R] How to permanently remove [Previously saved workspace restored]

2010-11-14 Thread Stephen Liu
workspace restored] still popup B.R. Stephen L - Original Message From: Joshua Wiley jwiley.ps...@gmail.com To: Stephen Liu sati...@yahoo.com Cc: r-help@r-project.org Sent: Sun, November 14, 2010 6:31:11 PM Subject: Re: [R] How to permanently remove [Previously saved workspace restored

[R] Problem on update

2010-11-14 Thread Stephen Liu
Hi all, Win7 64 bit R version 2.11.1 (2010-05-31) Ran R as admin update.packages(ask='graphics') --- Please select a CRAN mirror for use in this session --- Warning: unable to access index for repository http://www.stats.ox.ac.uk/pub/RWin/bin/windows64/contrib/2.11 It is this site in

[R] About upgrade R

2010-11-14 Thread Stephen Liu
Hi all, Win 7 64-bit R version 2.11.1 (2010-05-31) I want to upgrade R to version 2.12.0 R-2.12.0 for Windows (32/64 bit) http://cran.r-project.org/bin/windows/base/ I found steps on following site; How to upgrade R on windows – another strategy (and the R code to do it)

Re: [R] How to permanently remove [Previously saved workspace restored]

2010-11-14 Thread Stephen Liu
To: Stephen Liu sati...@yahoo.com Cc: r-help@r-project.org Sent: Sun, November 14, 2010 11:42:37 PM Subject: Re: [R] How to permanently remove [Previously saved workspace restored] On Sun, Nov 14, 2010 at 3:40 AM, Stephen Liu sati...@yahoo.com wrote: Hi Joshua, list.files(path = getwd(), all.files

Re: [R] Problem on update

2010-11-14 Thread Stephen Liu
Hi Uwe, Your advice noted. I'll upgrade R to version 2.12.0 B.R. Stephen L - Original Message From: Uwe Ligges lig...@statistik.tu-dortmund.de To: Stephen Liu sati...@yahoo.com Cc: r-help@r-project.org Sent: Sun, November 14, 2010 11:02:00 PM Subject: Re: [R] Problem on update

Re: [R] About upgrade R

2010-11-14 Thread Stephen Liu
update.packages(checkBuilt=TRUE) If not ... Uwe Ligges On 14.11.2010 15:51, Stephen Liu wrote: Hi all, Win 7 64-bit R version 2.11.1 (2010-05-31) I want to upgrade R to version 2.12.0 R-2.12.0 for Windows (32/64 bit) http://cran.r-project.org/bin/windows/base/ I found steps on following

Re: [R] How to permanently remove [Previously saved workspace re

2010-11-14 Thread Stephen Liu
That is a nice reply, Duncan, and an excellent explanation of why .Rdata has no name! I also like the final sentence. I would only add: If you're sane, and want to stay sane, think about not using Windows. Hi Ted, 10 years ago, I have stopped running Windows for production. I only keep

Re: [R] How to permanently remove [Previously saved workspace restored]

2010-11-14 Thread Stephen Liu
Murdoch murdoch.dun...@gmail.com To: Joshua Wiley jwiley.ps...@gmail.com Cc: Stephen Liu sati...@yahoo.com; r-help@r-project.org Sent: Mon, November 15, 2010 12:43:18 AM Subject: Re: [R] How to permanently remove [Previously saved workspace restored] On 14/11/2010 10:42 AM, Joshua Wiley wrote

Re: [R] How to permanently remove [Previously saved workspace restored]

2010-11-14 Thread Stephen Liu
. Stephen L - Original Message From: Joshua Wiley jwiley.ps...@gmail.com To: Stephen Liu sati...@yahoo.com Cc: r-help@r-project.org Sent: Mon, November 15, 2010 1:26:16 AM Subject: Re: [R] How to permanently remove [Previously saved workspace restored] @Stephen Sorry, Duncan's right

Re: [R] About upgrade R

2010-11-14 Thread Stephen Liu
if the latest version, say 5.2.0, and the running version is 5.1.0 I have to upgrade the version NOT the packages. I have no idea on R B.R. Stephen L - Original Message From: Ajay Ohri ohri2...@gmail.com To: Uwe Ligges lig...@statistik.tu-dortmund.de Cc: Stephen Liu sati...@yahoo.com; r-help

Re: [R] About upgrade R

2010-11-14 Thread Stephen Liu
) If not ... Uwe Ligges On 14.11.2010 15:51, Stephen Liu wrote: Hi all, Win 7 64-bit R version 2.11.1 (2010-05-31) I want to upgrade R to version 2.12.0 R-2.12.0 for Windows (32/64 bit) http://cran.r-project.org/bin/windows/base/ I found steps on following site; How to upgrade R on windows

Re: [R] About upgrade R

2010-11-14 Thread Stephen Liu
complaining R server not available. I have to reinstall; rcom statconnDCOM RExcel Now R 2.12 is running on Win7. RExcel also works B.R. Stephen L - Original Message From: Joshua Wiley jwiley.ps...@gmail.com To: Stephen Liu sati...@yahoo.com Cc: r-help@r-project.org Sent: Mon

[R] How to permanently remove [Previously saved workspace restored]

2010-11-13 Thread Stephen Liu
Win 7 64 bit R version 2.11.1 (2010-05-31) How to permanently remove; [Previously saved workspace restored] rm (list = ls( )) On next start it still displays; . [Previously saved workspace restored] There is a file keeping the previous data on Linux .Rdata How about on Windows? TIA

[R] Problem on installing statconnDCOM and RBloomberg

2010-11-09 Thread Stephen Liu
Installation of rcom, statconnDCOM and RBloomberg Hi folks, Win7 64bit R version 2.11.1 (2010-05-31) Perform following steps to install rcom, statconnDCOM and RBloomberg 1) rcom installation login Win7 as administrator and start R install.packages(rcom) --- Please select a CRAN mirror for

Re: [R] About 5.1 Arrays

2010-11-08 Thread Stephen Liu
: Joshua Wiley jwiley.ps...@gmail.com To: Stephen Liu sati...@yahoo.com Cc: r-help@r-project.org Sent: Mon, November 8, 2010 8:33:50 AM Subject: Re: [R] About 5.1 Arrays On Sat, Nov 6, 2010 at 7:38 AM, Stephen Liu sati...@yahoo.com wrote: Hi Joshua, Thanks for your advice. 1) Re your advice

Re: [R] About 5.1 Arrays

2010-11-06 Thread Stephen Liu
Hi Richard, ## for an array with ## dim(a) == c(3,4,2) ## a[i,j,k] means select the element in position ##i + (j-1)*3 + (k-1)*3*4 My understanding; e.g. 1) dim(a) == c(3,4,2) 3 + (4-1)*3 + (2-1)*3*4 3+9+12=24 2) ## dim(a) == c(1,2,1) 1 + (2-1)*3 + (1-1)*3*4 1+3+0=4 3) ## dim(a) ==

Re: [R] About 5.1 Arrays

2010-11-06 Thread Stephen Liu
,] 15 18 21 24 Correct. If I'm wrong, pls correct me. Thanks B.R. Stephen - Original Message From: Joshua Wiley jwiley.ps...@gmail.com To: Stephen Liu sati...@yahoo.com Cc: r-help@r-project.org Sent: Sat, November 6, 2010 12:48:27 AM Subject: Re: [R] About 5.1 Arrays On Fri, Nov

[R] Where to get rcom for Linux

2010-11-06 Thread Stephen Liu
Hi folks, Debian 600 64-bit Is rcom for Linux available? rcom rcom: R COM Client Interface and internal COM Server http://cran.r-project.org/web/packages/rcom/index.html If YES please advise where to get it. TIA B.R. Stephen L __

Re: [R] Where to get rcom for Linux

2010-11-06 Thread Stephen Liu
- Original Message From: Shige Song shiges...@gmail.com To: Stephen Liu sati...@yahoo.com Cc: r-help@r-project.org Sent: Sun, November 7, 2010 12:17:42 AM Subject: Re: [R] Where to get rcom for Linux isn't COM a Windows-only technology? Hi Shige Thanks. I see. I was surprised

Re: [R] About 5.1 Arrays

2010-11-06 Thread Stephen Liu
: [R] About 5.1 Arrays -Original Message- From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On Behalf Of Stephen Liu Sent: Saturday, November 06, 2010 7:38 AM To: Joshua Wiley Cc: r-help@r-project.org Subject: Re: [R] About 5.1 Arrays Hi Joshua, Thanks

[R] About 5.1 Arrays

2010-11-05 Thread Stephen Liu
Hi folks, (Learning R) 5.1 Arrays http://cran.r-project.org/doc/manuals/R-intro.html#Vectors-and-assignment 1) If continued on previous example (3.1 Intrinsic attributes: mode and length), z - 0:9 dim(z) - c(3,5,100) Error in dim(z) - c(3, 5, 100) : dims [product 1500] do not match the

Re: [R] About 5.1 Arrays

2010-11-05 Thread Stephen Liu
Hi Gerrit, Thanks for your advice. - snip - A[i, j, k] is the value of the element in position (i,j,k) of array A. In other words, it is the entry in row i, column j, and layer k (if one wants to think of A as a cuboidal grid). Sorry I can't follow. Could you pls explain in more

[R] About installing RBloomberg

2010-11-05 Thread Stephen Liu
Hi folks, Debian 600 64bit desktop sudo R Password: install.packages(RBloomberg, repos=http://R-Forge.R-project.org;) * DONE (zoo) ERROR: dependencies ‘rcom’, ‘bitops’, ‘RUnit’ are not available for package ‘RBloomberg’ * removing ‘/usr/local/lib/R/site-library/RBloomberg’ Failed

Re: [R] About 5.1 Arrays

2010-11-05 Thread Stephen Liu
To: Stephen Liu sati...@yahoo.com Cc: Gerrit Eichner gerrit.eich...@math.uni-giessen.de; r-help@r-project.org Sent: Fri, November 5, 2010 10:18:18 PM Subject: Re: [R] About 5.1 Arrays Hi, On Fri, Nov 5, 2010 at 6:00 AM, Stephen Liu sati...@yahoo.com wrote: [snip] A[i, j, k] is the value

Re: [R] About 5.1 Arrays

2010-11-05 Thread Stephen Liu
: Daniel Nordlund djnordl...@frontier.com To: r-help@r-project.org Sent: Fri, November 5, 2010 11:54:15 PM Subject: Re: [R] About 5.1 Arrays -Original Message- From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On Behalf Of Stephen Liu Sent: Friday, November 05

Re: [R] Logical vectors

2010-11-04 Thread Stephen Liu
: Gerrit Eichner gerrit.eich...@math.uni-giessen.de To: Stephen Liu sati...@yahoo.com Cc: r-help@r-project.org Sent: Thu, November 4, 2010 2:34:55 PM Subject: Re: [R] Logical vectors On Wed, 3 Nov 2010, Stephen Liu wrote: [snip] 2) x [1] 1 2 3 4 5 temp - x 1 temp [1] FALSE TRUE TRUE TRUE

Re: [R] Logical vectors

2010-11-04 Thread Stephen Liu
: Joshua Wiley jwiley.ps...@gmail.com To: Stephen Liu sati...@yahoo.com Cc: r-help@r-project.org Sent: Thu, November 4, 2010 2:46:15 PM Subject: Re: [R] Logical vectors On Wed, Nov 3, 2010 at 10:50 PM, Stephen Liu sati...@yahoo.com wrote: Hi folks, Pls help me to understand follow; An Introduction

Re: [R] Logical vectors

2010-11-04 Thread Stephen Liu
From: Gerrit Eichner gerrit.eich...@math.uni-giessen.de To: Stephen Liu sati...@yahoo.com Cc: r-help@r-project.org Sent: Thu, November 4, 2010 4:56:42 PM Subject: Re: [R] Logical vectors On Thu, 4 Nov 2010, Stephen Liu wrote: [snip] In; 2.4 Logical vectors http://cran.r-project.org/doc

Re: [R] Logical vectors

2010-11-04 Thread Stephen Liu
Hi Ted, Thanks for your advice and the correction on the document concerned. B.R. Stephen L - Original Message From: ted.hard...@wlandres.net ted.hard...@wlandres.net To: r-help@r-project.org Cc: Stephen Liu sati...@yahoo.com; R-Devel r-de...@stat.math.ethz.ch Sent: Thu, November 4

[R] setting attributes

2010-11-04 Thread Stephen Liu
Hi folks, An Introduction to R 3.3 Getting and setting attributes http://cran.r-project.org/doc/manuals/R-intro.html#Vectors-and-assignment z - 0:9 z [1] 0 1 2 3 4 5 6 7 8 9 attr(z, dim) - c(10,10) Error in attr(z, dim) - c(10, 10) : dims [product 100] do not match the length of object

Re: [R] setting attributes

2010-11-04 Thread Stephen Liu
Hi David, I'm learning R following the tutorial mentioned, nothing else. I got an error running the code. Please help. B.R. Stephen L - Original Message From: David Winsemius dwinsem...@comcast.net To: Stephen Liu sati...@yahoo.com Cc: r-help@r-project.org Sent: Fri, November 5

Re: [R] setting attributes (SOLVED)

2010-11-04 Thread Stephen Liu
attr(z, dim) - c(10,10) attr(z, dim) [1] 10 10 attr function (x, which, exact = FALSE) .Primitive(attr) The learning curve of R is rather steep at start. B.R. Stephen L - Original Message From: Michael Sumner mdsum...@gmail.com To: Stephen Liu sati...@yahoo.com Cc: r-help@r

Re: [R] setting attributes (SOLVED)

2010-11-04 Thread Stephen Liu
From: Erik Iverson er...@ccbr.umn.edu To: r-help@r-project.org Sent: Fri, November 5, 2010 1:09:19 PM Subject: Re: [R] setting attributes (SOLVED) The learning curve of R is rather steep at start. Yes, it can be. I think the general advice would be to get a good Intro to R book if you're just

[R] longer object length is not a multiple of shorter object length

2010-11-03 Thread Stephen Liu
Hi folks, I'm following An Introduction to R http://cran.r-project.org/doc/manuals/R-intro.html#R-and-statistics to learn R. Coming to; 2.2 Vector arithmetic v - 2*x + y + 1 Warning message: In 2 * x + y : longer object length is not a multiple of shorter object length What does it mean?

Re: [R] longer object length is not a multiple of shorter object length

2010-11-03 Thread Stephen Liu
- Original Message From: David Winsemius dwinsem...@comcast.net To: Stephen Liu sati...@yahoo.com Cc: r-help@r-project.org Sent: Wed, November 3, 2010 11:03:18 PM Subject: Re: [R] longer object length is not a multiple of shorter object length - snip - v - 2*x + y + 1 Warning message

[R] Logical vectors

2010-11-03 Thread Stephen Liu
Hi folks, Pls help me to understand follow; An Introduction to R 2.4 Logical vectors http://cran.r-project.org/doc/manuals/R-intro.html#R-and-statistics 1) x [1] 1 2 3 4 5 temp - x != 1 temp [1] FALSE TRUE TRUE TRUE TRUE 2) x [1] 1 2 3 4 5 temp - x 1 temp [1] FALSE TRUE TRUE

[R] R on ESS

2010-09-17 Thread Stephen Liu
Hi folks, Debian 504 64-bit Emacs Version 22.1.1 I have Emacs+ESS running on the box. R can work on ESS. But the fonts on the menu bar (top) of Emacs are NOT clear, difficult to read, grey foreground. I have been googling around for solution without result. Please help. TIA B.R.

[R] How to check the available of a package on R repo

2010-09-17 Thread Stephen Liu
Hi folks, Debian 504 64-bit What is the correct syntax to check the available of a package on R repo? available.packages(emacs, OS_type=linux) Warning: unable to access index for repository emacs Package Version Priority Depends Imports LinkingTo Suggests Enhances OS_type License

Re: [R] How to check the available of a package on R repo

2010-09-17 Thread Stephen Liu
Hi Erik, I try to find out whether Emacs/ESS is available on R repo. What is its versiohn? B.R. Stephen L - Original Message From: Erik Iverson er...@ccbr.umn.edu To: Stephen Liu sati...@yahoo.com Cc: r-help@r-project.org Sent: Sat, September 18, 2010 12:01:47 PM Subject: Re: [R

Re: [R] R on ESS (SOLVED)

2010-09-17 Thread Stephen Liu
Hi Erik, I have Emacs 22 upgraded to Emacs 23. The latter is available on Debian backport repo. The menu is very clear and easy to read. Thanks B.R. Stephen L - Original Message From: Erik Iverson er...@ccbr.umn.edu To: Stephen Liu sati...@yahoo.com Cc: r-help@r-project.org Sent

[R] help manual on R on ESS

2010-09-17 Thread Stephen Liu
Hi folks, R on ESS Why it is unable to pop up help manual on R on ESS? ?layout Error in help(layout, htmlhelp = FALSE) : unused argument(s) (htmlhelp = FALS ?plot Error in help(plot, htmlhelp = FALSE) : unused argument(s) (htmlhelp = FALSE) etc. But they work on R console and popup

[R] Was the package installed correctly

2010-09-16 Thread Stephen Liu
Hi folks, On R install.packages(TeachingDemos, dependencies=TRUE) .. installing to /usr/local/lib/R/site-library/mapproj/libs ** R ** inst ** preparing package for lazy loading ** help *** installing help indices ** building package indices ... ** testing if installed package can be

Re: [R] Was the package installed correctly

2010-09-16 Thread Stephen Liu
The tklplot package is not so explicit, though. Best of luck. -Original Message- From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On Behalf Of Stephen Liu Sent: Friday, 17 September 2010 10:41 AM To: r-help Subject: [R] Was the package installed correctly Hi folks

Re: [R] Was the package installed correctly (SOLVED)

2010-09-16 Thread Stephen Liu
/downloaded_packages’ Thanks B.R. Stephen L - Original Message From: Stephen Liu sati...@yahoo.com To: r-help@r-project.org Sent: Fri, September 17, 2010 10:17:13 AM Subject: Re: [R] Was the package installed correctly Hi Bill, Thanks for your advice. OS - Debian 504 64-bit

Re: [R] About choosing file

2010-09-15 Thread Stephen Liu
M-x R~ B.R. Stephen L - Original Message From: Uwe Ligges lig...@statistik.tu-dortmund.de To: Stephen Liu sati...@yahoo.com Cc: R-help@r-project.org Sent: Wed, September 15, 2010 9:20:48 PM Subject: Re: [R] About choosing file On 26.08.2010 09:50, Stephen Liu wrote

Re: [R] About choosing file

2010-09-15 Thread Stephen Liu
] jranke_cran.asc M-x R M-x R~ B.R. Stephen L - Original Message From: Uwe Ligges lig...@statistik.tu-dortmund.de Cc: R-help@r-project.org Sent: Wed, September 15, 2010 9:20:48 PM Subject: Re: [R] About choosing file On 26.08.2010 09:50, Stephen Liu wrote: Hi folks, Following

  1   2   >