본문 바로가기

Programming/R Script

How to show the symbol of Angstrom [R] How to show the symbol of Angstrom ?Paul Murrell p.murrell at auckland.ac.nz Tue Sep 14 02:39:32 CEST 2004Previous message: [R] How to show the symbol of Angstrom ?Next message: [R] How to show the symbol of Angstrom ?Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]Hi xiang li wrote: > Also, I am wondering if there is any source where the expressions of > many symbols are colle.. 더보기
R - Regular Expression : gsub 정규편식(regular expression)은 text parsing에 있어서 매우 중요한 방법론이다. 지금처럼 문자 위주의 정보가 넘칠 때에는 꼭 필요한 필수요소이고... R을 사용하다가... 자주 까먹어서.. 이참에 메모를 남기자. a < 안에 잇는 숫자를 찾아 capture 하고자한다.이 때 문자 패턴 중 ( ) 가 3개 있는데 a에 ( ) 3개가 매칭 될 때, 이를 두 번째 ( )의 내용으로 치환한다... 는 것이다. 전체를 매칭시키면서 세 부분으로 나누고 이 전체를 두번째 부분으로 바꾼다... 좀 돌아가는 느낌은 있지만 기본 R 함수에서 문자 capture 하는 방법이다. 이외에도 gsubfn library의 strapplyc fucntion을 통해 쉽게 찾는 방법도 있으나, 최대한 기본 값을 .. 더보기
3D plot using rgl package in R to describe probabilty of coin tosses 3D plot using rgl package in R to describe probabilty of coin tosses 정리가 아주 잘되어 있는 링크를 발견하고 따라서 돌려봤다. http://alphaism.wordpress.com/2012/04/20/exploring-optimal-f/ 지금 joint probability에 관한 내용을 하고 있고, 그림도 삼차원으로 나타내려 했는데, 적절한 예제인 듯하다. 3D window를 통해서 마우스로 회전/확대 등의 조작도 가능하다. 좋은 세상이구만; 내가 뒤쳐져 있지만. # Two components functionTCOpt.f 더보기
[R] Apply Family Apply 를 공부하자~! http://nsaunders.wordpress.com/2010/08/20/a-brief-introduction-to-apply-in-r/ http://blog.naver.com/heeju378?Redirect=Log&logNo=150174410443 더보기
[R] Adjust P-value for Multiple Comparisons p.adjust {stats} provides several correction methods, where "bonferroni" is the most conservative correction, although "holm" is the default method of p.adjust and also valid under arbitrary assumptions. set.seed(123) x 더보기