Re: [R] Problem in reading Excel spreadsheets

2010-12-01 Thread Stephen Liu
iteXLS (write), which depend on Perl 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 xl

Re: [R] Problem in reading Excel spreadsheets

2010-12-01 Thread Stephen Liu
cel 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] 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 C:\\Users\\satimiswin7

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 th

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 th

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 els

Re: [R] Where is gdata?

2010-11-29 Thread Stephen Liu
dUnitsTable of conversions between Intertional Standard (SI) and US - end - B.R. Stephen L From: Gabor Grothendieck To: Stephen Liu Cc: r-help Sent: Mon, November 29, 2010 11:31:18 PM Subject: Re: [R] Where is gda

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 per

Re: [R] Where is gdata?

2010-11-29 Thread Stephen Liu
R commands. 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. > Y

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

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 Cc: Spencer Graves ; r-help Sent: Mon, November 29,

Re: [R] Where is gdata?

2010-11-28 Thread Stephen Liu
u download and install one of these two versions of perl and still have the problem, please report what you've done 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, Step

Re: [R] How to remove a package.

2010-11-28 Thread Stephen Liu
ncluding those in package "Ecdat"? NOt only Ecdat separately. B.R. Stephen L From: David Winsemius Cc: Stefan Grosse ; r-help@r-project.org Sent: Sun, November 28, 2010 11:16:34 PM Subject: Re: [R] How to remove a package. On Nov 28, 2010, a

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

2010-11-28 Thread Stephen Liu
ct.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 fi

Re: [R] How to remove a package.

2010-11-28 Thread Stephen Liu
object 'Caschool' not found > MCAS Error: object 'MCAS' not found Please help. TIA B.R. Stephen L From: Stefan Grosse 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

[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 http://www.R

[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] 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]] __ R-help@r-project.org

[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 > librar

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] 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 http://www.mail-ar

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

2010-11-26 Thread Stephen Liu
ning DNase whether the output is the content of the data set OR from the file created. Other advice noted. Thanks B.R. Stephen L From: Philipp Pagel To: r-help@r-project.org Sent: Fri, November 26, 2010 5:07:40 PM Subject: Re: [R] How to save a data set a

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

2010-11-25 Thread Stephen Liu
ail? Thanks > Right. Try reading the Posting Guide which among many other useful > things has a method for saving objects in text format. Yes. I'm curious to know why the .txt file created in this way can't be read with Notpad and WordPad? B.R. Stephen L - Original

[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] 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

