Re: [R] Problems with loading 'wordnet' in a standalone pc

2009-08-25 Thread Kelvin Lam
Thanks Uwe. The wordnet is working now. My previous configuration that causes the error was: R - version 2.9.1 wordnet - version 0.1-4 rJava 0.6-2 After updating rJava to version 0.7-0 everything works now. Uwe Ligges-3 wrote: Looks like nobody answered so far: Kelvin Lam wrote

[R] Problems with loading 'wordnet' in a standalone pc

2009-08-20 Thread Kelvin Lam
Hi group, I have the following error code after submitting library(wordnet) in a standalone pc. rJava is already in place. Error in .jpackage(pkgname,lib.loc=libname) unused argument(s) (lib.loc=libname) Error: .onLoad failed in 'loadNamespace' for 'wordnet' Error: package/namespace load

[R] extracting text from wordnet using synonym()

2009-08-15 Thread Kelvin Lam
Dear group, There are postings on extracting partial string using sub()/gsub()/gsubfn() but I still couldn't figure this one out. Supposed I am pulling the synonyms of help using synonyms(help) from wordnet and get the followings: synonyms(help) [1] c(\aid\, \assist\, \assistance\, \help\)

Re: [R] extracting text from wordnet using synonym()

2009-08-15 Thread Kelvin Lam
...@gmail.com wrote: Try this: Str - c(c(\aid\, \assist\, \assistance\, \help\),         c(\aid\, \assistance\, \help\)) unlist(sapply(Str, function(x)dget(textConnection(x)), USE.NAMES = FALSE)) On Sat, Aug 15, 2009 at 6:33 PM, Kelvin Lam lamk...@gmail.com wrote: Dear group

Re: [R] How to Import Excel file into R 2.9.0 version

2009-08-11 Thread Kelvin Lam
Use odbcConnectExcel() in the RODBC package. rajclinasia wrote: Hi Every one, I have a problem with Reading Excel file into R 2.9.0 version. In older versions it is working with xlsReadWrite package. But in 2.9.0 version there is no package like that. so help me out in this aspect.

[R] re placePatterns() for multiple words replacement in tm

2009-08-11 Thread Kelvin Lam
Hi all, I wonder how you can replace all words that need to be changed using replacePatterns(). The following is my code. I want to replace both abc and def to Yes . However, I can only replace the first occurrence in sample[[1]]. sample[[1]] [1] abc def ghi change - c(abc,def)

Re: [R] re placePatterns() for multiple words replacement in tm

2009-08-11 Thread Kelvin Lam
R function. Ergo, possibility of confusion. Bert Gunter Genentech Nonclinical Biostatisics -Original Message- From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On Behalf Of Kelvin Lam Sent: Tuesday, August 11, 2009 9:43 AM To: r-help@r-project.org

[R] Sorting text docs based on document meta values in tm()

2009-08-10 Thread Kelvin Lam
Hi all, I wonder if there's any way to reshuffle the text collection by the document meta values. For instance, if I have 5 documents that correspond to the following meta data: MetaID Sex Age 0 M38 0 M46 0 F 24 0 F 49 0 F 33 Can I

Re: [R] Entire Organization Switching from SAS to R - Any experience?

2009-07-17 Thread Kelvin Lam
I should elaborate the situation a bit more. We store our data in UNIX and have been using UNIX SAS for our work. My Biostat dept has 40 SAS users from which at most 10 also use R. The Epi/Grad Students/Investigators combine for another 30-40 not-so-frequent SAS users let alone R. So we are