Archive: 2021/3

0

미등록 패키지 연동

12345678910111213141516171819if(!require(remotes)){ install.packages('remotes')} # remotes 가져오는 함수remotes::install_github("profandyfield/discovr")# 설치되지 않는 경우.libPaths()

0

overriding

함수 오버라이딩 개와 고양이 클래스를 따로 생성하여 동물 클래스에 상속받기 울음소리를 오버라이딩 1234567891011121314151617181920212223242526272829303132333435363738394041424344#include <iostream>using namespace std;class Animal{pub

0

Random Game 2

동전 던지기 게임랜덤 함수 활용 1을 입력하면 앞면과 뒷면 중 랜덤하게 출력 0을 입력하면 종료 외 숫자 입력 시 예외출력 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051#include <iostream>#include &l

0

datacamp

##R 코딩 연습 R 코딩이 어렵다고 생각하여 연습하기 위해 datacamp 링크 저장 https://www.datacamp.com/users/sign_in?redirect=https%3A%2F%2Flearn.datacamp.com%2Fcourses

0

twitter API prac

트위터 API 인증 https://apps.twitter.com 회원가입 한 뒤 create an app 클릭 후 진행 rtweet 패키지1234# install.packages("rtweet")library(rtweet)library(dplyr)library(ggplot2) search Tweets 함수12rstats <- se

0

Rshiny setup

R shiny setup setting12345install.packages('rsconnect')library(rsconnect)rsconnect::setAccountInfo(name='kjm94', token='14A30ABF3A5B0831FAF5A8FFB145F

0

R-ggplot No.1

눈금 표시 방법123456ggplot(PlantGrowth, aes(x = group, y = weight)) + geom_boxplot() + scale_y_continuous(limits = c(0, 10), # 축 범위 breaks = c(1, 3, 5, 7, 9), # 축의 숫자 지정

0

Random game 1

가위바위보 1을 입력하면 가위 2를 입력하면 바위 3을 입력하면 보 컴퓨터가 내는 수는 판마다 랜덤(난수) 0을 입력하면 종료 0, 1, 2, 3을 제외한 숫자 입력시 예외처리 게임결과 출력 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505

0

R test1

패키지 설치 방법 ggplot2와 dplyr 패키지 설치 방법 기재 12install.package("ggplot2")install.package("dplyr") 패키지 설치 12library(ggplot2)library(dplyr) 라이브러리 연결 액셀 데이터 받아오기12counties <- readxl::rea