[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",

[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 <- data.frame(Year,Yield,C

[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 https://stat.ethz.

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 To: Stephen Liu 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 the package and then load the data

[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] How to start default browser on R

2010-11-22 Thread Stephen Liu
o; On R (Windows) Packages - Load package B.R. Stephen L - Original Message From: David Scott To: Stephen Liu Cc: Ista Zahn ; "r-help@r-project.org" Sent: Tue, November 23, 2010 12:00:36 PM Subject: Re: [R] How to start default browser on R On 23/11/10 16:59, Stephen

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

2010-11-22 Thread Stephen Liu
--- Original Message ---- From: Ista Zahn To: Stephen Liu Cc: David Scott ; "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 almost certainly do not want t

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

2010-11-22 Thread Stephen Liu
n't start 2) browseURL("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 To: Stephen Liu Cc: "r

[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 com

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 To: r-help Sent: Mon, November 22, 2010 8:11:39 PM Subject: [R] Rexcel Hello I

Re: [R] Problem on running update

2010-11-21 Thread Stephen Liu
7; successfully unpacked and MD5 sums checked The downloaded packages are in C:\Users\satimiswin764\AppData\Local\Temp\RtmpM8LYDq\downloaded_packages > Update is now working. Lot of thanks for your detail advice and time spent. B.R. Stephen L - Original Message From:

Re: [R] Problem on running update

2010-11-21 Thread Stephen Liu
t;http://cran.r-project.org";) 1: update.packages(repos = "http://cran.r-project.org";) 2: old.packages(lib.loc = lib.loc, contriburl = contriburl, method = method, a 3: NROW(instPkgs) 4: installed.packages(lib.loc = lib.loc) 5: .readPkgDesc(lib, fields) Selection: 1 Called from: old.p

Re: [R] Problem on running update

2010-11-21 Thread Stephen Liu
numeric(0) named numeric(0) Where are the above files? B.R. Stephen L - Original Message ---- From: Martin Morgan To: Stephen Liu 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: &g

[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 li

[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 pa

Re: [R] Import and export .xls

2010-11-20 Thread Stephen Liu
fly. 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 To: Stephen Liu Cc: r-help@r-project.org Sent: Sat, November 20, 2010 11:58:49 PM Subject: Re: [R] Im

[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 __ R-help@r-pr

Re: [R] (no subject)

2010-11-20 Thread Stephen Liu
: Michael Bedward To: Stephen Liu 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, Stephen Liu wrote: > Hi fo

[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 th

Re: [R] An empty grey diagram

2010-11-20 Thread Stephen Liu
displayed 2) > ToothGrowth > attach(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: Jo

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 To: Stephen Liu Cc: r-help@r-project.org

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 To: Stephen Liu Cc: r-help@r-project.org Sent: Sat, November 20, 2010 12:57:41 PM Subject: Re: [R] An

Re: [R] An empty grey diagram

2010-11-19 Thread Stephen Liu
h B.R. Stephen L - Original Message From: David Winsemius To: Stephen Liu Cc: Joshua Wiley ; 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, Stephen Liu wrote: > Hi Josh, > > >> with(T

Re: [R] An empty grey diagram

2010-11-19 Thread Stephen Liu
ine(lm(len ~ dose, data = ToothGrowth)) Error in int_abline(a = a, b = b, h = h, v = v, untf = untf, ...) : plot.new has not been called yet Sorry, still fail only an empty grey background diagram displayed. B.R. Stephen L - Original Message From: Joshua Wiley To: Stephen Liu Cc:

Re: [R] An empty grey diagram

2010-11-19 Thread Stephen Liu
    cairo     TRUE    FALSE TRUE TRUE TRUE TRUE    FALSE B.R. Stephen L   - Original Message ---- From: Joshua Wiley To: Stephen Liu 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 wher

[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 wi

Re: [R] About R and RKward

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

[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 REx

Re: [R] About upgrade R

2010-11-14 Thread Stephen Liu
is is a 64bit Win7. Can I delete the 32bit R? Start MS Excel 2007 -> start R 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 To: Stephen Liu

Re: [R] About upgrade R

2010-11-14 Thread Stephen Liu
;> >> Upgrading is mentioned in the FAQs / R for Windows FAQs. >> >> If you have your additionally installed packages in a separate library (not >> the R base library) you can simply run >> >> update.packages(checkBuilt=TRUE) >> >> If not ... >> &

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 To: Uwe Ligges Cc: Stephen Liu ; r-help@r-project.org Sent: Mon, November 15, 2010 12:59:22 AM S

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

2010-11-14 Thread Stephen Liu
n L - Original Message From: Joshua Wiley To: Stephen Liu 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, it is likely not a protected/hidden file issue. At

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

2010-11-14 Thread Stephen Liu
ge From: Duncan Murdoch To: Joshua Wiley Cc: Stephen Liu ; 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: > On Sun, Nov 14, 2010 at 3:40 AM, Stephen Li

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

2010-11-14 Thread Stephen Liu
rd...@wlandres.net" To: r-help@r-project.org Sent: Mon, November 15, 2010 12:58:51 AM Subject: Re: [R] How to permanently remove [Previously saved workspace re On 14-Nov-10 16:43:18, Duncan Murdoch wrote: > On 14/11/2010 10:42 AM, Joshua Wiley wrote: >> On Sun, Nov 14, 2010 at 3:40 AM, S

Re: [R] About upgrade R

2010-11-14 Thread Stephen Liu
different directories. rcom was installed on repo. I'll run; > update.packages(checkBuilt=TRUE) In the worst case I just reinstall abovementioned packages. Any further advice before I start? Thanks B.R. Stephen L - Original Message From: Uwe Ligges To: Stephen

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 To: Stephen Liu Cc: r-help@r-project.org Sent: Sun, November 14, 2010 11:02:00 PM Subject: Re: [R] Problem on update On 14.11.2010 15:34, Stephen Liu wrote: >

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

2010-11-14 Thread Stephen Liu
h I see. Thanks B.R. Stephen L - Original Message From: Joshua Wiley To: Stephen Liu 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 wrote

[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) http://www.r-statistics.

[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 proble

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

2010-11-14 Thread Stephen Liu
[33] "Templates" [34] "Videos" .Rhistory and .RDate are there. But I can't find .RDate on Windows Exp

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

2010-11-14 Thread Stephen Liu
;C:\U" -> Windows Explorer delete .Rhistory manually Start R [Previously saved workspace restored] is still there Please advise. TIA B.R. Stephen L - Original Message From: Stephen Liu To: r-help@r-project.org Sent: Sun, November 14, 2010 2:33:21 PM Subject: [R]

[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 B

[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 fo

Re: [R] About 5.1 Arrays

2010-11-08 Thread Stephen Liu
ce and effort. B.R. Stephen L - Original Message From: Joshua Wiley To: Stephen Liu 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 wrote: > Hi Joshua, > > Thanks for your advice

Re: [R] About 5.1 Arrays

2010-11-06 Thread Stephen Liu
dlund To: r-help@r-project.org Sent: Sun, November 7, 2010 2:08:04 AM 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: Saturday, November 06, 2010 7:38 AM &g

Re: [R] Where to get rcom for Linux

2010-11-06 Thread Stephen Liu
- Original Message From: Shige Song To: Stephen Liu 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 for unable to find it afte

[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 __ R-help@r-proje

Re: [R] About 5.1 Arrays

2010-11-06 Thread Stephen Liu
258 11 [3,]369 12 , , 2 [,1] [,2] [,3] [,4] [1,] 13 16 19 22 [2,] 14 17 20 23 [3,] 15 18 21 24 Correct. If I'm wrong, pls correct me. Thanks B.R. Stephen - Original Message From: Joshua Wiley To: Stephen Liu Cc: r-hel

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-05 Thread Stephen Liu
riginal Message From: Daniel Nordlund 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, Nov

Re: [R] About 5.1 Arrays

2010-11-05 Thread Stephen Liu
. =24 entries in a and the data vector holds them in the order a[1,1,1], a[2,1,1], ..., a[2,4,2], a[3,4,2]." the order a[1,1,1], a[2,1,1], ..., a[2,4,2], a[3,4,2]? What does it mean "the order a[1,1,1], a[2,1,1], ..., a[2,4,2], a[3,4,2]"? Thanks B.R. Stephen ----- Origi

[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’ Fai

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 d

[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 th

Re: [R] setting attributes (SOLVED)

2010-11-04 Thread Stephen Liu
From: Erik Iverson 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 starting >out.

Re: [R] setting attributes (SOLVED)

2010-11-04 Thread Stephen Liu
888888 8 [10,]999999999 9 > 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 ste

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 To: Stephen Liu Cc: r-help@r-project.org Sent: Fri, November 5, 2010 12:18:23 PM Subject: R

[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 o

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" To: r-help@r-project.org Cc: Stephen Liu ; R-Devel Sent: Thu, November 4, 2010 5:08:42 PM Subject: Re: [R] Logical vectors On

Re: [R] Logical vectors

2010-11-04 Thread Stephen Liu
1] TRUE FALSE FALSE FALSE FALSE I got it thanks. B.R. Stephen L - Original Message From: Gerrit Eichner To: Stephen Liu 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

Re: [R] Logical vectors

2010-11-04 Thread Stephen Liu
R. Stephen L - Original Message ---- From: Joshua Wiley To: Stephen Liu 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 wrote: > Hi folks, > > Pls help me to understand follow; > >

Re: [R] Logical vectors

2010-11-04 Thread Stephen Liu
FALSE FALSE FALSE B.R. Stephen L - Original Message From: Gerrit Eichner To: Stephen Liu 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 >>

[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 TRU

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

2010-11-03 Thread Stephen Liu
- Original Message From: David Winsemius To: Stephen Liu 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: >> In 2

[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?

[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 pop

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 To: Stephen Liu Cc: r-help@r-project.org Sent: Sat, September 18, 2010 11:08:17

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 To: Stephen Liu Cc: r-help@r-project.org Sent: Sat, September 18, 2010 12:01:47 PM Subject: Re: [R] How to check the available of a

[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

[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. Stephen

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

2010-09-16 Thread Stephen Liu
packages are in ‘/tmp/RtmpYUqOHq/downloaded_packages’ Thanks B.R. Stephen L - Original Message From: Stephen Liu 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 - Debi

Re: [R] Was the package installed correctly

2010-09-16 Thread Stephen Liu
/rgl.neoscientists.org 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 pac

[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 loa

Re: [R] About choosing file

2010-09-15 Thread Stephen Liu
" "Desktop" "FourPlots01.png" "hist.png" >[5] "jranke_cran.asc" "M-x R" "M-x R~" > > >B.R. >Stephen L > > > > > > > >- Original Message >From: Uwe Ligges &

Re: [R] About choosing file

2010-09-15 Thread Stephen Liu
rPlots01.png" "hist.png" [5] "jranke_cran.asc" "M-x R" "M-x R~" B.R. Stephen L - Original Message From: Uwe Ligges To: Stephen Liu Cc: R-help@r-project.org Sent: Wed, September 15, 2010 9:20:48 PM Subject: Re: [R] About choos

  1   2   >