Displaying 5 results from an estimated 5 matches for "nam3".
Did you mean:
nam
2006 Feb 26
1
assigning differences in a loop
Dear All
I would need to generate differences between variates such as
nam1<-nam2-nam3 in the following loop:
for(i in c("13","26","38")) {
for (j in c("HR","PQ","QRS","QT")){
nam1<-paste("d",j,i,sep="")
nam2<-paste(j,i,sep=".")
nam3<-paste(j,"0...
2017 Jun 04
2
Warning from reshape2 when melting a data frame with uneven number of columns.
...ture(c(1L, 3L, 2L), .Label =
c("nam1",
"name-1", "name_12"), class = "factor"), V3 = structure(1:3, .Label =
c("nam2",
"nam_34", "name-2"), class = "factor"), V4 = structure(c(2L,
3L, 1L), .Label = c("", "nam3", "nam_56"), class = "factor"),
V5 = structure(c(1L, 2L, 1L), .Label = c("", "name_78"), class =
"factor")), .Names = c("V1",
"V2", "V3", "V4", "V5"), class = "data.frame", row.nam...
2017 Jun 04
0
Warning from reshape2 when melting a data frame with uneven number of columns.
...gsAsFactors=FALSE)
> str(d1)
'data.frame': 3 obs. of 5 variables:
$ V1: chr "Name1" "Name2" "Name3"
$ V2: chr "nam1" "name_12" "name-1"
$ V3: chr "nam2" "nam_34" "name-2"
$ V4: chr "nam3" "nam_56" ""
$ V5: chr "" "name_78" ""
> melt(d1,id.vars="V1")
V1 variable value
1 Name1 V2 nam1
2 Name2 V2 name_12
3 Name3 V2 name-1
4 Name1 V3 nam2
5 Name2 V3 nam_34
6 Name3...
2012 Oct 29
2
naming datasubsets in a loop
Hello everbody,
I want to generate different subsets of my data-set and safe this
subsets with names listet in a vector. Because in reality I have got
about 70 subsets I want to realize this in a loop
Somehow like this:
names=c("nam1",
"nam2","nam3","nam4","nam5","nam6","nam7","nam8","nam9","nam10")
for (i in 1:10){
subset(originaldata, originaldata[ ,130]<=time[i]) #This subset should
get the name safed in "names" on position i
}
I don't kno...
2017 Jun 04
0
Warning from reshape2 when melting a data frame with uneven number of columns.
...frame':??? 3 obs. of? 5 variables:
?$ V1: Factor w/ 3 levels "Name1","Name2",..: 1 2 3
?$ V2: Factor w/ 3 levels "nam1","name-1",..: 1 3 2
?$ V3: Factor w/ 3 levels "nam2","nam_34",..: 1 2 3
?$ V4: Factor w/ 3 levels "","nam3","nam_56": 2 3 1
?$ V5: Factor w/ 2 levels "","name_78": 1 2 1
On Sunday, June 4, 2017 6:48 AM, Ashim Kapoor <ashimkapoor at gmail.com> wrote:
Here is a small reproducible example:
data <-
structure(list(V1 = structure(1:3, .Label = c("N...