Displaying 20 results from an estimated 23 matches for "ricardosousa2000".
2012 Mar 07
4
problem with data
Good Afternoon,
?? I have a small problem with the following code.
# The x.sub$Time[[1]] 2006-10-31 19:03:01 EST
# when put in variable star give-me
star<-x.sub$Time[[1]]
print(star)
print(x.sub$Time[[1]])
[1] 1 36 32 -........
do not understand why
--
View this message in context: http://r.789695.n4.nabble.com/problem-with-data-tp4453510p4453510.html
Sent from the R help mailing
2012 Jun 25
4
graph displays
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 47 63 75 116 125 129 131 131 131 131
2 B 37 64 45 11 25 19 61 131 186 186
3 C 17 62 25 66 12 29 91 171 186
2010 Jun 17
2
Help R
Hello,
I'm new in using the R, but from what I read is an excellent tool.
Would you like if I could help, I am trying create an array from reading
a text file.
The idea is to read the file, and transform the data in binary format,
for example. The calves of this file format.
A,B,C,D,G
A,C,E,O
F,G
Put this away
a b c d e f g o
1 1 1 1 1 0 0 1 0
2012 Apr 06
4
Order sapply
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 pos v v_star v_end commutation v_source
v_destine
1 1 96-96 1173438391 1173438391 0
2012 Mar 08
8
Copy dataframe for another
I'm trying to copy the results of a dataframe to another within a cycle for
but I am not able to implement the rbind, because give th
d<-Null
df<-NULL
for(r in 2: nrow(x))
{
val_user<-x.name[[r]]
pos<-x.pos[[r]] -4
age <-x.age[[r]]
d<-data.frame(val_user,pos,)
print(d)
}
df<-rbind(df,d)
}
someone can help me solve this
Thanks
2012 Mar 15
1
Subtract Date Between columns
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 SESSIONTIME Time TimeStart
1162343932 8320 2006-10-31 19:01:34 2006-10-31 16:42:54
1162343215 592 2006-10-31 19:02:04 2006-10-31 18:52:12
1162341465 11875
2012 Mar 23
1
Read File for Matrix with rownames
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
2012 Mar 19
2
Save File after order
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
x<-data.frame(name="x1",Time=20)
x<-rbind(x,data.frame(name="x2",Time=25))
2012 Mar 27
2
drawing the graph with many nodes
Good morning,
I'm trying to draw a graph, and I'm using the following code.
test.matrix<-read.table("~/Desktop/Results/testgephi.csv", header = T,
sep=",")
colnames(test.matrix) <- gsub("X", "", colnames(test.matrix))
#drop first column
drops <- c("")
test.matrix<-test.matrix[,!(names(test.matrix) %in% drops)]
test.matrix
2012 Mar 13
2
Matrix Another table
I have next table
source destine
3 3
7 7
6 6
3 4
4 4
4 3
3 3
3 3
3 3
3 3
3 4
4 4
4 3
3 4
4 3
I'm trying to create an array with the number of occurrences between the
source and destination. id_ap<-levels(factor(df$v_source))
num_AP<-length(levels(factor(df$v_source)))
mat<-matrix(data=NA,nrow=num_AP,ncol=num_AP,
byrow=TRUE,dimnames=list(id_ap,id_ap))
1 2 3 4 5 6 7
2012 Mar 26
2
copy the columns based on the code
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)
city<-rbind(city,data.frame(city="Madrid",cod=2))
2012 Mar 20
2
Unique in DataFrame
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))
x<-rbind(x,data.frame(city="Madrid",sales=266535))
2011 Oct 24
2
Plot Legend
Good Afternoon,
I am inexperienced in data visualization R. so I wonder if someone can help
me.
I am using the generic database mtcars.
I would like to change the chart plot, instead of appearing the name of the
medicine, I wanted a symbol in the chart drugX arise for example in a yellow
circle, and so for the rest of the drugs.
I am using the following code.
dataset
Age Sex BP
2011 Oct 26
1
Plot complete dataset
Hello,
I am a new user of R, so I still have some basic difficulties.
I'm trying to create a bar graph completely from reading a file.
The idea was on the x axis have the columns of the table
Married ,Single,Divorced, widower
the legend Ages
18-34
35-45
46-64
65-69
70-74
the dataset
dataset
Ages Married Single Divorced widower
1 18-34 10.5 35.7 8.5 3.2
2 35-45
2011 Nov 18
2
Export Tree for latex
Hello everybody.
I'm trying to send the result of a decision tree for latex, but I do not
get with the package(xtable), there is a package that make this export
Export this for latex
marital.status = Divorced
| educational.num <= 12: <=50K (1795.0/90.0)
| educational.num > 12
| | hours.per.week <= 41: <=50K (302.0/58.0)
| | hours.per.week > 41
| | |
2011 Nov 27
0
nnet plot
good night
Again I ask for help to the community, as I am new at this, I have some
basic questions.
I am looking for packages on neural networks and so you can search found
these two that I think are the most used, neuralnet, nnet.
So you can test, and correct me if I'm wrong the neuralnet only accepts as
input values ??nomer, did a little test
data (iris)
library (neuralnet)
2011 Nov 28
0
Plot nnet
good night
Again I ask for help to the community, as I am new at this, I have some
basic questions.
I am looking for packages on neural networks and so you can search found
these two that I think are the most used, neuralnet, nnet.
So you can test, and correct me if I'm wrong the neuralnet only accepts as
input values ??nomer, did a little test
data (iris)
library (neuralnet)
2012 Mar 27
2
R extract parts
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 pos communications source v_destine
7 1 109 22 22
7 2 100 22 22
7 3 214 22 22
7 4 322 22 22
7 5 69920 22 161
7 6
2012 Jun 14
2
plot cdf
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 37607
2 26625
3 5856
4 25992
5 30585
6 16064
7 9850
..
...
..
186 52
--
View this message in
2011 Oct 24
1
strsplit convert data
I am using the following code but I do not know the debug and run for
correct errors
library (tcltk)
file <-tclvalue (tkgetOpenFile ())
if (nchar (file))
{
tkmessageBox ("Select the file")
}
else
{
tkmessageBox (message = paste ("Was select file", file))
Dataset <- read.table (file, header = FALSE, sep = "", na.strings =