본문 바로가기

오늘의 코딩/R

(3)
[R] 기초 1. R studio #R스튜디오 구성 메뉴바 단축 아이콘 툴바 스크립트 창 환경 및 히스토리 R 콘솔 dir , Plots , packages , 도움말 # 코드 실행 RUN 버튼 Ctrl + Enter 실행하고 싶은 부분만 드래그하여 Ctrl+Enter #R 패키지 설치하기 메뉴바 - Tools - Install Packages package 탭에서 인스톨 install.packages("패키지 이름") #설치한 패키지 불러오기 library(패키지 이름) #도움말 불러오기 ?패키지 이름 help(패키지이름) 2. R 언어와 문법 -벡터 -행렬 -데이터 프레임 #벡터 c() 벡터 데이터 구조: 하나의 스칼라 값, 혹은 하나 이상의 스칼라 원소들을 갖는 단순한 형태의 집합 (원소: 숫자, 문자, 논리 ..
[R] R 개요 1. R은 오픈소스 통계 분석 도구이다. 상업용 분석 소프트웨어 SAS, SPSS와 달리 R은 오픈소스 소프트웨어이다. 또한 R은 사용자들이 직접 제작한 패키지를 오픈소스로 구할 수 있기 때문에 최근 알고리즘 및 기술 반영이 빠른 편이다. 또한 강격한 시각화 요소를 갖추고 있어 통계 분석 도구로 활용하기 적절하다. 2. R의 역사 통계 프로그래밍 언어 'S' : 1976년 AT&T의 bell labs statistics Group 에서 John Chamber, Rick Becker, Allan Wilks 가 개발. "to turn ideas into software, quickly and faithfully" 1988년 S 의 문법 구조나 언어에 많은 변경이 있었고 객체라는 개념이 도입되며 기존의 코드를..
우분투18에 R 설치하기 https://www.digitalocean.com/community/tutorials/how-to-install-r-on-ubuntu-18-04#step-1-%E2%80%94-installing-r How To Install R on Ubuntu 18.04 | DigitalOcean R is an open-source programming language that specializes in statistical computing and graphics. In this tutorial, we will install R and show how to add packages from the official Comprehensive R Archive Network (CRAN). www.digitalocean.c..