WGCA tutorial related question
1
0
Entering edit mode
wes • 0
@wes-24179
Last seen 2.6 years ago
Malaysia

By referring to the link of the WGCNA tutorial link given, can anyone tell me what is the function of the following two R code? What is the function of -1 and 1 in the square bracket?Tutorial for the WGCNA package for R

datTraits = allTraits[traitRows, -1];

rownames(datTraits) = allTraits[traitRows, 1];

WGCNA • 1.1k views
ADD COMMENT
0
Entering edit mode
ATpoint ★ 4.5k
@atpoint-13662
Last seen 13 hours ago
Germany

-1 removes the first column from that data.frame and 1 selects only that column alone.

ADD COMMENT
0
Entering edit mode

Thanks for the explanation

ADD REPLY

Login before adding your answer.

Traffic: 681 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6