search for: cast_df

Displaying 9 results from an estimated 9 matches for "cast_df".

Did you mean: ast_dp
2009 Jan 07
1
Replace Function (How to replace numbers in a data frame with a specific number)
.../10", "202 2006/10", "215 2006/10", "61 2006/12", "119 2006/12", "148 2006/12", "179 2006/12", "185 2006/12", "BC 2006/12", "190 2006/12", "HC 2006/12", "198 2006/12"), class = c("cast_df", "data.frame"))) replace(taxa, taxa>0, 1) #Is preforms as I would like except that I only want to do this on columns 5:19 and I can't just use replace(taxa, taxa[,5:19]>0, 1) #any suggestions Stephen Sefick -- Stephen Sefick Let's not spend our time and resourc...
2010 Jan 26
5
Strange tick in ggplot geom_area; and ordering, again
...uot;none", "weak", "moderate", "severe", "verysevere"), class = c("ordered", "factor")), p = c(0.04, 0.02, 0.26, 0.6, 0.07, 0.07, 0.05, 0.33, 0.42, 0.14)), .Names = c("dur", "score", "p"), class = c("cast_df", "data.frame")) # columns do not ad to 100% because of rounding; never mind qplot(dur,p,data=cf1, fill=score)+ geom_area() -- View this message in context: http://n4.nabble.com/Strange-tick-in-ggplot-geom-area-and-ordering-again-tp1294692p1294692.html Sent from the R help mail...
2008 Feb 28
1
Errors melt()ing data...
...d=c("Sample.Name", "SNP")) Error in if (!missing(id.var) && !(id.var %in% varnames)) { : missing value where TRUE/FALSE needed > traceback() 4: melt_check(data, id.var, measure.var) 3: melt.data.frame(as.data.frame(data), id = attr(data, "idvars")) 2: melt.cast_df(subset(t.norm1, select = c("Sample.Name", "SNP", "Pool", "polar.1", "polar.2")), id = c("Sample.Name", "SNP"), measure = c("polar.1", "polar.2")) 1: melt(subset(t.norm1, select = c("Sample.N...
2010 May 06
1
How to solve: Error with Anova {car} due to "deficient rank" ?
..., 4, 4, 4, 4, 3)), .Names = c("DC", "week6", "week7", "week8", "week9", "week10", "week11", "week12", "week13", "week14", "week15", "week16", "week17"), class = c("cast_df", "data.frame"), row.names = c(NA, 39L)) # This fails mod.ok <- lm(as.matrix(dat[,-1]) ~ DC, data=dat) (av.ok <- Anova(mod.ok, idata=idata, idesign=~week)) # But this works dat[,-1] <- apply(dat[,-1],2, jitter ) mod.ok <- lm(as.matrix(dat[,-1]) ~ DC, data=dat) (av.ok...
2011 Dec 07
1
removing specified length of text after a period in dataframe of char's
...A, NA, NA, 13.5, 9.3, 14.3, 35.8), `2012` = c(99459, 2013, 81313, 0.1, 5.9, 7.5, 1223, NA, NA, 20.5, NA, 8.6, NA, NA, NA, NA, NA, NA, NA, NA)), .Names = c("", "2005", "2009", "2010", "2011", "2012"), row.names = c(NA, 20L), class = c("cast_df", "data.frame")) hi<-format(f,big.mark=",",scientific=F) regexpr("\\.", hi) #don't know to get location of "." in a dataframe of chars nam2<- structure(list(var1 = c("GDP (LCU,bn)", "GDP ($, bn)", "GDP per capi...
2008 Nov 20
2
Removing rows with rowsums==0 (I can't figure this out)
...128.125, 231.25, 50, 140.625, 0, 0, 0, 0, 0, 3.125, 12.5, 9.375, 18.75, 18.75, 3.125, 3.125, 0, 0, 0, 6.25, 0, 15.625, 21.875, 31.25, 15.625, 28.125, 15.625 )), .Names = c("CD", "GC", "GF", "P", "PR", "SC", "SH"), class = c("cast_df", "data.frame"), row.names = c("119 2006/10", "119 2006/12", "119 2007/02", "119 2007/04", "119 2007/06", "119 2007/08", "119 2007/10", "119 2008/01", "148 2006/05", "148 2006/10", &qu...
2008 Aug 27
1
Updating a list.
...ucture(list(DayOfYear = c(3L, 30L, 149L, 156L, 165L, 171L, 187L, 198L, 212L, 215L, 216L, 218L, 221L, 224L, 226L, 227L), Quantity = c(1L, 1L, 1L, 1L, 2L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L)), .Names = c("DayOfYear", "Quantity" ), row.names = c(NA, 16L), class = c("cast_df", "data.frame"), idvars = "DayOfYear", rdimnames = list( structure(list(DayOfYear = c(3L, 30L, 149L, 156L, 165L, 171L, 187L, 198L, 212L, 215L, 216L, 218L, 221L, 224L, 226L, 227L )), .Names = "DayOfYear", row.names = c("3", "30", &q...
2011 Aug 16
1
how to sort the levels of a table
...", "7", "8", "9", "10", "11", "12", "13", "14", "15", "16", "17", "18", "19", "20", "21"), class = "data.frame")), class = c("cast_df", "data.frame"))
2010 Jan 22
2
sorted reshaping?
dear R wizards:? I am wrestling with reshape.? I have a long data set that I want to convert into a wide data set, in which rows are firms and columns are years. > summary(rin) firm fyear sim1 Min. :1004.00 Min. :1964.0 Min. : -1.00000 1st Qu.:1010.00 1st Qu.:1979.0 1st Qu.: -0.14334 Median :1016.00 Median :1986.0 Median : 0.00116 Mean