Displaying 20 results from an estimated 2000 matches similar to: "merge/combine data"
2008 May 07
3
use list elements to subtract values from the dataframe
Hi,
I have a dataframe wf existing of a header with different labels and beneath
the values of those labels :
wf:
label1 label2 ...
0,45 0,21
0,10 0,45
.... ....
I have a list
fl <- c("label2","label3",..)
Isn't possible to use the list elements in the list in order to subtract
values from the dataframe? like :
wf$fl[[1]]
When I do in R I get :NULL
2008 Apr 25
2
join chars in loops
Hi,
Is it possible to create new vars in a loop
For instance:
for (i in 1:11)
var'i' <- assign something
output =
var1
var2
...
var11
Is there a way to combine/join the value of 'i' to the string/char var in de
loop.
--
View this message in context: http://www.nabble.com/join-chars-in-loops-tp16895854p16895854.html
Sent from the R help mailing list archive at
2008 Apr 23
3
select rows from data based on a vector of char strings
Hi,
I have loaded a dataset in R :
data =
label freq1 freq2
news 54 35
fun 37 21
milk 19 7
food 3 3
.... etc
And I have a vector
flist<-c("fun","food")
Now I want to use the vector 'flist' for selecting these values from 'data'
so that I get the following dataset :
label freq1 freq2
fun 37 21
food
2005 Nov 25
2
acts_as_list with 2 fields in the scope
Hi Railers,
I''ve got a Categories table.
I want it to act as a list within the scope of the parent_id AND the
site_id.
Categories table :
id
label
site_id
parent_id
So, in my Category class, I have :
acts_as_list :scope => ''site_id = #{site_id} AND parent_id = #
{parent_id}''
The problem is that when I try to move_up a Category with a parent_id
that is null,
2002 Jul 20
1
Problem with SSHD-Daemon (OpenSSH)
Hello,
i have problems with the ssh-daemon.
Problem: sshd daemon would not start, complained about
Not enough entropy in RNG
The same message comes by ssh-keygen .
Platfrom: OS/390-UnixSystemServices 2.10 / OpenSSH_2.9p1
I have the bin-Version from the IBM-Redbook SG24-5944-01 (Open Source
Software for z/OS and OS/390 UNIX -
2008 Apr 15
2
SMB/CIFS vs DFS
Hello,
I am running Mandrake 8.0
I am installing & upgrading to Samba 3.0.28
I just finished reading IBM's Redbook "Open Your
Windows with Samba on Linux" (redp3780). I'd like to
know, what is the best configuration between SMB/CIFS
& DFS, in a Linux (servers) & Windows
(clients/workstations) network. Even though I read the
Redbook, it still not clear as to which
2005 Jul 12
4
Calculation of group summaries
I know R has a steep learning curve, but from where I stand the slope
looks like a sheer cliff. I'm pawing through the available docs and
have come across examples which come close to what I want but are
proving difficult for me to modify for my use.
Calculating simple group means is fairly straight forward:
data(PlantGrowth)
attach(PlantGrowth)
stack(mean(unstack(PlantGrowth)))
2008 May 13
1
multiple plots over multiple pages
Hi,
I would like to iterate over a dataframe and plot several graphs over
several pages. For instance, an iteration over the dataframe will result in
20 plots. Since 20 plots in one page is too much (too many small plots) I
would like to distribute them over 5 pages with each 4 plots.
I know how to create multiple plots on one page with :
par(mfrow=c(2,2))
--
View this message in context:
2006 Apr 19
4
Weird Problem - probably a noob mistake
I was up late last night trying to find the cause of this, but I''m
stumped.
I have this relatively simple controller to load up a bio. It''s basicly
id, name, desc, type (I use STI).
class BioController < ApplicationController
layout ''layouts/singlepanel''
def index
@bio = Bio.find(:all, :conditions => [''site_id = ?'',
2010 Feb 20
1
Contingency Table - output to odfWeave not working for matrix
Hi guys I'm hoping someone can help me with this. It should be easy but it seems to get stuck for no obvious reason! I am trying to set a report up in odfWeave so that we can re-run the same analysis at 3 time points as the data matures and provide an 'instant' report.
To simplify the situation we have two pieces of data: site_id (numerical value 1-9) and reaction (categorical Y or
2006 Oct 27
1
has_many with nullable foreign_key?
Is there a way to use has_many and have it operate like such?
select * from pages where site_id = #{id} or site_id is null
I know there''s finder_sql, but then I''ll lose the find_in_collection
goodness.
Thanks,
Joe
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
2017 Jun 12
0
plotting gamm results in lattice
Hi Maria
If you have problems just start with a small model with predictions and then plot with xyplot
the same applies to xyplot
Try
library(gamm4)
spring <- dget(file = "G:/1/example.txt")
str(spring)
'data.frame': 11744 obs. of 11 variables:
$ WATERBODY_ID : Factor w/ 1994 levels "GB102021072830",..: 1 1 2 2 2 3 3 3 4 4 ...
$ SITE_ID
2006 Apr 21
4
Dynamic Menu
Hi, I think I''m doing this the right way, but can''t get it going. I''m
building a menu from the values in a mySQL table, and want to build it
on the fly. This is something that should be working but only works
halfway:
<% @pages = Page.find(:all, :conditions => [''site_id = 4'']) %>
<% @pages.each do |p| %>
xyz
<%p.id%>
<%
2006 Apr 14
3
Many to Many
Hi, I have three tables, a domain of Sites, a domain of Users, and a
junction of Sites_Users with the tables named as such.
My RoR application has a model and controller both User and Site. I
tried to add a controller and model named Site_User but I can''t
reference any functions in the controller, I get an Uninitialized
Constant error.
I''m very new to RoR, but not to
2009 Jan 22
2
time date stamp since, january 1st 1970
Hello, we are receiving some data, sample below - with a weird time/date
stamp format, we need some help with R on converting this time date
stamp to a useable field in R, date and time in a data-frame. The
developer says its the number of milliseconds since midnight, January 1,
1970.
sample: *1232558018624*
---------------------
How do I interpret the time stamp? Is there a date, i need
2017 Jun 12
2
plotting gamm results in lattice
Dear all,?
I hope that you can help me on this. I have been struggling to figure this out but I haven't found any solution.
I am running a generalised mixed effect model, gamm4, for an ecology project. Below is the code for the model:
model<-gamm4(LIFE.OE_spring~s(Q95, by=super.end.group)+Year+Hms_Rsctned+Hms_Poaching+X.broadleaved_woodland? ? ? ? ? ? ?+X.urban.suburban+X.CapWks,
2002 Mar 27
1
(Patch) AIX SRC Support
I've added System Resource Controller Support with
Socket Communications to Openssh.
We are using this code since 2.9.9p2 on AIX 4.2 and 4.3 without
problems. I've also tested the patched OpenSSH 3.1p1 on AIX 5.1.
It's mainly based on examples from the IBM Redbook
"Writing Reliable AIX Daemons".
The SRC request handler supports START, STOP, REFRESH and STATUS
requests
2003 Jan 31
1
Question about version 2.2.5
Hi, I'm again...
I have been studying a documentation of IBM (the Redbook) about Samba. In this
document says that to run the SWAT I can to run with any user, but to chance
something I need to log as root.
The document speak about version 2.0.x.
About this, my question is:
It's true for version 2.2.5?
And, in this document says also that when I pass the password, it is going in
text
2006 Apr 19
1
AIX libjpeg still looms
Simon,
Did you get a chance to review your AIX configuration? I'd be
curious to know the differences with my own as while I have R installed,
I still get the error related to libjpeg.a.
Error in get(getOption("device"))() : X11 module cannot be loaded
In addition: Warning message:
unable to load shared library '/usr/local/R/lib/R/modules/R_X11.so':
Could not load module
2012 Nov 02
1
[Rails 3.2.8] issue in regex scan
running a scan in irb is fine :
1.9.3p194 :001 > request_url =
"http://lvh.me::3000/en/backoffice/cms-admin/site/6/pages"
=> "http://lvh.me::3000/en/backoffice/cms-admin/site/6/pages"
request_url.scan(/^([\S]+)(backoffice\/cms-admin\/site\/)(\d+)(\/pages)$/)[0][2]
=> "6"
however running it in my controller doesn''t gives any result :
(rdb:1)