Displaying 20 results from an estimated 400 matches similar to: "Have a function like the "_n_" in R ? (Automatic count function )"
2009 Feb 07
2
Time Series Graphics - "cannot plot more than 10 series"
Hi Experts,
I would like to present time series data in meaningful way in building
some graphics. I've tried:
(1) plot(ts(mbaye3))
and
(2) plot(ts(mbaye3), start=1990)
But I always get this error-message:
Fehler [error] in plotts(x = x, y = y, plot.type = plot.type,
xy.labels = xy.labels, :
cannot plot more than 10 series as "multiple"
my data:
mbaye3
2009 Feb 27
4
Optimize for loop / find last record for each person
I want to find the last record for each person_id in a data frame
(from a SQL database) ordered by date. Is there a better way than
this for loop?
for (i in 2:length(history[,1])) {
if (history[i, "person_id"] == history[i - 1, "person_id"])
history[i, "order"] = history[i - 1, "order"] + 1 # same person
else
history[i,
2009 Jan 12
3
merge table rows (\multirow)
Hi:
I need help merging rows.
I am trying to merge the 'Month' column using \multirow. For example for the column 'Week' I want July to be merged into one row(weeks 27,28,29,30) and so on for the following weeks.
Below, I am creating a PDF using Sweave, MikTex,R-2.8.1 and windows XP to show an example.
\documentclass[11pt]{article}
\usepackage{longtable,verbatim}
\title{How to
2009 Feb 09
2
Problem in appending a row to *.csv file
Hi all,
I am new to R-project
I have a problem when when ever I am going to append a row in a *.csv file
that is
in R-project I created one dataframe and I saved it in "res.csv" and again
I got some results in dataframe with same column names and i tried to append
in a new row of same "res.csv" file but its appending again with
columnnaes like
first time when i created
2010 Dec 23
1
Reconcile Random Samples
Is there a way to generate identical random samples using R's runif
function and SAS's ranuni function? I have assigned the same seed
values in both software packages, but the following results show
different results. Thanks!
R
===
> set.seed(6)
> random <- runif(10)
> random
[1] 0.6062683 0.9376420 0.2643521 0.3800939 0.8074834 0.9780757
0.9579337
[8] 0.7627319 0.5096485
2009 Feb 09
2
Dataframes: conditional calculations per row .
Dear Sirs: I've been working with several variables in a dataframe
that serve as part of a calculation that I need to perform in a
different way depending on its value. Let me explain:
The main dataframe is called llmcc
llmcc : 'data.frame': 283 obs. of 11 variables:
$ Area : num 308.8 105.6 51.4 51.4 52.9 ...
$ mFondo : num 30.1 10 10.2 10.2 40.4 ...
$ mFachada :
2008 Jun 23
3
Simulating Gaussian Mixture Models
Hi,
Is there any package that I can use to simulate the Gaussian
Mixture Model , which is a mixture modeling method that is widely used
in statistical learning theory.
I know there is a mclust, however, I think it is a little bit
different from my problem.
Thanks very much..
regards.
--------------------------
Peng Jiang
??
Ph.D. Candidate
Antai College of Economics &
2009 Mar 21
2
factor with numeric names
Hi all,
I have a pretty basic question about categorical variables but I can't
seem to be able to find answer so I am hoping someone here can help. I
found that if the factor names are all in numbers, fitting the model
in lm would return labels that are not very recognizable.
# Example: let's just assume that we want to fit this model
fit <- lm(height ~ age + Seed,
2012 Sep 20
1
AIX 5.8p1?
Good Morning,
We just performed some security scanning on one of our AIX systems and these vulnerabilities was returned:
http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2010-4755
http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2011-5000
We are currently running: 5.8.0.6101
The latest on IBMs
2008 Nov 07
5
Agent-based social simulation and R
Do anyone know anything about the use of R for agent-based social
simulation? It should be possible, and would be convenient for the
simple reason that there are several nice packages containing useful
stuff for SNA (Social Network Analysis). Information about packages,
web sites, experienced persons in the field, etc. would be very welcome.
Tom
2010 Sep 13
3
HYPERVISOR_update_va_mapping failed
Installed 134 on some IBM x3550 and keep getting the message:
HYPERVISOR_update_va_mapping failed.
Press any key to reboot.
Is there anything I can do to try to get around it? 134 boots just fine without XEN.
--
This message posted from opensolaris.org
2006 Mar 27
0
Graded Response Model Simulation (SAS code conversion)
I have used R a lot in the past, but never for simulation. I have a code in SAS for the Graded Response Model (GRM), also known as Samejima's model. This code simulates an ordinal response, provided item characteristics (A=item discrimination, BB(G) are thresholds between various categorical responses). It is a macro file. I am thinking that I can write this as a function, and call it up
2007 Jan 21
1
sequential processing
Like many others, I am new to R but old to SAS.
Am I correct in understanding that R processes a data frame in a
sequential ly? This would imply that large input files could be
read, without the need to load the entire file into memory.
Related to the manner of reading a frame, I have been looking for the
equivalent of SAS _n_ (I realize that I can use a variant of which to
identify an index
2007 May 10
1
dfs/dce and openssh
I searched google and did not find any hits on this being solved.
I want to get ssh so I can the dsa/rsa style password it in an
environment that uses dfs/dce authentication if that is possible (and
it has not already been solved). In other words, I want to be able
to log into a host as a dfs/dce user without typing my password.
Before I dig into the code and trying to do this, I wanted
2009 Feb 25
2
Have any way to write a funtion into a list ?
Have any way to write a funtion into a list ?
--
Nash - morrison at ibms.sinica.edu.tw
2018 Oct 30
4
IBM buying RedHat
Mark Rousell wrote:
> On 30/10/2018 17:14, Simon Matter wrote:
<snip>
> Yup. When I looked at IBM Power machines before (maybe about a year ago,
> not sure), there was actually a pricing tool on the website. You could go
> through various options for machines (GPUs, CPUs, storage, memory, etc.)
> and get a price. Annoyingly I didn't record detailed pricing info but, as
2002 Aug 20
3
RH 7.3 + Samba DC
Hi All,
very new to the linux thing.
I have tried our local linux list but no luck.
I have setup Samba on the box which is running Rh7.3 with Samba 2.2.3a-6 (server/common & client)
I got a tut from IBMs site on how to setup a pdc with samba and redhat.
I followed the tut step for step but still when I want to login on wind98 onto the box I get a message
that the pdc is not found.
When I
2009 Oct 03
3
How to deal with this :" object ' obs' not found.
Hi guys,
I need your help.
I'm trying to sort the data by the variable "obs".
This is how I tried to sort the data below.
The problem is, I have a variable name "obs"; this is.. a counter variable.
something like _n_ in SAS.
I do not know why it is not working.
I even tried a similar example in UCLA webpage:
http://www.ats.ucla.edu/stat/R/faq/sort.htm :it also does not
2003 Oct 28
1
Software FAX Modem--One Last Request For Help
Here's one last plea for help from the list before I give up on the totally
cool software FAX modem concept in complete despair (for now, at least,
until I have more time to dig into it)....
I am simply not able to successfully receive a FAX no matter what device I
transmit from or how I bring the call into Asterisk. My lastest effort was
a call from a Pitney-Bowes FAX machine into an X100P
2011 Jul 20
2
polymorphic assoc seems only best for multiple parents ?
I have done a little polymorphic associations stuff and have
refreshed my memory on it again.
What it seems like is that if I have a particular record and I want to
make it easy for many different parent records to associate with it
using has_one or has_many, that is fine.
If I want a parent record to have multiple kinds of children through
one association, I don''t see how to do that