Good morning,
Thanks for help.
I can explain better what I am trying to do.
I'm trying to read data from a file, separated by a tab, with the following
code.
Dataset-read.table(C:/Users/Administrator/Desktop/R/graph.txt,sep=\t,
quote=\,header = TRUE)
View(Dataset)
dput(Dataset)
View(Dataset)
Good Afternoon, I'm trying to create a graph that displays the best way the
following information.
For instance organized by bar graph, A, B, C
Source X1000s X600s X500s X250s X100s X50s X10s X5s X3s X1s
1 A 476375 116 125 129 131 131 131 131
2 B 3764
Thanks
--
View this message in context:
http://r.789695.n4.nabble.com/plot-cdf-tp4633349p4633515.html
Sent from the R help mailing list archive at Nabble.com.
__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do
Good Afternoon,
I'm trying to create a cdf plot, with the following code.It works well,
but I have little doubt, if you can help solve.When I create the plot,
like the graph line would still not appear with point
#cdf
x-table(Dataset$Apcode)
View(s)
hist(s)
*plot(ecdf(x))*
x-1
Good Afternoon,
I get it, my question was really how the data were organized, I thought
I was doing something wrong.
Thanks
--
View this message in context:
http://r.789695.n4.nabble.com/Order-sapply-tp4537496p4542518.html
Sent from the R help mailing list archive at Nabble.com.
Good Afternoon,
I have the following code, but it seems that something must be doing
wrong, because it is giving the results I want.
The idea is to create segments while the value of Commutation is less than
1000.
for example, from the small set of data below
text=
val_user posv
results
val_user v_source v_destine count average
1 7 2222 4 186.25
2 7 2222 2 383.50
3 7 2222 1 19.00
4 7 9797 1 196.00
5 7 16197 1 68.00
6 7 22 130 1
Thank you,
Works perfectly.
When the column sector, is the value of lines in the example has six
sectors
--
View this message in context:
http://r.789695.n4.nabble.com/R-extract-parts-tp4509042p4511689.html
Sent from the R help mailing list archive at Nabble.com.
Hello, I have this data.frame, and i need the value the column where the
value in matrix is maximum
res3
77 86 93 106 161
77 20 0 0 1 0
86 1 12 1 2 1
93 0 2 3 3 0
106 0 4 3 18 0
161 0 0 0 1 55
I use this d-which(res3==max(res3),
Good Afternoon,
I believe that my to the problem, the R has a more effective solution.
in place the use the loop
I have the following set of data, and needs to extract some sections.
user poscommunications source v_destine
7 1 109 2222
7 2 100 22
Hello,
this code, works perfectly
temp - merge(travel, city, by.x=Source, by.y=cod)
result - merge(temp, city, by.x=Destine, by.y=cod)
The problem was the construction of the data frame, had a parenthesis in
city-rbind(city,data.frame(city=Lisbon,cod=3))),
I tried to delete the post,
Hello,
I have two different dataset, and wanted to join the two.
For example I have a table of codes of cities, and other with with the
codes of travels, [source for the destine].
what he wanted was to have a new data.frame with all the information
city-data.frame(city=Barcelona,cod=1)
Thanks for the reply.
I am using the function you gave me.
complete.travel-merge(travel, city, by.x = Source, by.y = cod, all =
TRUE)
complete.travel-merge(travel, city, by.x = Destine, by.y = cod, all =
TRUE
The problem is that it gives the result that I want
The
thanks,
is working
--
View this message in context:
http://r.789695.n4.nabble.com/copy-the-columns-based-on-the-code-tp4505253p4506128.html
Sent from the R help mailing list archive at Nabble.com.
__
R-help@r-project.org mailing list
thanks for the reply,
But does not the results I need. What is confusing is that when making
the first merge it gives only two cities when it should take three
travel-data.frame(pos=1,Source=1,Destine=2)
travel-rbind(travel,data.frame(pos=1,*Source=1*,Destine=3))
Good morning,
Good morning,
I'm trying to read the file into an array, with the following code.
A- as.matrix(read.csv(~/Desktop/Results/Cfile.csv, header = FALSE,
sep=,))
The content of the file
,1,2,3,4
1, 484,43,67,54
2,54,35,67,34
3,69,76,78,55
4,67,86,44,34
What I needed is that
Hello,
I have little doubt, and I do not think that the way I solve the problem
is the best way to do it.
The following is a small dataset
x-data.frame(city=Barcelona,sales=253639)
x-rbind(x,data.frame(city=Madrid,sales=223455))
x-rbind(x,data.frame(city=Lisbon,sales=273633))
Thanks.
--
View this message in context:
http://r.789695.n4.nabble.com/Unique-in-DataFrame-tp4488943p4489554.html
Sent from the R help mailing list archive at Nabble.com.
__
R-help@r-project.org mailing list
Hello,
I'm trying to write the sorted data in a file of a data.frame, My
question and my problem is that when I record in file adds a new column
row.name, which apparently is the original position in the file.
I wanted to write to the file without this column
Thanks
--
View this message in context:
http://r.789695.n4.nabble.com/Save-File-after-order-tp4484539p4485370.html
Sent from the R help mailing list archive at Nabble.com.
__
R-help@r-project.org mailing list
Hello
I have this little dataset, my goal is create one column in the
data.frame with between the diference DataTime and Duration.
I'm using the next code to make do this
TIME_STAMP SESSIONTIMETime TimeStart
1162343932 83202006-10-31 19:01:34
Hello
I have this code for the count the occurrences between V_source and
V_destine, its can possible make the same, but in local the total the
occurrences to appear the mean or the minimum
Dataset
df.v_source df.v_destine df.dif
1 33 4
2 7
Sorry, I ll explain better.
For example in the next dataset,
x-data.frame(v_source=3,v_destine=3,dist=4)
x-rbind(x,data.frame(v_source=7,v_destine=7,dist=0))
x-rbind(x,data.frame(v_source=6,v_destine=6,dist=0))
x-rbind(x,data.frame(v_source=4,v_destine=4,dist=56))
Sorry, I ll explain better.
For example in the next dataset,
x-data.frame(v_source=3,v_destine=3,dist=4)
x-rbind(x,data.frame(v_source=7,v_destine=7,dist=0))
x-rbind(x,data.frame(v_source=6,v_destine=6,dist=0))
x-rbind(x,data.frame(v_source=4,v_destine=4,dist=56))
Thank you.
Works perfectly
--
View this message in context:
http://r.789695.n4.nabble.com/Average-row-and-column-tp4474524p4475438.html
Sent from the R help mailing list archive at Nabble.com.
__
R-help@r-project.org mailing list
25 matches
Mail list logo