search for: example_data

Displaying 11 results from an estimated 11 matches for "example_data".

2017 Jul 05
0
Help with reshape/reshape2 needed
....23750000 0.0733945 NA 0.7307692 0.05769231 0.5096154 0.7500000 ... NA 0.65137615 or any other combination of orders. You might not care about the order, but reshape does. The usual way around it is to just make up an order variable, e.g., assuming your data.frame is named "example_data" and the columns are named "year" and "score": example_data <- do.call(rbind, lapply(split(example_data, example_data$year), transform, obs = seq_a...
2017 Jul 05
1
Help with reshape/reshape2 needed
...0.7307692 0.05769231 > 0.5096154 0.7500000 ... NA 0.65137615 > > or any other combination of orders. You might not care about the > order, but reshape does. > > The usual way around it is to just make up an order variable, e.g., > assuming your data.frame is named "example_data" and the columns are > named "year" and "score": > > example_data <- do.call(rbind, > lapply(split(example_data, > example_data$year), > transform, >...
2017 Jul 05
4
Help with reshape/reshape2 needed
Hi all: I'm struggling with getting my data re-formatted using functions in reshape/reshape2 to get from: 1957 0.862500000 1958 0.750000000 1959 0.300000000 1960 0.287500000 1963 0.675000000 1964 0.937500000 1965 0.025000000 1966 0.387500000 1969 0.087500000 1970 0.275000000 1973 0.500000000 1974 0.362500000 1976 0.925000000 1978 0.712500000 1979 0.337500000 1980 0.700000000 1981 0.425000000
2012 Mar 12
2
How to create interrupted boxplot
...plot look like the second one, keep the outlier, and make an interrupt of y-axis from 5 to 25. Thanks, Jianghong Example = c( 0.00,0.33,0.75,3.00,2.50,0.50,2.00,33.00) Grp_Example =c("A","A","A","B","B","B","B","B") Example_Data= cbind(Example,Grp_Example) attach(Example_Data) boxplot(Example ~ Grp_Example,main=paste("Boxplot of Example"), pars = list(boxwex = 0.25, staplewex = 0.25, outwex = 0.25)) boxplot(Example ~ Grp_Example,main=paste("Boxplot of Example"),ylim=c(0,4), pars = list(boxwex = 0.25,...
2011 Mar 03
2
lattice custom axis function -- right side margins
...y thanks, Tim -- Timothy W. Hilton PhD Candidate, Department of Meteorology The Pennsylvania State University 503 Walker Building, University Park, PA 16802 hilton at meteo.psu.edu -------------------------------------------------- code to produce the plot with right-side labels clipped off example_data <- structure(list(year = structure(c(4L, 2L, 2L, 7L, 2L, 2L, 4L, 2L, 2L, 2L, 2L, 2L, 2L, 1L, 4L, 4L, 2L, 7L, 3L, 2L, 5L), .Label = c("2000", "2001", "2002", "2003", "2004", "2005", "2006"), class = "factor"),...
2010 Aug 18
2
How to Perform CCA in ??!! Help please
Performing CCA in R I know they say don't say please... or plead...but I'm sorry but I really need some help with this problem. I have tried to perform CCA in R and I can never do this successfully. Can someone please tell me what I'm doing wrong. I can't attach any file...so Please email me and I'll attach the necessary files. (there's only two) the files will be my CCA R
2006 Apr 30
7
Rich text aera?
Hi all, I am trying to add an article editing interface to my future webstore, and I am wondering what to use for text formatting. I would like to avoid using HTML, and calibre-bbcode just won''t work (see my last post). Is there some kind of library for live text formatting right in the browser? I would just need bold, italics, size and ul lists... Do you know of a good solution?
2011 Jun 09
2
Calculating a mean based on a factor range
...t such that it recorded a slightly different depth. For my purposes, however, this difference is negligible and I wish to consider all those different readings at close depth as a single depth. So for example: > library(ggplot2) > > eg <- read.csv("http://dl.dropbox.com/u/1574243/example_data.csv", header=TRUE, sep=",") > ## Calculating an average value from all the readings for each depth reading > eg.avg <- ddply(eg, c("site", "depth"), function(df) return(c(temp=mean(df$temperature), + num_samp=length(df$temperature) +...
2009 Feb 18
2
Counting/processing a character vector
...Z != 00, then, rows where ZZ == 00 only if the WWXXYY combination has not been counted yet. An example data set has been placed in my University web space and can be read into R with the following: ## read example csv data dat <- read.csv(url("http://www.homepages.ucl.ac.uk/~ucfagls/files/example_data.csv"), colClasses = c("factor","character","numeric")) ## show the data head(dat, n = 10) And the sppcode variable can be broken out into the 4 levels if required via: ## split out the four levels of categorisation: dat2 <- data.frame(dat,...
2008 Jun 07
2
rcov causing a segmentation fault on rspec 1.1.4 and rails 2.1
Hello again :) I''m trying to run rcov on my specs here but i''m getting a lot of segmentation faults (and they usually happen at different places): /home/mauricio/NetBeansProjects/reeds/vendor/rails/activerecord/lib/active_record/attribute_methods.rb:211: [BUG] Segmentation fault ruby 1.8.6 (2007-09-24) [i486-linux]
2010 May 20
1
Mixed Effects Model on Within-Subjects Design
...= .... condition3:diff25 vs. condition1:diff50 p_value = .... condition3:diff25 vs. condition1:diff75 p_value = .... condition3:diff50 vs. condition1:diff75 p_value = .... condition*diff p_value = .... Here is my code: #get the data study.data =read.csv("http://files.davidderiso.com/example_data.csv", header=T) attach(study.data) subject = factor(subject) condition = factor(condition) diff = factor(diff) rep = factor(rep) #visualize whats happening interaction.plot(diff, condition, value, ylim=c(240000, 450000),ylab="value", xlab="difficulty", trace.label="co...