Closed rderelle closed 4 months ago
Hi,
As I'm not particularly good with R, I'm struggling loading the phenotypes using the commands:
df <- read.table(file="phenotypes.txt",sep = ",") phen <- as.vector(unlist(df))
My file contains the phenotypes in the following format: sample1,A sample2,A sample3,B
I also tried the following format with no luck: sample1,sample2,sample3 A,A,B
Could you please let me know in which format the phenotypes should be provided? Any help would be highly appreciated.
Thanks
found a solution.
Hi,
As I'm not particularly good with R, I'm struggling loading the phenotypes using the commands:
df <- read.table(file="phenotypes.txt",sep = ",") phen <- as.vector(unlist(df))
My file contains the phenotypes in the following format: sample1,A sample2,A sample3,B
I also tried the following format with no luck: sample1,sample2,sample3 A,A,B
Could you please let me know in which format the phenotypes should be provided? Any help would be highly appreciated.
Thanks