Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions Exercise07.R
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# BIOS 30318 Biocomputing -- connecting RStudio to Github
# G Andreasen
# 11 04 2022

setwd("~/Documents/Courses/Biocomputing_BIOS_60318/Tutorials/Exercise07/")

# Problem 1: Convert iris.csv to a tab delimited iris.txt
iris_csv <- read.csv("iris.csv")
write.table(read.csv("iris.csv", sep = ","), "iris.tab")
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 need an argument sep = "\t" here



# Problem 2: Create list of 5, w/ specific qualities
data_list <- list(seq(from = 100, to = 1000, length.out = 10),
data.frame(team = c("Notre Dame", "Syracuse"),
score = c(41, 24)),
999,
matrix(seq(1, 50), nrow = 10, ncol = 5),
c("m", "l", "a"))
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.

1.5