similar to: Function to get a sequence of months

Displaying 20 results from an estimated 2000 matches similar to: "Function to get a sequence of months"

2006 Nov 29
1
Extract some character from a character vector of length 1
the content of th character vector (of length 1) is as follows: a <- "something2 ....pat1 name1 pat2 something2....pat1 name2 pat2....pat1 name3 pat2 " I would like to extract the character bewteen pat1 and pat2. That's to say, I would like to get a vecter of c("name1", "name2","name3"). What I did is use strsplit() twise. But I wonder if there
2012 Feb 13
2
Error in apply(x2, 1, diff) : dim(X) must have a positive length
Anyone knows hat might be the cause of this error? Thanks for any help! >library(MASS) > dif.mns = function(x2,tr1=.2,tr2=.3){ + #generates four different 'means' using + #difference scores from x2, an n x 2 matrix + #for use w/ bootstrap comparisons + diffs = apply(x2,1,diff) + mn1=mean(diffs) + mn2=mean(diffs,tr=.2) + mn3=mean(diffs,tr=.3) +
2010 Mar 02
2
Strange behavior with poisosn and glm
Hi, I'm just learning about poison links for the glm function. One of the data sets I'm playing with has several of the variables as factors (i.e. month, group, etc.) When I call the glm function with a formula that has a factor variable, R automatically converts the variable to a series of variables with unique names and binary values. For example, with this pseudo data: y
2012 Oct 11
1
a question
Dear R-helpers, I need to read some data from output of garchFit in fGarch. my model is garch(1,1) and i want to read coefficients(omega,alpha,beta) and timeseries(x) and conditional SD(s). because i need them to use in other formula. for example :omega+x[1]+s[3] and maybe i have several simulation then i need a general way to read them, not to read with my eyes for example the quantity of
2002 Sep 27
2
FIPS 140-2 certification
Hello everyone! I work for a company that uses OpenSSH to remotely support systems we've sold. Since some of our clients are US Dept. of Defense hospitals, our access to these servers needs to comply with a whole range of requirements and standards. At this point it's looking like the SSH daemon needs to be FIPS 140-2 compliant, and the only package that is certified is F-Secure.
2006 Feb 07
1
Opinions needed on call quality vs network latency
Hi, I am checking out the quality at a few vendors, and althought I know it doesn`t totally reflect call quality I am using ping as a cheap subsitute to having a real VoIP testing system The question I have is this one: given that one service gives me a 80ms ping (pretty consistantly) and another one gives me 30ms (again very consistently), is this 50ms difference enough to impact perceived call
2015 Mar 13
5
samba 4.1.17 on raspberry pi as ad dc - winbind breaks it again
okay, I started to look into winbind and the /etc/nsswitch.conf (and smb.conf)... and it wreaked havoc... I was using the guide at https://wiki.samba.org/index.php/Setup_a_Samba_AD_Member_Server - right guide? the guide is talking about "samba member server that is part of an active directory" Is that correct? I mean, THE ad domain controller is member of the ad, but it sounds like
2009 Jul 15
1
Matrix multiplication precision
Hi!! I am trying to multiply 5 matrices and then using the inverse of that matrix for further computation. I read about precision problems from the archives and the suggestion was to use as.numeric while computing the products. I am still having problems with the results. Here is how I am using it #Mn.mat<-(T.mat %*% Rz.mat %*% Q.mat %*% Rz.mat %*% T.mat) # I was doing this in one step
2006 May 11
3
Please help me to combine two datasets.
Dear r-users, Suppose I have two data sets data set-1 Date height ------------------------ 1/11/2005 10 2/11/2005 23 3/11/2005 54 4/11/2005 21 5/11/2005 22 data set-2 weight -------- 32 45 11 Now I want to combine this two data sets. i.e. i want to see: Date height weight ------------------------------------------- 3/11/2005 54
2006 Jul 23
3
RfW 2.3.1: regular expressions to detect pairs of identical word-final character sequences
Dear all I use R for Windows 2.3.1 on a fully updated Windows XP Home SP2 machine and I have two related regular expression problems. platform i386-pc-mingw32 arch i386 os mingw32 system i386, mingw32 status major 2 minor
2006 Feb 14
2
how I can perform Multivariate Garch analysis in R
Dear aDVISOR, Hope I am not disturbing you. Can you tell me how I can perform Multivariate Garch analysis in R. Also please, it is my humble request let me know some resource materials on Multivariate Garch analysis itself. Sincerely yours, -- Arun Kumar Saha, M.Sc.[C.U.] S T A T I S T I C I A N [Analyst] Transgraph Consulting [www.transgraph.com] Hyderabad, INDIA Contact # Home:
2007 Jan 20
3
Insert R logo
Dear all R users, I want to insert the R logo in every graphic that I made in my Statistical analysis using R. Can anyone tell me whether is it possible or not and if possible how to do this? your help will be highly appreciated. Thanks and Regards, Arun [[alternative HTML version deleted]]
2007 Sep 18
5
Need help on "date"
Dear all, I have a variable 'x' like that: > x [1] "2005-09-01" Here, 2005 represents year, 09 month and 01 day. Now I want to create three variables naming: y, m, and d such that: y = 2005 m = 09 d = 01 can anyone tell me how to do that? Regards, [[alternative HTML version deleted]]
2013 Dec 12
2
PPT text extracter
Hi, I've had a heads up from a user that catppt did not work at all on semi-recent PowerPoint files (ppt, not pptx). I checked, and indeed it misses most of the content on many files. After looking around, I found Python code from the libreoffice project which makes a nice ppt text extractor after adding a very thin command line wrapper:
2012 May 07
1
Value of Hurst exponent (R/S) method > 1
Hello, I'm using fArma package to estimate the value of Hurst exponent using R/S method. However, for a certain set of data I get H ~ 1.8. How do I interpret this? Following are the output that I get for this set: > mean(data[,2]) [1] 400.5433 > sd(data[,2]) [1] 1139.786 > > rsFit(data[,2], levels = 64) Title: Hurst Exponent from R/S Method Call: rsFit(x = data[, 2], levels
2012 Oct 16
5
CentOS 6.3 on Dell Poweredge R815
Hi, Any folks on this list who have installed CentOS 6.3 on the new Dell Poweredge R815 servers? How was your experience? Thanks -Surya -- Surya Saha Department of Plant Pathology and Plant-Microbe Biology Cornell University, NY, USA http://www.linkedin.com/in/suryasaha
2008 Apr 23
3
Writing list object to a file
Hi all, I am wondering how to write a 'list' object to a file. I already gone through some threads like http://mail.python.org/pipermail/python-list/2001-April/080639.html, however could not trace out any reliable solution. I tried following : > write.table(calc, file="c:/data.csv") Error in data.frame("200501" = c(-0.000387071806652095, -0.000387221689252648, :
2008 Feb 27
3
Loading user defined functions autometically each time I start R
Hi all, I wrote some user defined function for my own. Now I want to get a mechanism so that every time I start R, those function will automatically be loaded in R without manually copying pasting. Can gurus here pls tell me how to do that? Or I have to build my own packages bundled with those functions. However I am not familiar in writing R package yet. Regards, [[alternative HTML version
2006 Jun 12
3
NA values
Dear all R users, I am wondering whether there is any way to replace all "NA" values in a data frame by some numerical value, suppose 1000? Thanks and Regards [[alternative HTML version deleted]]
2017 Oct 08
2
Manipulations with CO2 dataset on R
Hi, I just started a new course this semester on R, I never used it in my life and i'm stuck on these questions from 3 days, it would be really nice if someone could explain me the answers with the relative commands. thanks a lot in advance The following 7 questions are based on the CO2 dataset of R. 1) How many of the plants in CO2 are Mc2 for Plant? 2) How many are either Mc2 or Mn2?