[R] as.data.frame doesn't set col.names
Ed Siefker
ebs15242 at gmail.com
Tue Oct 24 20:00:01 CEST 2017
Wait. Now I'm really confused.
>
> head(samples)
quant_samples age sapply(yo, toupper)
E11.5 F20het BA40 E11.5 F20het BA40 E11.5 F20HET
E11.5 F20het BA45 E11.5 F20het BA45 E11.5 F20HET
E11.5 F20het BB84 E11.5 F20het BB84 E11.5 F20HET
E11.5 F9.20DKO KTr3 E11.5 F9.20DKO KTr3 E11.5 F9.20DKO
E11.5 F9.20DKO PEd2 E11.5 F9.20DKO PEd2 E11.5 F9.20DKO
E11.5 F9.20DKO j0J1 E11.5 F9.20DKO j0J1 E11.5 F9.20DKO
> colnames(samples)
[1] "quant_samples" "age" "geno"
Really, really confused.
On Tue, Oct 24, 2017 at 12:58 PM, Ed Siefker <ebs15242 at gmail.com> wrote:
> Why doesn't this work?
>
>> samples$geno <- as.data.frame(sapply(yo, toupper), col.names="geno")
>> samples
> quant_samples age sapply(yo, toupper)
> E11.5 F20het BA40 E11.5 F20het BA40 E11.5 F20HET
> E11.5 F20het BA45 E11.5 F20het BA45 E11.5 F20HET
More information about the R-help
mailing list