search for: r2151

Displaying 14 results from an estimated 14 matches for "r2151".

Did you mean: 2151
2013 Feb 08
4
convert 12 time stamp to 24 hour
...01-01 01:00:01 PM") > testtime [1] "2013-01-01 01:00:01 PM" > testtime24hour<-strftime(testtime,'%H:%M:%S') > testtime24hour [1] "01:00:01" how to convert to 24 hour format so that the object 'testtime24hour' is: '13:00:01' Thanks. -- r2151
2013 Feb 14
5
plot custom x axis ticks values
...ers, For this data set: testvalues<-c(10,20,30,40) How to amend the plot instruction: plot(testvalues,ann=FALSE,type='l',yaxt='n',xaxt='n') so that x axis ticks labels can be added to existing graph with arbitrary value such as 0,100,200,300)? Thanks in advance. -- r2151
2013 Jan 16
1
function approx interpolation of time series data sets
...es of 'data1' column 2 (5, 10, 12, 7) for the times shown in data2. Tried the following command but received the error shown: data3<-approx(data1,xout=data2) Error in approx(data1, xout = data2) : (list) object cannot be coerced to type 'double' What is my mistake please? -- r2151
2013 Jan 17
1
Can strptime handle milliseconds or AM/PM?
Readers, Responding to an old post (http://tolstoy.newcastle.edu.au/R/e2/help/07/06/18850.html), and using the example in the manual: monthextract<-strptime("20/2/06 11:16:16.683", "%m") monthextract [1] NA Why is the result 'NA' and not '2'? -- r2151
2013 Jan 29
2
remove margin between plot and axis
...ders, Am trying to plot a graph with type 'h' and want to remove the white space between the plot lines and the x axis. The help section 'par' suggests that the option 'mai' controls this feature, but the syntax plot(...mai=c(0,1,1)) is ineffective Any advice please? -- r2151
2013 Jan 30
1
remove label from specific axis
Readers, For a graph plot instruction: plot(seq(10:50),type='h',yaxt='n',yaxs='i',lab=c(20,2,2),xlab='x axis label',bty='l',main='graph title') how to remove y-axis label and keep the x-axis label? _ r2151
2013 Feb 08
1
plot ᵒ C in graph axis label
Readers, For a part of the 'plot' command: ...ylab=expression(paste('rate (',degree~C^-1,')'))... Is it possible to introduce 'thinspace' (e.g. '\thinspace' in LaTeX) between the degree (?) sign and the centigrade (C) symbol? -- r2151
2013 Mar 07
1
create vector from indices interpolated values
...a vector 'y' by selecting the values in 'dataset2' using the indices equivalent to interpolated values in 'dataset1' (i.e. indices 2, 5, 6, 9 in dataset1)? The result of creating 'y' should be y 0.4 0.2 0.3 0.9 Then the desired plot would be plot(y~x) Thanks. -- r2151
2013 Feb 15
1
file copy to password protected network drive
...> > How to amend the plot instruction: > > plot(testvalues,ann=FALSE,type='l',yaxt='n',xaxt='n') > > so that x axis ticks labels can be added to existing graph with > arbitrary value such as 0,100,200,300)? > > Thanks in advance. > > -- > r2151 > > ______________________________________________ > R-help@r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide > http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible...
2013 Feb 14
1
approxfun values
...40816 7.530612 8.020408 [49] 8.510204 9.000000 How to obtain a vector consisting _only_ of the interpolated values? It was expected that 'approx' would return both original and interpolated values (which the above shows) and that 'approxfun' would not show the original values. -- r2151
2013 Feb 18
2
mtext unicode failure
...mtext("text (O?)\n more text", side = 3, line = 1) : conversion failure on 'text (O?)' in 'mbcsToSbcs': dot substituted for <82> If the command to print to postscript is omitted, a graph is viewed successfully, with the title text: text(O?) more text Thanks. -- r2151
2012 Nov 15
1
create function to solve derivative
...e.g. values in column C). Have searched the mailing list and found reference to a function 'D', but the help accessed via '?D' and '?deriv' does not explain how to write a derivative function. Could someone please direct me to the relevant parts of the manual to begin? -- R2151
2012 Dec 12
1
remove last row of a data frame
Readers, For a data set 'a': 1 2 3 4 Please what is the syntax to remove the last row and create a new object 'b': 1 2 3 Thanks. -- R2151
2013 Feb 08
2
add data symbol to axis label
...rs, Is it possible to add a data symbol (e.g. pch='21') to an axis label? The objective is to plot a graph with two (2) y-axes and the plotting character for data set 1 is added to the label of y1 axis (left); plot character for data set 2 is added to label of y2 (right) axis. Thanks. -- r2151