Question: Building a PST in R
gravatar for atif.yilmaz7
5.5 years ago by
atif.yilmaz70 wrote:

I am trying to build a pst of a csv file in R, but facing with an error:

"Error in names(StCol) <- A "

After reading the file:

try1 <- read.csv("C:/Users/.../Desktop/sonuclar/2merCsv/Arteanuine B_2mer.csv") 

Warning message: In data(try1) : data set ‘try1’ not found

This is the first error before using pstree function.

How can I handle with them ?

The code I m trying to run is:

try1 <- read.csv("C:/Users/.../Desktop/sonuclar/2merCsv/Arteanuine B_2mer.csv") 
try1.seq <- seqdef(try1) 
Try1 <- pstree(tyr1.seq, L = 3) 
print(Try1, digits = 3) 
R • 1.7k views
ADD COMMENTlink written 5.5 years ago by atif.yilmaz70

IMHO, you don't need the data() command. It is mainly used to attach (toy) data from libraries.

Just try to run it without it.

After reading the csv, you should have a look at your data if everything is correctly assigned (e.g. dim(try1); head(try1); summary(try1)).

ADD REPLYlink written 5.5 years ago by michael.ante3.6k
Please log in to add an answer.


Use of this site constitutes acceptance of our User Agreement and Privacy Policy.
Powered by Biostar version 2.3.0
Traffic: 1862 users visited in the last hour