similar to: Efficient way to determine if a data frame has missing observations

Displaying 20 results from an estimated 1000 matches similar to: "Efficient way to determine if a data frame has missing observations"

2009 Dec 01
3
paste name in for loop?
Hello, I am trying to create subsets of grouped data (by area size), and use the area size as part of the output name. The code below works for area (xout) 1 and 50, the other files are given NA for an area. A simple example: xout <- c(1,5,10,25,50,100) for(i in xout) { print(paste("Areal_Ppt_",xout[i],"sqmi.txt", sep="")) } [1] "Areal_Ppt_1sqmi.txt"
2010 May 06
1
question about rolling regressions
Hi All, I am using R 2.11.0 on a Ubuntu machine. I have a time series data set and want to run rolling regressions with it. Any suggestions would be useful. Here are the details: (1) I convert relevant variables into time series objects and compute first differences: vad <- ts(data$ALLGVA/data$GDPDEF, start=1948, frequency=1) emp <- ts(data$ALLEMP, start=1948, frequency=1) vad.dif1 <-
2009 Nov 27
1
problem with "dynformula" from "plm" package [RE-POST]
Hello list, I'm following the paper (http://www.jstatsoft.org/v27/i02/paper) on how to use "plm" to run panel regressions, and am having trouble with what I believe should be something very basic. When I run the command (p.9 in the paper): R> dynformula(emp~wage+capital,log=list(capital=FALSE,TRUE),lag=list(emp=2,c(2,3)),diff=list(FALSE,capital=TRUE)) I see: emp ~ wage +
2010 Jan 25
3
Issue using tapply
Hello all, I am trying to use the tapply function to sum some values and change the column names of the resulting vector. I input Emp Et 1 10565 ACC 2 7515 ADM 3 625 AGF 4 6243 CNS 5 12721 EDU 6 3924 FIN 7 18140 HLH 8 3686 INF 9 15841 MFG 10 243 MIN 11 1864 MNG 12 4664 OSV 13 5496 PRF 14 4988 PUB 15 2166 REC 16 2153 REL 17 16082 RTL 18 3582 TRN 19 757 UTL 20
2005 Mar 08
1
To convert an adjacency list model into a nested set model
Dear R-help I am wondering if somebody wrote some code to convert an adjacency list model into a nested set model. In principal I want to do the same as John Celko mentioned it here with SQL: http://groups.google.co.uk/groups?hl=en&lr=lang_en&selm=8j0n05%24n31%241 %40nnrp1.deja.com Assume you have a tree structure like this Albert / \ /
2003 Jun 18
2
Forward stepwise procedure w/ stepAIC
I'm attempting to select a model using stepAIC. I want to use a forward selection procedure. I have specified a "scope" option, but must not be understanding how this works. My results indicate that the procedure begins and ends with the "full" model (i.e., all 17 independent variables)...not what I expected. Could someone please point out what I'm not
2016 Jun 24
3
Ayuda ggplot2
Hola a todos! Soy nueva en R y necesito hacer unos gráficos para una investigación, he explorado un poco y estoy intentando usar ggplot2 ya que hace gráficos de muy buena calidad...tengo los datos de varios años para diferentes grupos de empresas y los pretendo graficar tanto en un solo grafico como en varios (facet_wrap) pero tengo problemas con el eje de las X, ya que necesito que aparezcan los
2011 Sep 08
8
acts_as_solr problem ActsAsSolr::SearchResults:
hi, i am using acts_as_solr plugin when i tried with search by def search puts "#####################" # ids = params[:name] @id = params[:query] @emp = Employee.find_by_solr(@id) puts "------------------------------#{@emp}" respond_to do |format| format.html{render :action => ''search''} format.xml end
2007 Aug 04
1
ActiveRecord gotcha with references?
I have this situation: class Employee < ActiveRecord::Base belongs_to :designation end class Designation < ActiveRecord::Base end I do the following at the irb console: Step 1: Find an employee >> emp = Employee.find 3 => #<Employee:0x35a7d34 @attributes={"designation_id"=>"3", "id"=>"3",
2009 Aug 25
2
allowing line wrap for long strip text in xyplot (lattice)
Hi. Am brand new to R and to mailing lists - have never posted anywhere before, so hope I do this right. Am using R 2.9.1 with lattice graphics (just installed, fully up to date). Am doing trellis xyplot with y (emp=employment), x (yearmo=a time measure) and conditioning variable (indf - factor describing industry) -- i.e., (emp ~ yearmo | indf), where all three variables are in a dataframe. The
2004 Mar 05
1
question on integrate function & request for consultant
Dear R helpers, i am using the ecdf(emp. cumulative distribution function,and am getting the following error on daily returns of stock data (about 2000 data points). I am not sure what this means, I would expect the result of the code to be 1 (the integral from -infinity to +infinity of the emp. cumulative distribution). Also when I try to integrate a smaller subset(from say 0 to 1, i get an
2011 Sep 09
2
acst_as_solr error
hi, i am using https://github.com/mattmatt/acts_as_solr it shows the following error "undefined method ''each'' for " for this results = Employee.find_by_solr(@id) results.each do |emp| puts emp.id end where plugin does not contains "each" method in acts_as_solr/libs/ search_results.rb so for me each is not working with ActsAsSolr::SearchResults
2009 Aug 03
1
plm summary error
Dear "plm"-Package insiders, [I posted the following observation is April already but unfortunately I am not aware of any answers. With the hope that someone found an answer in the mean time, I ask again:] I realized the following difficulty with the summary.plm function (demonstrated with the example from the ?plm documentation). library(plm) data("Produc",
2011 Nov 13
1
libary(Rweka) J48 design tree
Hello everybody I'm having some difficulties to design the decision tree algorithm J48. I am using the following code and when I run it gives me the following message plot(m1) Error in plot.Weka_tree(m1) : Plotting of trees with multi-way splits is currently not implemented. #The code library(RWeka) library(randomForest) library(party) if(require(mlbench, quietly = TRUE) &&
2005 Nov 23
15
:conditions => ... formatting
With code like: if @params[:pnumber] =~ /\s*p?(\d+)\s*/ if student = Student.find_first(:conditions => ["pnumber like \":pnumber%\"", {:pnumber => $1}]) @borrower = student elsif emp = Employee.find_first(:condiwions => ["pnumber like \"?\"", {:pnumber => $1}]) @borrower = emp else
2011 Nov 16
3
clustering
Hey folks, I just went through the archives trying to find some info on this but did not come up with much other than it seems there are a few experts here on the list. I have no experience with clustering and have just taken over a Stem Cell Research Lab that has a Grid Engine cluster. I have not yet dug into the details of Grid Engine (only been here a week now) but am just trying to get up
2012 Nov 23
2
Barplot with lines
Hi, I'm trying to plot stacked barplot with lines on it. Here is the data. emp days val1 val2 score 1 21 1 0 1200 2 35 1 1 na 3 42 na na 3000 4 53 2 1 2100 5 64 1 0 na 6 73 na na 1400 My X-axis is days. I'm looking to plot val1,val2 as stacked bars and score as lines with different y-axis. I could get the bar plot and lines on it but the problem is the bars and lines are not aligning
2010 Feb 25
4
different types graphs
>library(RODBC) >ch<- odbcConnect("durga") > sqlQuery(ch, paste("SELECT * from emp")) >sqlQuery(ch, ("SELECT * from xyz")) store revenue year_y 1 bigbazar 787875 2008 2 more 87876 2008 plot(revenue ~ year_y, data=xyz, pch=16) can i get any diffrent types of graphs like pie charts, bar
2009 Sep 03
2
localhost/PING is CRITICAL
Hi all, I've recently switched to the latest rt kernel available from http://people.centos.org/hughesjr/kernel-rt And one of the two problems I'm having with this new kernel is that the logs have been flooded with nagios alerts which indicate high percentage (50-60) of packet loss when pinging localhost. The problem shows up several hours after the system reboot. Any ideas on what might
2009 Aug 20
1
header containing (PR#13834)
This problem arises on Solaris because apparently Solaris 10 returns the error "ENOSYS" when you try to make a directory on an automount point (translates to "unsupported file system operation"). The R mkdir function invokes do_dircreate in platform.c. The logic in this function, when the recursive option is set, attempts to mkdir() all of the antecedent elements of the