Here is my data in tab delimited txt file:
https://drive.google.com/open?id=1SfqY8FBnpLCs8TKySK_HYR6kzWChLRjb
Is there a way to make a for loop for the following code:
ka1 <- dput(as.numeric(na.omit(data$Ka1)))
ka2 <- dput(as.numeric(na.omit(data$Ka2)))
ka3 <- dput(as.numeric(na.omit(data$Ka3)))
reference <- dput(as.numeric(na.omit(data$Reference)))
ks1 <- dput(as.numeric(na.omit(data$Ks1)))
ks2 <- dput(as.numeric(na.omit(data$Ks2)))
ks3 <- dput(as.numeric(na.omit(data$Ks3)))
I am trying to place each individual column of the df into a list assigned to a vector:
> Reference
[1] 1401
> Ka1
[1] 57 108 333 510
I Tried the following, but I do not understand the entire process.
for (i in data) {
names(data) <- deput(as.numeric(na.omit(data$i)))
}