짧은 대답은 당신이 기능 xts:::align.time.xts
를 찾고 있다는 것입니다.
더 이상 대답
는
methods
를 호출하여
align.time
을 위해 존재하는 방법을 찾을 수 있다는 것입니다 :
> methods(align.time)
[1] align.time.POSIXct* align.time.POSIXlt* align.time.xts*
Non-visible functions are asterisked
이 네임 스페이스에서 내 보낸되지 않는 방법 align.time.xts
이 있음을 알려줍니다. 이 시점에서 당신은 패키지 xts
에서 찾을 수 있습니다 추측 아마 수 있지만 getAnywhere
으로 확인할 수 있습니다 :
> getAnywhere("align.time.xts")
A single object matching 'align.time.xts' was found
It was found in the following places
registered S3 method for align.time from namespace xts
namespace:xts
with value
function (x, n = 60, ...)
{
if (n <= 0)
stop("'n' must be positive")
.xts(x, .index(x) + (n - .index(x)%%n), tzone = indexTZ(x),
tclass = indexClass(x))
}
<environment: namespace:xts>
당신은 물론, 소스를 직접 읽을 수 있지만 기능이기 때문에 내보낼 수 없습니다, 당신은 package:::function
(즉, 세 가지 콜론)를 사용해야합니다
> xts:::align.time.xts
function (x, n = 60, ...)
{
if (n <= 0)
stop("'n' must be positive")
.xts(x, .index(x) + (n - .index(x)%%n), tzone = indexTZ(x),
tclass = indexClass(x))
}
<environment: namespace:xts>
참조이 매우 비슷한 질문을 : http://stackoverflow.com/q/5835312/602276 HTTP의 – Andrie
원 7 : // WWW. burns-stat.com/pages/Tutor/R_inferno.pdf를 사용하면 도움이 될 것입니다. 일반적인 함수와 메소드가 무엇인지에 대한 감각. –
@PatrickBurns 감사합니다. 유용한 읽음새처럼 보입니다. –