Exercise 07 Script#20
Open
avivalund wants to merge 1 commit into
Open
Conversation
qtran4
reviewed
Nov 7, 2022
| #a 10-row, 5-column matrix containing integers from 1 to 50 | ||
| matrx <- matrix(data=1:50, nrow=10, ncol=5) | ||
| #a vector containing three letters | ||
| lettrs <-("moo") |
Owner
There was a problem hiding this comment.
three letters, not a word with three letters
qtran4
reviewed
Nov 7, 2022
| #a vector containing three letters | ||
| lettrs <-("moo") | ||
| #create a unified list | ||
| mylist <- list(hundrds, fball, nmbr, matrx, lettrs) |
Author
|
I know it was three letters, I just did a sound for fun. I didn't know they
had to be three "unique" letters. That was not in the directions.
…On Sun, Nov 6, 2022 at 8:47 PM qtran4 ***@***.***> wrote:
***@***.**** commented on this pull request.
------------------------------
In Exercise7Script.R
<#20 (comment)>:
> + write.table(Iris_data,"iris.txt",row.names=FALSE,sep="\t")
+
+
+
+#2: Create a list of length 5
+ #a vector with length 10 containing 100,200,...1000
+ hundrds <- seq(from=100, to=1000, by=100)
+ #a two-row, two-column data frame with the team names
+ #and final score from last week's Notre Dame football game
+ fball <- data.frame(teams=c("NotreDame", "Syracuse"), scores=c("41", "24"))
+ #the number 999
+ nmbr <- as.numeric("999")
+ #a 10-row, 5-column matrix containing integers from 1 to 50
+ matrx <- matrix(data=1:50, nrow=10, ncol=5)
+ #a vector containing three letters
+ lettrs <-("moo")
three letters, not a word with three letters
—
Reply to this email directly, view it on GitHub
<#20 (review)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/A3I6WA5VWTYIXMXNBDHUTYLWHBGR7ANCNFSM6AAAAAARYREOHY>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Owner
|
So the question asked you for a "vector" of letters. What you created is
not a vector and not containing 3 letters.
Remember that the max credit for homework 07 is 2, so I just took off 0.25.
If you don't feel this is justified, you can ask Dr Jones about this one.
Quan Tran
…On Mon, Nov 7, 2022, 5:49 PM avivalund ***@***.***> wrote:
I know it was three letters, I just did a sound for fun. I didn't know they
had to be three "unique" letters. That was not in the directions.
On Sun, Nov 6, 2022 at 8:47 PM qtran4 ***@***.***> wrote:
> ***@***.**** commented on this pull request.
> ------------------------------
>
> In Exercise7Script.R
> <#20 (comment)>:
>
> > + write.table(Iris_data,"iris.txt",row.names=FALSE,sep="\t")
> +
> +
> +
> +#2: Create a list of length 5
> + #a vector with length 10 containing 100,200,...1000
> + hundrds <- seq(from=100, to=1000, by=100)
> + #a two-row, two-column data frame with the team names
> + #and final score from last week's Notre Dame football game
> + fball <- data.frame(teams=c("NotreDame", "Syracuse"), scores=c("41",
"24"))
> + #the number 999
> + nmbr <- as.numeric("999")
> + #a 10-row, 5-column matrix containing integers from 1 to 50
> + matrx <- matrix(data=1:50, nrow=10, ncol=5)
> + #a vector containing three letters
> + lettrs <-("moo")
>
> three letters, not a word with three letters
>
> —
> Reply to this email directly, view it on GitHub
> <
#20 (review)
>,
> or unsubscribe
> <
https://github.com/notifications/unsubscribe-auth/A3I6WA5VWTYIXMXNBDHUTYLWHBGR7ANCNFSM6AAAAAARYREOHY
>
> .
> You are receiving this because you authored the thread.Message ID:
> ***@***.***>
>
—
Reply to this email directly, view it on GitHub
<#20 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/A3K4WDQKAMDMAITOAW7APO3WHGBOJANCNFSM6AAAAAARYREOHY>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Author
|
Oh that makes sense. Would an example of that be “data.frame” to make it a
vector?
…On Mon, Nov 7, 2022 at 17:59 qtran4 ***@***.***> wrote:
So the question asked you for a "vector" of letters. What you created is
not a vector and not containing 3 letters.
Remember that the max credit for homework 07 is 2, so I just took off 0.25.
If you don't feel this is justified, you can ask Dr Jones about this one.
Quan Tran
On Mon, Nov 7, 2022, 5:49 PM avivalund ***@***.***> wrote:
> I know it was three letters, I just did a sound for fun. I didn't know
they
> had to be three "unique" letters. That was not in the directions.
>
> On Sun, Nov 6, 2022 at 8:47 PM qtran4 ***@***.***> wrote:
>
> > ***@***.**** commented on this pull request.
> > ------------------------------
> >
> > In Exercise7Script.R
> > <#20 (comment)>:
> >
> > > + write.table(Iris_data,"iris.txt",row.names=FALSE,sep="\t")
> > +
> > +
> > +
> > +#2: Create a list of length 5
> > + #a vector with length 10 containing 100,200,...1000
> > + hundrds <- seq(from=100, to=1000, by=100)
> > + #a two-row, two-column data frame with the team names
> > + #and final score from last week's Notre Dame football game
> > + fball <- data.frame(teams=c("NotreDame", "Syracuse"), scores=c("41",
> "24"))
> > + #the number 999
> > + nmbr <- as.numeric("999")
> > + #a 10-row, 5-column matrix containing integers from 1 to 50
> > + matrx <- matrix(data=1:50, nrow=10, ncol=5)
> > + #a vector containing three letters
> > + lettrs <-("moo")
> >
> > three letters, not a word with three letters
> >
> > —
> > Reply to this email directly, view it on GitHub
> > <
>
#20 (review)
> >,
> > or unsubscribe
> > <
>
https://github.com/notifications/unsubscribe-auth/A3I6WA5VWTYIXMXNBDHUTYLWHBGR7ANCNFSM6AAAAAARYREOHY
> >
> > .
> > You are receiving this because you authored the thread.Message ID:
> > ***@***.***>
> >
>
> —
> Reply to this email directly, view it on GitHub
> <#20 (comment)>,
> or unsubscribe
> <
https://github.com/notifications/unsubscribe-auth/A3K4WDQKAMDMAITOAW7APO3WHGBOJANCNFSM6AAAAAARYREOHY
>
> .
> You are receiving this because you commented.Message ID:
> ***@***.***>
>
—
Reply to this email directly, view it on GitHub
<#20 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/A3I6WA5K5H3CVG5ABR5YRD3WHGCTVANCNFSM6AAAAAARYREOHY>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.