Question: Building a PST in R
0
gravatar for atif.yilmaz7
4.6 years ago by
Turkey
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") 
data(try1) 

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") 
data(try1) 
try1.seq <- seqdef(try1) 
try1.seq 
Try1 <- pstree(tyr1.seq, L = 3) 
print(Try1, digits = 3) 
Try1
R • 1.5k views
ADD COMMENTlink written 4.6 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 4.5 years ago by michael.ante3.6k
Please log in to add an answer.

Help
Access

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