Yi Yuan
2013-Apr-02 13:12 UTC
[R] R doesn't recognize utils functions, such as arrayIndex( )
Hi all,
When I called arrayIndex(20:23, dim=c(4,3,3)), it says "Error: could not
find function "arrayIndex"in R". So I called
ls("package:utils") to see the
functions inside:
[1] "?"
[2] "adist"
[3] "alarm"
[4] "apropos"
[5] "aregexec"
[6] "argsAnywhere"
[7] "arrangeWindows"
[8] "as.person"
I'm only listing the first 8 results because it has a total of 223 listed
functions,which is too long.
When I looked up utils package, This page
http://astrostatistics.psu.edu/su07/R/html/utils/html/00Index.html shows
exactly the same result, but this page
http://rss.acs.unt.edu/Rdoc/library/R.utils/html/00Index.html shows a
different list and none of the functions listed( such as arrayIndex,
bunzip, doCall) is recognized by R:No documentation for ‘arrayIndex’ in
specified packages and libraries: you could try ‘??arrayIndex’. So I'm
just confused:
1. why does utils package have two different lists of functions?
2. If arrayIndex() comes with utils package, why can't R recognize it ? If
it doesn't come with utils, then what package should I install to use
functions such as arrayIndex, bunzip, doCall,etc. ?
Thanks!
[[alternative HTML version deleted]]
Sarah Goslee
2013-Apr-02 13:16 UTC
[R] R doesn't recognize utils functions, such as arrayIndex( )
Why do you think the utils package and the R.utils package are the same thing? Sarah On Tuesday, April 2, 2013, Yi Yuan wrote:> Hi all, > > When I called arrayIndex(20:23, dim=c(4,3,3)), it says "Error: could not > find function "arrayIndex"in R". So I called ls("package:utils") to see the > functions inside: > [1] "?" > [2] "adist" > [3] "alarm" > [4] "apropos" > [5] "aregexec" > [6] "argsAnywhere" > [7] "arrangeWindows" > [8] "as.person" > I'm only listing the first 8 results because it has a total of 223 listed > functions,which is too long. > > When I looked up utils package, This page > http://astrostatistics.psu.edu/su07/R/html/utils/html/00Index.html shows > exactly the same result, but this page > http://rss.acs.unt.edu/Rdoc/library/R.utils/html/00Index.html shows a > different list and none of the functions listed( such as arrayIndex, > bunzip, doCall) is recognized by R:No documentation for ‘arrayIndex’ in > specified packages and libraries: you could try ‘??arrayIndex’. So I'm > just confused: > > 1. why does utils package have two different lists of functions? > 2. If arrayIndex() comes with utils package, why can't R recognize it ? If > it doesn't come with utils, then what package should I install to use > functions such as arrayIndex, bunzip, doCall,etc. ? > > Thanks! > > [[alternative HTML version deleted]] > >-- Sarah Goslee http://www.stringpage.com http://www.sarahgoslee.com http://www.functionaldiversity.org [[alternative HTML version deleted]]