본문 바로가기
3. 패키지/2) 패키지 활용

[R] 패키지 안에 있는 함수 목록 보는 방법

by makhimh 2019. 12. 21.
반응형

[R] 패키지 안에 있는 함수 목록 보는 방법


R에서 패키지를 로드하여 몇개의 함수들을 사용하다 보면 이런 궁금증이 생깁니다. 패키지에서 제공하는 모든 함수 목록을 볼 수는 없을까?


방법이 있습니다. 예를들어 base 패키지에서 제공하는 모든 함수를 보고 싶다면 아래와 같은 명령어를 입력해주면 됩니다. 


ls("package:base")


먼저 함수의 개수 먼저 확인해봅시다. 


> length(ls("package:base"))

[1] 1225


함수가 무려 1225개나 있네요. 한번 실행...해봅시다. ls("package:base") 라고 입력하시면 예쁘지 않게 뜰거에요. 아래와 같은 명령어로 대신합시다. 엑셀과 같은 표를 출력해줍니다. 


> View(ls("package:base"))


1 -

2 -.Date

3 -.POSIXt

4 !

5 !.hexmode

6 !.octmode

7 !=

8 $

9 $.data.frame

10 $.DLLInfo

11 $.package_version

12 $<-

13 $<-.data.frame

14 %%

15 %*%

16 %/%

17 %in%

18 %o%

19 %x%

20 &

21 &&

22 &.hexmode

23 &.octmode

