This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
getwd() | |
# 행렬(Matrix) : 행과 열로 구성된 데이터 형태 | |
# 행렬의 생성 | |
m <- matrix(c(1:9)) | |
# m 데이터의 형태를 출력 : Class(데이터) | |
class(m) | |
m | |
# 3행 3열의 행렬을 생성 | |
m <- matrix(c(1:9),nrow = 3, ncol = 3) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 김농부는 이전 년도의 날씨정보를 기반으로 내일 비가 오는지 그렇지 않은지를 예측하고자 한다. | |
# | |
# 날씨가 비가 온 날은 1, 비가 오지 않은 날은 0의 값을 갖는 데이터가 있다고 가정하자. | |
# | |
# 이전 k년의 날씨 기록을 기반으로 내일의 날씨를 예측하는데 조건은 k년 중 반 이상 비가 왔을 때 비가 온다고 가정하자. | |
# | |
# 기상 데이터와 예측을 위한 k년을 입력받아 이때 오차율을 계산해보자. | |
# 예측값과 실제값을 비교하여 두 값의 차가 1일 경우 오류이며 오류의 평균을 오차율로 한다. | |
## 실제 프로세스 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# getwd() | |
# setwd(D:\\BigData\\Source) | |
# | |
x<-c(1:10) | |
x | |
y <- seq(1,20,2) | |
y <- seq(1,by=2, length=10) | |
replace(x,2,8) # X 데이터 변경은 안되고 출력만 | |
x<-replace(x,2,8) #데이터 치환 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script language="JavaScript"> | |
document.write('<style>'); | |
document.write('.cnj_input { border-width:1; border-style:solid; border-color:#000000; color:#0084D4; background-color:white;}'); | |
document.write('</style>'); | |
// 견적서 자동 계산하기 | |
function onlyNum(objtext1) { | |
var inText = objtext1.value; | |
var ret; | |
for (var i = 0; i < inText.length; i++) { | |
ret = inText.charCodeAt(i); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script type="text/javascript"> | |
function addzero(n){ // 한자리가 되는 숫자에 "0"을 넣어주는 함수 | |
return n < 10 ? "0" + n: n; | |
} | |
function dateInput(n,m){ | |
$("#StartDate").val(""); // 우선 이미 들어가있는 값 초기화 | |
$("#EndDate").val(""); | |
var date = new Date(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Insert title here</title> | |
<script src="//code.jquery.com/jquery.min.js"></script> | |
<script src="//ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script> | |
<script type="text/javascript"> | |
$(function() { | |
$('#endDate').change(function(e) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<title>W3.CSS Template</title> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<link rel="stylesheet" href="https://www.w3schools.com/lib/w3.css"> | |
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Inconsolata"> | |
<style> | |
body, html { | |
height: 100%; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
UPDATE | |
tb_person p | |
SET | |
p.person_total_mileage = | |
(SELECT | |
SUM(mct.mileage_cate_price - m.mileage_use_price) | |
FROM | |
tb_mileage m | |
JOIN | |
tb_mileage_cate mct |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- Middle Column --> | |
<div class="w3-col m7"> | |
<div class="w3-row-padding"> | |
<div class="w3-col m12"> | |
<div class="w3-card-2 w3-round w3-white"> | |
<div class="w3-container w3-padding"> | |
<h6 class="w3-opacity">Social Media template by w3.css</h6> | |
<p contenteditable="true" class="w3-border w3-padding">Status: Feeling Blue</p> | |
<button type="button" class="w3-btn w3-theme"><i class="fa fa-pencil"></i> Post</button> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- 링크를 추가해서 사용 --> | |
<!DOCTYPE html> | |
<html> | |
<title>My Web</title> | |
<script src="https://www.w3schools.com/lib/w3.js"></script> | |
<!-- js파일을 다운 받아 같은 위치에서 사용 --> | |
<!DOCTYPE html> |