... library(MASS) data(Cars93) head(Cars93) X <- subset(Cars93, select=c('Price', 'Horsepower', 'RPM', 'Length', 'Type', 'Origin')) y <- Cars93$MPG.highway nrow(X) train_idx...
태그: rstudio
... df <- data.frame(group=rep(c(1:3),3), y=c('yes','no','yes','no','yes','yes','yes','no','yes') ) df df1 = subset(df, y=='yes') table(df1) 요렇게 해보았습니다아
태그:
... ㅠㅠ 좀 알려주세요 df = data.frame(Nile, date = c(1871:1970)) data_1898 = subset(df, date <=1898) mean(data_1898$Nile) sd(data_1898$Nile) data_1970 = subset(df, date > 1898)...
태그:
... (car) ``` ```{R, echo=True} cor(subset(car, select=-c(cyl,vs))) ``` ```{R, echo... 더불어 프로그래밍 언어를 소개하오니 방문 부탁드립니다....
태그: r프로그래밍
... ggplot이나 with(subset 등 계속 시도하는데... ^^ 도움되는 답변: 프로그래밍 scatter plot에서... 다음 코드를 사용해보세요: ```R library(ggplot2)...
태그: r프로그래밍
... subset[r] = k+1; // 지금까지 선택한 원소가 r개 였고, 지금 1개 선택했으므로... comb(subset, n, 0, n-k, 0); return 0; } // 프로그래밍은 자기수준에 맞는 문제를...
태그:
... S B <- subset(S, (S %% 4)==0 | (S %% 9)==0); B length(B)/length(S) 그리고 해솔 블로그에서는 다양한 기상학/해양학 정보와 더불어 프로그래밍 언어를...
태그:
... weight<-c(69,50,55,71,89,64,59,70,71,80) 1) which.max(weight) 2) which.min(weight) 3) which(weight>=61 & weight<=69) 4) weight.2<-subset(weight,weight<=60)...
태그:
... int subset[30]={0,}; int i, n, r; // 6은 주어진 값의 갯수이다. 0은 다음에 고려해야 할 위치 // 다음 0은 현재 까지 subset에 들어간 갯수, 30은 합이다. psum...
태그:
... 그렇기 때문에 4번이 참이고 Ytrain <- subset(Hitters[train,], select = Salary) Hitter 라는 데이터프레임에서 train 에 해당하는 열에서 Salary 행을 추출하는...
태그: