similar to: cenbox(): Changing Default x-axis Group Labels

Displaying 20 results from an estimated 4000 matches similar to: "cenbox(): Changing Default x-axis Group Labels"

2011 Oct 04
3
How to subset() from data frame using specific rows
I have a data frame called chemdata with this structure: > str(chemdata) 'data.frame': 14886 obs. of 4 variables: $ site : Factor w/ 148 levels "BC-0.5","BC-1",..: 104 145 126 115 114 128 124 2 3 3 ... $ sampdate: Date, format: "1996-12-27" "1996-08-22" ... $ param : Factor w/ 8 levels "As","Ca","Cl",..:
2011 Aug 31
3
Scatter Plot Command Syntax Using Data.Frame Source
I've tried various commands. ?plot, Teetor's book, "R Cookbook", and Mittal's book, "R Graphs Cookbook" without seeing how to write the command to create scatterplots from my data.frame. The structure is: > str(chemdata) 'data.frame': 14886 obs. of 4 variables: $ site : Factor w/ 148 levels "BC-0.5","BC-1",..: 104 145 126 115
2012 Dec 05
4
Changing data frame column headings
I have a reshaped data frame with value column headings concatenated from two column headings in the melted data frame. I want to change all 56 headings in a single command, but 'names' allows me to change only one at a time. In Hadley's 2007 article on reshape in the Journal of Statistical Software he mentions a 'rename' function, but I cannot find that. Is there a way to
2012 Aug 07
3
reshape2's dcast() Adds NAs to Data Frame
I need to understand how and why dcast() adds NAs to a data frame that contained no missing values. The database table of chemical concentrations has all missing values removed because they cannot contribute to data analyses. The structure of the R data frame of these data have no NA values, and neither does the data frame resulting from applying the reshape2 melt() function to it. However,
2011 Aug 30
3
Descriptive Stats from Data Frame
I don't find how to do what I need to do in Dalgaard or 'R Cookbook', so I'm asking here. I have a data frame with water chemistry data and I want to start exploring these data. There are three factors (site, date, chemical) associated with each measurement. The data frame looks like this: > summary(chemdata) site_id.sample_date.param.quant
2013 Feb 04
3
Modifying Package Data
The bio.infer package contains a data frame /usr/lib/R/library/bio.infer/data/itis.ttable.rda that needs to be modified. After loading the bio.infer package and attaching the data frame with the data() function, I wrote the data frame to a text file. After adding another row to the data frame I applied read.table() to create a data frame, but it's in my pwd, not the R library data
2012 Jul 03
2
NADA Data Frame Format: Wide or Long?
I have water chemistry data with censored values (i.e., those less than reporting levels) in a data frame with a narrow (i.e., database table) format. The structure is: $ site : Factor w/ 64 levels "D-1","D-2","D-3",..: 1 1 1 1 1 1 1 1 ... $ sampdate: Date, format: "2007-12-12" "2007-12-12" ... $ preeq0 : logi TRUE TRUE TRUE TRUE TRUE
2012 May 17
3
New Eyes Needed to See Syntax Error
One of many scripts to produce 4 lattice plots on one page keeps throwing an error. I've tried manipulating the file to eliminate the error, but have not been able to do so. The error is: > source('bicarb.R') Error in source("bicarb.R") : bicarb.R:15:1: unexpected symbol 14: 15: hco33 ^ The 'h' is in column 0 so the caret would be column -1, but it's
2012 Aug 15
1
NADA package/cenboxplot() method: maximum censored percentage
One set of data has censored (less-than detection limits) water chemistry concentrations for 80-100% of all observations. My initial trial-and-error attempts to apply the cenboxplot() method suggests that it has an upper limit to the percentage of censored observations. I do not see this limit in Dennis Helsel's second edition. Has anyone experience plotting censored data and can provide
2013 Jan 18
3
longitudinal study
Hello R user, I have a data set from a longitudinal study ( sample below) where subjects are followed over time. Second column (status) contains info about if subject is dead or still in the study and third column is time measured in the week. Here is what I need: if status is not dead or unknown take the last week, if status is dead or unknown I need to have corresponding week. Desired resulst:
2018 Mar 14
1
Fwd: Learning advanced R
Hi Albrecht, I am forwarding your reply to the full group. It's been a while since I did this and I don't remember the details. Maybe someone else can comment. (I am a bit busy at the moment.) If no one supplies the information in a few days I will try to take a look. In the meantime you can start your reading on-line. :-) Regards, Eric Dear Eric, I downloaded the material from
2012 Apr 24
2
Errors Updating Libraries (2.15)
I just upgraded from 2.14 to 2.15 and have run into an issue upgrading libraries that I've not had in previous version upgrades. For example, trying to install reshape2 for 2.15 throws errors and I don't see what to change to over come the problem: > install.packages("reshape2") Installing package(s) into ?/home/rshepard/R/i486-slackware-linux-gnu-library/2.15? (as ?lib? is
2012 Aug 07
3
NADA Package: Referencing Data Frame Columns
The sample data sets that come with the NADA package are limited to one or two variables and a censored measurement indicator column. I try to mimic examples using my data but keep missing the target. My water chemistry data is available in two formats: long (as seen in a database table) and wide (as seen in a spreadsheet). The two structures are: str(chem) 'data.frame': 65349 obs. of
2018 Mar 13
3
Learning advanced R
On Tue, 13 Mar 2018, Mark Leeds wrote: > See Hadley's advanced R +1 A very well writte, highly useful book. Recommended. Rich
2011 Aug 31
1
Correct Syntax for subset.data.frame()
I want to create individual data.frames for each of the 8 param factors in chemdata. The syntax I tried (based on Teetor's book, page 132) and R's response are: > ars <- subset(chemdata, select=c(site,sampdate,param,quant), subset=(param = "As")) Error in subset.data.frame(chemdata, select = c(site, sampdate, param, : 'subset' must evaluate to logical
2011 Sep 10
1
Get previous R digest volumes/issues
Hello, (how) can I download/re-retrieve/order previous R-** digest volumes/issues to my mailbox for local browsing? Thank you, S?ren
2011 Dec 21
1
Automating Plot and Model Generation
I need to generate 6 x-y scatter plots (lattice xyplot) for each of 11 data frames. I'm sure the tedium of doing these one at a time can be avoided by writing a script that uses nested for loops or the apply() function. My Web search has not provided me with a tutorial on R programming that will introduce me to the language and allow me to write such a script. Please provide pointers to
2012 Jan 09
1
Different lm() Residuals Output
All but one of the summaries of multiple linear regressions in this analysis set present the residuals by min, 1Q, median, 3Q, and max. Example: lm(formula = TDS ~ Cond + Ca + Cl + Mg + Na + SO4, data = snow.cast) Residuals: Min 1Q Median 3Q Max -277.351 -32.551 -2.621 40.812 245.272 The one that doesn't has only a small number of rows (23) and presents the
2012 May 07
1
Missing Vignettes for reshape2
Running 2.15.0 on Slackware-13.1 with all packages in /usr/lib/R/library. Package reshape2 is in the library but there are no vignettes seen by R. If this is the result of something I did incorrectly, please point out how to install the vignettes with the package. I can get help for melt and cast but no reference on how to access the vignettes. Pointer appreciated, Rich
2013 Mar 04
1
Version Upgrade and Packages
I just upgraded from 2.15.2 to 2.15.3 on our Slackware systems and see the following when testing that the new version properly loads: "The following object(s) are masked from 'package:stats': cor "The following object(s) are masked from 'package:base': as.Date, as.Date.numeric" What, exactly, does this mean? Also, I assume that if I see no errors