Skip to content

Final Exercise07#8

Open
romefres wants to merge 1 commit into
qtran4:mainfrom
romefres:main
Open

Final Exercise07#8
romefres wants to merge 1 commit into
qtran4:mainfrom
romefres:main

Conversation

@romefres
Copy link
Copy Markdown

@romefres romefres commented Nov 4, 2022

No description provided.

@romefres
Copy link
Copy Markdown
Author

romefres commented Nov 4, 2022

Hey Quan. I just wanted to make sure you can see my script I tried to turn in for Exercise 7?

Comment thread Exercise07work.R

# Part 1
# file creation
file.create("iris.txt")
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you don't need this line

Comment thread Exercise07work.R
# file creation
file.create("iris.txt")
# input
read.csv("iris.csv",header=TRUE,stringsAsFactors=TRUE)
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this just read the file but not assign the contain of it to anything

Comment thread Exercise07work.R
vecone<-seq(from=100,to=1000,length.out=10)
dftwo<-data.frame(name=c('Notre Dame','Syracuse'),score=c('41','24'))
vecthree<-999
matfour<-matrix(data=1:50,nrow=10,ncol=5,byrow=TRUE)
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

don't need byrow = T here

Comment thread Exercise07work.R
matfour<-matrix(data=1:50,nrow=10,ncol=5,byrow=TRUE)
vecfive<-c('r','g','f')
# putting data structures into list called listex7
listex7<-list(vecone,dftwo,vecthree,matfour,vecfive) No newline at end of file
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants