분류 전체보기 72

정보 처리 입문 - R 기본 명령어와 개념

명령어 사용 cor() Correlation 상관계수를 구하는 R 함수 plot boxplot rnorm(200) 랜덤값 200개 hist 상관계수 중심측도: 절사평균 중심측도: 중앙값 산포도 측정 변동계수, 범위 변동계수(coefficient of variation), 변이계수 : 범위(range): 최댓값 - 최솟값 사분위수 범위(IQR; Interquartile range) R의 예시 연속형자료 그래프 히스토그램(hisrtogram): 각 계급에 속한 도수들을 정리한 도수분포표의 그래프 줄기-잎 그림(stem-and-leaf plot) 대략적인 형태로 적은 양의 데이터에 용이함 박스그림(boxplot) Reference https://sjh836.tistory.com/115 https://leeda..

카테고리 없음 2023.04.06

React-Class Ajax

React를 통한 간단한 AJAX 코드 //fetch호출이 시작되는 public폴더에 list.json과 1, 2, 3 파일명의 json을 저장 class Nav extends Component { state = { list:[] } componentDidMount() { fetch('list.json') .then(function(result){ return result.json(); }) .then(function(json){ this.setState({list:json}); }.bind(this)) } render(){ var listTag = []; for(var i=0; i json으로 converting }) .then(function(json){ // 첫번째 then의 return value..

카테고리 없음 2023.04.01