분류 전체보기

· IT 일반
작성일자 : 2023-09-30 수정일자 : 2023-11-16 Ver 0.1.3 0. Intro Terminal이란 컴퓨터와 사용자간 소통을 위한 인터페이스이다. 이번 글에서는 Mac OS의 CLI라고 할 수 있는 기본적인 Terminal 명령어에 대해서 정리해보려한다. 1. 기본 명령어 - ls (List): 현재 디렉토리에 있는 파일과 폴더를 나열 ls [Mac Terminal] ls 작성일자 : 2023-11-16 Ver 0.1.1 파일 및 디렉토리 리스트 ls 현재 디렉토리에 파일 및 디렉토리 리스트 ls . 해당 파일 확인 ls [파일명] 해당 디렉토리 내부 파일 및 디렉토리 리스트 ls [디렉토리 이름] junius96.com - cd (Change Directory): 디렉토리를 변경 cd..
· R
정의 function_name = function ( arguments ) body Editor program is useful to write a long program including R function. R program provides an editor but there are several editors or IDEs freely available for R programming. (for example, Tinn-R, RStudio) 함수의 정의 rm( list = ls() ) my.mean = function( data ) sum( data ) / length( data ) ls() ## [1] "my.mean" my.mean ## function( data ) sum( data ) / l..
· R
작성일자 : 2023-09-29 Ver 0.1.1 if() function if( cond ) expr if( cond ) cond.expr else alt.expr x = 1:5 x ## [1] 1 2 3 4 5 y = -2:2 y ## [1] -2 -1 0 1 2 if ( any( x < 0 ) ) print( x ) # print() is not executed if ( any( y < 0 ) ) print( abs( y ) ) # print() is executed ## [1] 2 1 0 1 2 if ( any( y < 0 ) ) { print( abs( y ) ) print( 'y contains negative values' ) } ## [1] 2 1 0 1 2 ## [1] "y contain..
· R
작성일자 : 2023-09-29 Ver 0.1.1 Data frame은 자료분석을 위해 만들어진 객체형이다. Data frame은 여러면에서 matrix 및 list와 유사한 형태를 지닌다 Data frame의 행(row)은 샘플(observations)에 대응되며 열(column)은 변수(variables)에 대응된다. Data frame 만들기: read.table() data1 = read.table( 'files/data1.txt' ) data1 ## V1 V2 V3 V4 ## 1 no name age sex ## 2 1 LEE 55 M ## 3 2 PARK 47 F ## 4 3 SO 35 M ## 5 4 KIM 26 F ## 6 5 YOON 29 M data2 = read.table( 'file..
Unlimited Jun
'분류 전체보기' 카테고리의 글 목록 (55 Page)