Assign column entries in data.frame to row names.

col2rowname(df, col)

Arguments

df

data.frame

col

Character specifying column name in df.

Value

df

Author

Nicholas Mikolajewicz

Examples


f.mat <-aggGroupExpression(
so = so.query,
  which.data = "data",
  which.assay = DefaultAssay(so.query),
  which.center = "fraction",
  which.group = "seurat_clusters",
  do.parallel = F
)
#> Error in DefaultAssay(so.query): object 'so.query' not found

f.mat <- col2rowname(f.mat, col = "genes")
#> Error in as.data.frame(df): object 'f.mat' not found