24 (

25 *

26 *.difftime

27 /

28 /.difftime

29 :

30 ::

31 :::

32 @

33 @<-

34 [

35 [.AsIs

36 [.data.frame

37 [.Date

38 [.difftime

39 [.Dlist

40 [.DLLInfoList

41 [.factor

42 [.hexmode

43 [.listof

44 [.noquote

45 [.numeric_version

46 [.octmode

47 [.POSIXct

48 [.POSIXlt

49 [.simple.list

50 [.table

51 [.warnings

52 [[

53 [[.data.frame

54 [[.Date

55 [[.factor

56 [[.numeric_version

57 [[.POSIXct

58 [[.POSIXlt

59 [[<-

60 [[<-.data.frame

61 [[<-.factor

62 [[<-.numeric_version

63 [<-

64 [<-.data.frame

65 [<-.Date

66 [<-.factor

67 [<-.numeric_version

68 [<-.POSIXct

69 [<-.POSIXlt

70 ^

71 {

72 |

73 |.hexmode

74 |.octmode

75 ||

76 ~

77 +

78 +.Date

79 +.POSIXt

80 <

81 <-

82 <<-

83 <=

84 =

85 ==

86 >

87 >=

88 abbreviate

89 abs

90 acos

91 acosh

92 addNA

93 addTaskCallback

94 agrep

95 agrepl

96 alist

97 all

98 all.equal

99 all.equal.character

100 all.equal.default

101 all.equal.environment

102 all.equal.envRefClass

103 all.equal.factor

104 all.equal.formula

105 all.equal.language

106 all.equal.list

107 all.equal.numeric

108 all.equal.POSIXt

109 all.equal.raw

110 all.names

111 all.vars

112 allowInterrupts

113 any

114 anyDuplicated

115 anyDuplicated.array

116 anyDuplicated.data.frame

117 anyDuplicated.default

118 anyDuplicated.matrix

119 anyNA

120 anyNA.numeric_version

121 anyNA.POSIXlt

122 aperm

123 aperm.default

124 aperm.table

125 append

126 apply

127 Arg

128 args

129 array

130 arrayInd

131 as.array

132 as.array.default

133 as.call

134 as.character

135 as.character.condition

136 as.character.Date

137 as.character.default

138 as.character.error

139 as.character.factor

140 as.character.hexmode

141 as.character.numeric_version

142 as.character.octmode

143 as.character.POSIXt

144 as.character.srcref

145 as.complex

146 as.data.frame

147 as.data.frame.array

148 as.data.frame.AsIs

149 as.data.frame.character

150 as.data.frame.complex

151 as.data.frame.data.frame

152 as.data.frame.Date

153 as.data.frame.default

154 as.data.frame.difftime

155 as.data.frame.factor

156 as.data.frame.integer

157 as.data.frame.list

158 as.data.frame.logical

159 as.data.frame.matrix

160 as.data.frame.model.matrix

161 as.data.frame.noquote

162 as.data.frame.numeric

163 as.data.frame.numeric_version

164 as.data.frame.ordered

165 as.data.frame.POSIXct

166 as.data.frame.POSIXlt

167 as.data.frame.raw

168 as.data.frame.table

169 as.data.frame.ts

170 as.data.frame.vector

171 as.Date

172 as.Date.character

173 as.Date.default

174 as.Date.factor

175 as.Date.numeric

176 as.Date.POSIXct

177 as.Date.POSIXlt

178 as.difftime

179 as.double

180 as.double.difftime

181 as.double.POSIXlt

182 as.environment

183 as.expression

184 as.expression.default

185 as.factor

186 as.function

187 as.function.default

188 as.hexmode

189 as.integer

190 as.list

191 as.list.data.frame

192 as.list.Date

193 as.list.default

194 as.list.environment

195 as.list.factor

196 as.list.function

197 as.list.numeric_version

198 as.list.POSIXct

199 as.list.POSIXlt

200 as.logical

201 as.logical.factor

202 as.matrix

203 as.matrix.data.frame

204 as.matrix.default

205 as.matrix.noquote

206 as.matrix.POSIXlt

207 as.name

208 as.null

209 as.null.default

210 as.numeric

211 as.numeric_version

212 as.octmode

213 as.ordered

214 as.package_version

215 as.pairlist

216 as.POSIXct

217 as.POSIXct.Date

218 as.POSIXct.default

219 as.POSIXct.numeric

220 as.POSIXct.POSIXlt

221 as.POSIXlt

222 as.POSIXlt.character

223 as.POSIXlt.Date

224 as.POSIXlt.default

225 as.POSIXlt.factor

226 as.POSIXlt.numeric

227 as.POSIXlt.POSIXct

228 as.qr

229 as.raw

230 as.single

231 as.single.default

232 as.symbol

233 as.table

234 as.table.default

235 as.vector

236 as.vector.factor

237 asin

238 asinh

239 asNamespace

240 asS3

241 asS4

242 assign

243 atan

244 atan2

245 atanh

246 attach

247 attachNamespace

248 attr

249 attr.all.equal

250 attr<-

251 attributes

252 attributes<-

253 autoload

254 autoloader

255 backsolve

256 baseenv

257 basename

258 besselI

259 besselJ

260 besselK

261 besselY

262 beta

263 bindingIsActive

264 bindingIsLocked

265 bindtextdomain

266 bitwAnd

267 bitwNot

268 bitwOr

269 bitwShiftL

270 bitwShiftR

271 bitwXor

272 body

273 body<-

274 bquote

275 break

276 browser

277 browserCondition

278 browserSetDebug

279 browserText

280 builtins

281 by

282 by.data.frame

283 by.default

284 bzfile

285 c

286 c.Date

287 c.difftime

288 c.noquote

289 c.numeric_version

290 c.POSIXct

291 c.POSIXlt

292 c.warnings

293 call

294 callCC

295 capabilities

296 casefold

297 cat

298 cbind

299 cbind.data.frame

300 ceiling

301 char.expand

302 character

303 charmatch

304 charToRaw

305 chartr

306 check_tzones

307 chkDots

308 chol

309 chol.default

310 chol2inv

311 choose

312 class

313 class<-

314 clearPushBack

315 close

316 close.connection

317 close.srcfile

318 close.srcfilealias

319 closeAllConnections

320 col

321 colMeans

322 colnames

323 colnames<-

324 colSums

325 commandArgs

326 comment

327 comment<-

328 complex

329 computeRestarts

330 conditionCall

331 conditionCall.condition

332 conditionMessage

333 conditionMessage.condition

334 conflicts

335 Conj

336 contributors

337 cos

338 cosh

339 cospi

340 crossprod

341 Cstack_info

342 cummax

343 cummin

344 cumprod

345 cumsum

346 curlGetHeaders

347 cut

348 cut.Date

349 cut.default

350 cut.POSIXt

351 data.class

352 data.frame

353 data.matrix

354 date

355 debug

356 debuggingState

357 debugonce

358 default.stringsAsFactors

359 delayedAssign

360 deparse

361 det

362 detach

363 determinant

364 determinant.matrix

365 dget

366 diag

367 diag<-

368 diff

369 diff.Date

370 diff.default

371 diff.difftime

372 diff.POSIXt

373 difftime

374 digamma

375 dim

376 dim.data.frame

377 dim<-

378 dimnames

379 dimnames.data.frame

380 dimnames<-

381 dimnames<-.data.frame

382 dir

383 dir.create

384 dir.exists

385 dirname

386 do.call

387 dontCheck

388 double

389 dput

390 dQuote

391 drop

392 droplevels

393 droplevels.data.frame

394 droplevels.factor

395 dump

396 duplicated

397 duplicated.array

398 duplicated.data.frame

399 duplicated.default

400 duplicated.matrix

401 duplicated.numeric_version

402 duplicated.POSIXlt

403 duplicated.warnings

404 dyn.load

405 dyn.unload

406 dynGet

407 eapply

408 eigen

409 emptyenv

410 enc2native

411 enc2utf8

412 encodeString

413 Encoding

414 Encoding<-

415 endsWith

416 enquote

417 env.profile

418 environment

419 environment<-

420 environmentIsLocked

421 environmentName

422 eval

423 eval.parent

424 evalq

425 exists

426 exp

427 expand.grid

428 expm1

429 expression

430 extSoftVersion

431 F

432 factor

433 factorial

434 fifo

435 file

436 file.access

437 file.append

438 file.choose

439 file.copy

440 file.create

441 file.exists

442 file.info

443 file.link

444 file.mode

445 file.mtime

446 file.path

447 file.remove

448 file.rename

449 file.show

450 file.size

451 file.symlink

452 Filter

453 Find

454 find.package

455 findInterval

456 findPackageEnv

457 findRestart

458 floor

459 flush

460 flush.connection

461 for

462 force

463 forceAndCall

464 formals

465 formals<-

466 format

467 format.AsIs

468 format.data.frame

469 format.Date

470 format.default

471 format.difftime

472 format.factor

473 format.hexmode

474 format.info

475 format.libraryIQR

476 format.numeric_version

477 format.octmode

478 format.packageInfo

479 format.POSIXct

480 format.POSIXlt

481 format.pval

482 format.summaryDefault

483 formatC

484 formatDL

485 forwardsolve

486 function

487 gamma

488 gc

489 gc.time

490 gcinfo

491 gctorture

492 gctorture2

493 get

494 get0

495 getAllConnections

496 getCallingDLL

497 getCallingDLLe

498 getConnection

499 getDLLRegisteredRoutines

500 getDLLRegisteredRoutines.character

501 getDLLRegisteredRoutines.DLLInfo

502 getElement

503 geterrmessage

504 getExportedValue

505 getHook

506 getLoadedDLLs

507 getNamespace

508 getNamespaceExports

509 getNamespaceImports

510 getNamespaceInfo

511 getNamespaceName

512 getNamespaceUsers

513 getNamespaceVersion

514 getNativeSymbolInfo

515 getOption

516 getRversion

517 getSrcLines

518 getTaskCallbackNames

519 gettext

520 gettextf

521 getwd

522 gl

523 globalenv

524 gregexpr

525 grep

526 grepl

527 grepRaw

528 grouping

529 gsub

530 gzcon

531 gzfile

532 I

533 iconv

534 iconvlist

535 icuGetCollate

536 icuSetCollate

537 identical

538 identity

539 if

540 ifelse

541 Im

542 importIntoEnv

543 inherits

544 integer

545 interaction

546 interactive

547 intersect

548 intToBits

549 intToUtf8

550 inverse.rle

551 invisible

552 invokeRestart

553 invokeRestartInteractively

554 is.array

555 is.atomic

556 is.call

557 is.character

558 is.complex

559 is.data.frame

560 is.double

561 is.element

562 is.environment

563 is.expression

564 is.factor

565 is.finite

566 is.function

567 is.infinite

568 is.integer

569 is.language

570 is.list

571 is.loaded

572 is.logical

573 is.matrix

574 is.na

575 is.na.data.frame

576 is.na.numeric_version

577 is.na.POSIXlt

578 is.na<-

579 is.na<-.default

580 is.na<-.factor

581 is.na<-.numeric_version

582 is.name

583 is.nan

584 is.null

585 is.numeric

586 is.numeric.Date

587 is.numeric.difftime

588 is.numeric.POSIXt

589 is.numeric_version

590 is.object

591 is.ordered

592 is.package_version

593 is.pairlist

594 is.primitive

595 is.qr

596 is.R

597 is.raw

598 is.recursive

599 is.single

600 is.symbol

601 is.table

602 is.unsorted

603 is.vector

604 isatty

605 isBaseNamespace

606 isdebugged

607 isFALSE

608 isIncomplete

609 isNamespace

610 isNamespaceLoaded

611 ISOdate

612 ISOdatetime

613 isOpen

614 isRestart

615 isS4

616 isSeekable

617 isSymmetric

618 isSymmetric.matrix

619 isTRUE

620 jitter

621 julian

622 julian.Date

623 julian.POSIXt

624 kappa

625 kappa.default

626 kappa.lm

627 kappa.qr

628 kronecker

629 l10n_info

630 La.svd

631 La_library

632 La_version

633 labels

634 labels.default

635 lapply

636 last.warning

637 lazyLoad

638 lazyLoadDBexec

639 lazyLoadDBfetch

640 lbeta

641 lchoose

642 length

643 length.POSIXlt

644 length<-

645 length<-.Date

646 length<-.difftime

647 length<-.factor

648 length<-.POSIXct

649 length<-.POSIXlt

650 lengths

651 letters

652 LETTERS

653 levels

654 levels.default

655 levels<-

656 levels<-.factor

657 lfactorial

658 lgamma

659 libcurlVersion

660 library

661 library.dynam

662 library.dynam.unload

663 licence

664 license

665 list

666 list.dirs

667 list.files

668 list2env

669 load

670 loadedNamespaces

671 loadingNamespaceInfo

672 loadNamespace

673 local

674 lockBinding

675 lockEnvironment

676 log

677 log10

678 log1p

679 log2

680 logb

681 logical

682 lower.tri

683 ls

684 make.names

685 make.unique

686 makeActiveBinding

687 Map

688 mapply

689 margin.table

690 mat.or.vec

691 match

692 match.arg

693 match.call

694 match.fun

695 Math.data.frame

696 Math.Date

697 Math.difftime

698 Math.factor

699 Math.POSIXt

700 matrix

701 max

702 max.col

703 mean

704 mean.Date

705 mean.default

706 mean.difftime

707 mean.POSIXct

708 mean.POSIXlt

709 mem.limits

710 memCompress

711 memDecompress

712 memory.profile

713 merge

714 merge.data.frame

715 merge.default

716 message

717 mget

718 min

719 missing

720 Mod

721 mode

722 mode<-

723 month.abb

724 month.name

725 months

726 months.Date

727 months.POSIXt

728 mostattributes<-

729 names

730 names.POSIXlt

731 names<-

732 names<-.POSIXlt

733 namespaceExport

734 namespaceImport

735 namespaceImportClasses

736 namespaceImportFrom

737 namespaceImportMethods

738 nargs

739 nchar

740 ncol

741 NCOL

742 Negate

743 new.env

744 next

745 NextMethod

746 ngettext

747 nlevels

748 noquote

749 norm

750 normalizePath

751 nrow

752 NROW

753 numeric

754 numeric_version

755 nzchar

756 objects

757 oldClass

758 oldClass<-

759 OlsonNames

760 on.exit

761 open

762 open.connection

763 open.srcfile

764 open.srcfilealias

765 open.srcfilecopy

766 Ops.data.frame

767 Ops.Date

768 Ops.difftime

769 Ops.factor

770 Ops.numeric_version

771 Ops.ordered

772 Ops.POSIXt

773 options

774 order

775 ordered

776 outer

777 package_version

778 packageEvent

779 packageHasNamespace

780 packageStartupMessage

781 packBits

782 pairlist

783 parent.env

784 parent.env<-

785 parent.frame

786 parse

787 parseNamespaceFile

788 paste

789 paste0

790 path.expand

791 path.package

792 pcre_config

793 pi

794 pipe

795 pmatch

796 pmax

797 pmax.int

798 pmin

799 pmin.int

800 polyroot

801 pos.to.env

802 Position

803 pretty

804 pretty.default

805 prettyNum

806 print

807 print.AsIs

808 print.by

809 print.condition

810 print.connection

811 print.data.frame

812 print.Date

813 print.default

814 print.difftime

815 print.Dlist

816 print.DLLInfo

817 print.DLLInfoList

818 print.DLLRegisteredRoutines

819 print.eigen

820 print.factor

821 print.function

822 print.hexmode

823 print.libraryIQR

824 print.listof

825 print.NativeRoutineList

826 print.noquote

827 print.numeric_version

828 print.octmode

829 print.packageInfo

830 print.POSIXct

831 print.POSIXlt

832 print.proc_time

833 print.restart

834 print.rle

835 print.simple.list

836 print.srcfile

837 print.srcref

838 print.summary.table

839 print.summary.warnings

840 print.summaryDefault

841 print.table

842 print.warnings

843 prmatrix

844 proc.time

845 prod

846 prop.table

847 provideDimnames

848 psigamma

849 pushBack

850 pushBackLength

851 q

852 qr

853 qr.coef

854 qr.default

855 qr.fitted

856 qr.Q

857 qr.qty

858 qr.qy

859 qr.R

860 qr.resid

861 qr.solve

862 qr.X

863 quarters

864 quarters.Date

865 quarters.POSIXt

866 quit

867 quote

868 R.home

869 R.version

870 R.Version

871 R.version.string

872 R_system_version

873 range

874 range.default

875 rank

876 rapply

877 raw

878 rawConnection

879 rawConnectionValue

880 rawShift

881 rawToBits

882 rawToChar

883 rbind

884 rbind.data.frame

885 rcond

886 Re

887 read.dcf

888 readBin

889 readChar

890 readline

891 readLines

892 readRDS

893 readRenviron

894 Recall

895 Reduce

896 reg.finalizer

897 regexec

898 regexpr

899 registerS3method

900 registerS3methods

901 regmatches

902 regmatches<-

903 remove

904 removeTaskCallback

905 rep

906 rep.Date

907 rep.factor

908 rep.int

909 rep.numeric_version

910 rep.POSIXct

911 rep.POSIXlt

912 rep_len

913 repeat

914 replace

915 replicate

916 require

917 requireNamespace

918 restartDescription

919 restartFormals

920 retracemem

921 return

922 returnValue

923 rev

924 rev.default

925 rle

926 rm

927 RNGkind

928 RNGversion

929 round

930 round.Date

931 round.POSIXt

932 row

933 row.names

934 row.names.data.frame

935 row.names.default

936 row.names<-

937 row.names<-.data.frame

938 row.names<-.default

939 rowMeans

940 rownames

941 rownames<-

942 rowsum

943 rowsum.data.frame

944 rowsum.default

945 rowSums

946 sample

947 sample.int

948 sapply

949 save

950 save.image

951 saveRDS

952 scale

953 scale.default

954 scan

955 search

956 searchpaths

957 seek

958 seek.connection

959 seq

960 seq.Date

961 seq.default

962 seq.int

963 seq.POSIXt

964 seq_along

965 seq_len

966 sequence

967 serialize

968 set.seed

969 setdiff

970 setequal

971 setHook

972 setNamespaceInfo

973 setSessionTimeLimit

974 setTimeLimit

975 setwd

976 shell

977 shell.exec

978 showConnections

979 shQuote

980 sign

981 signalCondition

982 signif

983 simpleCondition

984 simpleError

985 simpleMessage

986 simpleWarning

987 simplify2array

988 sin

989 single

990 sinh

991 sink

992 sink.number

993 sinpi

994 slice.index

995 socketConnection

996 socketSelect

997 solve

998 solve.default

999 solve.qr

1000 sort

1001 sort.default

1002 sort.int

1003 sort.list

1004 sort.POSIXlt

1005 source

1006 split

1007 split.data.frame

1008 split.Date

1009 split.default

1010 split.POSIXct

1011 split<-

1012 split<-.data.frame

1013 split<-.default

1014 sprintf

1015 sqrt

1016 sQuote

1017 srcfile

1018 srcfilealias

1019 srcfilecopy

1020 srcref

1021 standardGeneric

1022 startsWith

1023 stderr

1024 stdin

1025 stdout

1026 stop

1027 stopifnot

1028 storage.mode

1029 storage.mode<-

1030 strftime

1031 strptime

1032 strrep

1033 strsplit

1034 strtoi

1035 strtrim

1036 structure

1037 strwrap

1038 sub

1039 subset

1040 subset.data.frame

1041 subset.default

1042 subset.matrix

1043 substitute

1044 substr

1045 substr<-

1046 substring

1047 substring<-

1048 sum

1049 summary

1050 summary.connection

1051 summary.data.frame

1052 Summary.data.frame

1053 summary.Date

1054 Summary.Date

1055 summary.default

1056 Summary.difftime

1057 summary.factor

1058 Summary.factor

1059 summary.matrix

1060 Summary.numeric_version

1061 Summary.ordered

1062 summary.POSIXct

1063 Summary.POSIXct

1064 summary.POSIXlt

1065 Summary.POSIXlt

1066 summary.proc_time

1067 summary.srcfile

1068 summary.srcref

1069 summary.table

1070 summary.warnings

1071 suppressMessages

1072 suppressPackageStartupMessages

1073 suppressWarnings

1074 suspendInterrupts

1075 svd

1076 sweep

1077 switch

1078 sys.call

1079 sys.calls

1080 Sys.chmod

1081 Sys.Date

1082 sys.frame

1083 sys.frames

1084 sys.function

1085 Sys.getenv

1086 Sys.getlocale

1087 Sys.getpid

1088 Sys.glob

1089 Sys.info

1090 Sys.junction

1091 sys.load.image

1092 Sys.localeconv

1093 sys.nframe

1094 sys.on.exit

1095 sys.parent

1096 sys.parents

1097 Sys.readlink

1098 sys.save.image

1099 Sys.setenv

1100 Sys.setFileTime

1101 Sys.setlocale

1102 Sys.sleep

1103 sys.source

1104 sys.status

1105 Sys.time

1106 Sys.timezone

1107 Sys.umask

1108 Sys.unsetenv

1109 Sys.which

1110 system

1111 system.file

1112 system.time

1113 system2

1114 t

1115 T

1116 t.data.frame

1117 t.default

1118 table

1119 tabulate

1120 tan

1121 tanh

1122 tanpi

1123 tapply

1124 taskCallbackManager

1125 tcrossprod

1126 tempdir

1127 tempfile

1128 testPlatformEquivalence

1129 textConnection

1130 textConnectionValue

1131 tolower

1132 topenv

1133 toString

1134 toString.default

1135 toupper

1136 trace

1137 traceback

1138 tracemem

1139 tracingState

1140 transform

1141 transform.data.frame

1142 transform.default

1143 trigamma

1144 trimws

1145 trunc

1146 trunc.Date

1147 trunc.POSIXt

1148 truncate

1149 truncate.connection

1150 try

1151 tryCatch

1152 typeof

1153 unclass

1154 undebug

1155 union

1156 unique

1157 unique.array

1158 unique.data.frame

1159 unique.default

1160 unique.matrix

1161 unique.numeric_version

1162 unique.POSIXlt

1163 unique.warnings

1164 units

1165 units.difftime

1166 units<-

1167 units<-.difftime

1168 unix.time

1169 unlink

1170 unlist

1171 unloadNamespace

1172 unlockBinding

1173 unname

1174 unserialize

1175 unsplit

1176 untrace

1177 untracemem

1178 unz

1179 upper.tri

1180 url

1181 UseMethod

1182 utf8ToInt

1183 validEnc

1184 validUTF8

1185 vapply

1186 vector

1187 Vectorize

1188 version

1189 warning

1190 warnings

1191 weekdays

1192 weekdays.Date

1193 weekdays.POSIXt

1194 which

1195 which.max

1196 which.min

1197 while

1198 with

1199 with.default

1200 withAutoprint

1201 withCallingHandlers

1202 within

1203 within.data.frame

1204 within.list

1205 withRestarts

1206 withVisible

1207 write

1208 write.dcf

1209 writeBin

1210 writeChar

1211 writeLines

1212 xor

1213 xpdrows.data.frame

1214 xtfrm

1215 xtfrm.AsIs

1216 xtfrm.Date

1217 xtfrm.default

1218 xtfrm.difftime

1219 xtfrm.factor

1220 xtfrm.numeric_version

1221 xtfrm.POSIXct

1222 xtfrm.POSIXlt

1223 xtfrm.Surv

1224 xzfile

1225 zapsmall


반응형

댓글