Building a PST in R
0
0
Entering edit mode
8.7 years ago

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 • 2.2k views
ADD COMMENT
0
Entering edit mode

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 REPLY

Login before adding your answer.

Traffic: 1880 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