[R] problem with using tm

2010-07-19 Thread cob

I have R installed on my computer and want to use the tm module. I selected a
CRAN mirror then selected tm on the install package menu. This is the
response I got:

also installing the dependency ‘slam’

trying URL
'http://cran.mirrors.hoobly.com/bin/windows/contrib/2.11/slam_0.1-13.zip'
Content type 'application/zip' length 41992 bytes (41 Kb)
opened URL
downloaded 41 Kb

trying URL
'http://cran.mirrors.hoobly.com/bin/windows/contrib/2.11/tm_0.5-3.zip'
Content type 'application/zip' length 671517 bytes (655 Kb)
opened URL
downloaded 655 Kb

package 'slam' successfully unpacked and MD5 sums checked
Error in normalizePath(path) : 
  path[1]="C:\Program Files\R\R-2.11.1\library/slam": The system cannot find
the file specified


Then when I try to do a library(tm) I get the following:

Error in library(tm) : there is no package called 'tm'

Does anybody have any insight into what I'm doing wrong here?



-- 
View this message in context: 
http://r.789695.n4.nabble.com/problem-with-using-tm-tp2293581p2293581.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 with using tm

2010-07-19 Thread cob

Thanks for the response. I used this command:
.libPaths(c("C:\\Program Files\\R\\R-2.11.1\\library\\slam",.libPaths()))

but I still get the same response from the system (as in my first post) when
I try to library("tm")
-- 
View this message in context: 
http://r.789695.n4.nabble.com/problem-with-using-tm-tp2293581p2294913.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 with using tm

2010-07-19 Thread cob

I found these posts which talk about the same problem:
https://stat.ethz.ch/pipermail/r-help/2009-April/194808.html

I then tried temporarily disabling my Norton protection but it made no
difference. :(
-- 
View this message in context: 
http://r.789695.n4.nabble.com/problem-with-using-tm-tp2293581p2294917.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] wordStem problems in R 2.9, Fedora 11; Linux Kernel 2.6.29.5-191.fc11.i586

2009-07-07 Thread Reitsma, Rene - COB
Dear All,

I just updated from Fedora 9 to Fedora 11, kernel version
2.6.29.5-191.fc11.i586. I'm running R 2.9.

I successfully installed package Rstem from source (it always ran fine
for me in F9). However:

> wordStem(c("This","is","a","test"))
Error in wordStem(c("This", "is", "a", "test")) : 
  VECTOR_ELT() can only be applied to a 'list', not a 'character'

Any idea what causes this / how I can fix this?

RR

__
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] wordStem problems in R 2.9, Fedora 11; Linux Kernel 2.6.29.5-191.fc11.i586

2009-07-09 Thread Reitsma, Rene - COB
Duncan,

Thanks for helping. I reinstalled Rstem from source (using the omegahat
URL) and this time things are working. :-)

RR

 

-Original Message-
From: Duncan Temple Lang [mailto:dun...@wald.ucdavis.edu] 
Sent: Tuesday, July 07, 2009 5:33 PM
To: Reitsma, Rene - COB
Cc: r-help@r-project.org
Subject: Re: [R] wordStem problems in R 2.9, Fedora 11; Linux Kernel
2.6.29.5-191.fc11.i586

Hi Rene

   Can you tell us the version of the Rstem package you installed.
Rstem_0.3-1 from
  http://www.omegahat.org/Rstem/

or

 install.packages("Rstem", repos = "http://www.omegahat.org/R";)

work fine for me.

I seem to recall this being a problem with an older version of Rstem.

   D.

Reitsma, Rene - COB wrote:
> Dear All,
> 
> I just updated from Fedora 9 to Fedora 11, kernel version
> 2.6.29.5-191.fc11.i586. I'm running R 2.9.
> 
> I successfully installed package Rstem from source (it always ran fine
> for me in F9). However:
> 
>> wordStem(c("This","is","a","test"))
> Error in wordStem(c("This", "is", "a", "test")) : 
>   VECTOR_ELT() can only be applied to a 'list', not a 'character'
> 
> Any idea what causes this / how I can fix this?
> 
> RR
> 
> __
> R-help@r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide
http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.

__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


[R] logical operators in 'subset'

2008-11-13 Thread Reitsma, Rene - COB
Dear All, 

Am I correct in believing that logical operators such as && and ||
cannot be used as part of 
a 'subset' logical expression?

Example:

>foo = as.data.frame(matrix(c(1:9), nrow=3, ncol=3,
dimnames=list(c("r1","r2","r3"),c("c1","c2","c3"

>foo
   c1 c2 c3
r1  1  4  7
r2  2  5  8
r3  3  6  9

>subset(foo, c1 > 1)
   c1 c2 c3
r2  2  5  8
r3  3  6  9

>subset(foo, c2 > 5)
   c1 c2 c3
r3  3  6  9

However,

>subset(foo, c1 > 1 && c2 > 5)
[1] c1 c2 c3
<0 rows> (or 0-length row.names)

RR

__
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 refer to a list member by variable

2008-12-01 Thread Reitsma, Rene - COB
Dear All,

I'm hoping one of you can help me with the following R problem. I'm
trying to refer to a member of a list by variable. However, this seems
not to work:

foo=list(first=c(1:10),second=c(11:20))

> foo$first
 [1]  1  2  3  4  5  6  7  8  9 10

> foo$"first"
 [1]  1  2  3  4  5  6  7  8  9 10

> goo=c("first")

> foo$goo
NULL

> foo$goo[1]
NULL

I'm sure I'm missing something quite elementary. Perhaps you can help?

RR

__
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.