Update all new Tasks
This commit is contained in:
parent
00a190b0a6
commit
91df62d461
5697 changed files with 93386 additions and 804 deletions
10
Task/CSV-data-manipulation/R/csv-data-manipulation-1.r
Normal file
10
Task/CSV-data-manipulation/R/csv-data-manipulation-1.r
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
df <- read.csv(textConnection(
|
||||
"C1,C2,C3,C4,C5
|
||||
1,5,9,13,17
|
||||
2,6,10,14,18
|
||||
3,7,11,15,19
|
||||
4,8,12,16,20"))
|
||||
|
||||
df <- transform(df,SUM = rowSums(df))
|
||||
|
||||
write.csv(df,row.names = FALSE)
|
||||
1
Task/CSV-data-manipulation/R/csv-data-manipulation-2.r
Normal file
1
Task/CSV-data-manipulation/R/csv-data-manipulation-2.r
Normal file
|
|
@ -0,0 +1 @@
|
|||
write.csv(df,row.names = FALSE,file = "foo.csv")
|
||||
Loading…
Add table
Add a link
Reference in a new issue