data.frame()
함수는 vector값을 input으로 받는다
data.frame(
x= c(1, 2, 3), y = c(1.5, 5.5, 7.5))
_ x y
1 1 1.5
2 2 5.5
3 3 7.5
nrow =
과 ncol =
matrix(c(3:8), nrow=2)
_ [,1][,2] [,3]
[1,] 3 5 7
[2,] 4 6 8
matrix(c(3:8), ncol=2)
_ [,1][,2]
[1,] 3 6
[2,] 4 7
[3,] 6 8
dir.create()
: 파일을 담을 폴더를 생성하는 명령어file.create(
"new_text_file.txt")
: text 파일 생성file.create(
"new_text_file.txt")
: word 파일 생성file.create(
"new_text_file.txt")
: csv 파일 생성TRUE
가 출력file.copy (
"new_text_file.txt", "destination_folder")
unlink (
"some_.file.csv")