similar to: simple question

Displaying 20 results from an estimated 4000 matches similar to: "simple question"

2009 Jun 24
1
"by" question
Hello all I have a big data frame and I regularly want to break it down into subsets, calculate some new data, and add it back to the data frame. At the moment my technique seems a bit ugly and embarrassing. Something like: result <- by(mydata, mydata$some_factor, function (x) { # do something to create a vector v with length(v) == nrow(x) return(v) }) # now result has a big list, argh...
2009 Jul 08
1
clogit comparison between Stata and R
Hello all I'm moving back and forth between stata and R at the moment - of course, using R whenever possible :-) I'm running conditional logits on some panel data and I get slightly different results and different N in the two programs. In R I run clogit(trans.dem ~ I(avg.gle_rgdp.500/gle_rgdp) + log(gle_rgdp) + timesince.dem + I(timesince.dem^2) + timesince.dict + I(timesince.dict^2) +
2009 Dec 19
1
model matrix with a spline
Hi all I want to get the design matrix for a model, evaluated at a single value. For example, if I pass in a data frame with a=2, b=2, y=3, and my model is y ~ a+b+a:b, then I would like to get the values 3, 2, 2, 4 out. I can do this with: tmp <- model.matrix(fit, data=mydata) or tmp <- predict(fit, newdata=mydata, type="terms") However, if the fit had a smoothing spline
2011 May 26
1
table of Design regressions?
Hi all Just a quick question which I can't find an answer for in the usual places: I would like to create a table of regression output, with one or more regressions in the columns, a la xtable. But I am using models from the Design package. Is there anything out there that will play nicely with that? xtable doesn't seem to do the trick. Cheers, David Hugh-Jones Research Associate CAGE,
2016 Aug 30
1
cat(..., append=TRUE) on sftp share
Dear R-SIG-Debian Team, r-devel sent me to you. Situation: Ubuntu 16.04, R-3.3.1, and a file in a folder mounted with sftp via gnome virtual file system. for(i in 1:10){cat(i,file = "/run/user/1001/gvfs/sftp:host=server/path on server/test2",append = TRUE)} gives a file that reads |10| and not |12345678910| Further checking: * A mapped network drive on Windows 7 and
2005 Oct 25
1
how to increase the font size of axis data
Hello R Users, I am a new user to R. When we make a simple plot then how to increase the font size of the data at the each axis. Many thanks, Kind regards, Yogesh -- =========================================== Yogesh Tiwari, Max-Planck Institute for Biogeochemistry, Hans-Knoell Strasse 10, D-07745 Jena, Germany Office : 0049 3641 576 376 Home : 0049 3641 223 163 Fax : 0049 3641
2004 Nov 12
2
whether R can import netcdf file format data ?
Hello R Users, Whether 'R' can import Netcdf format data files ?? Any package in 'R' that can help me on this front ?? Many thanks in advance, Regards, Yogesh -- =========================================== Yogesh K. Tiwari, Max-Planck Institute for Biogeochemistry, Postfach 10 01 64, D-07701 Jena, Germany Office : +49 3641 576376 Fax : +49 3641 577300 Home : +49
2018 Mar 01
0
[parallel] fixes load balancing of parLapplyLB
Dear Tomas, Thanks for your commitment to fix this issue and also to add the chunk size as an argument. If you want our input, let us know ;) Best Regards On 02/26/2018 04:01 PM, Tomas Kalibera wrote: > Dear Christian and Henrik, > > thank you for spotting the problem and suggestions for a fix. We'll probably add a chunk.size argument to parLapplyLB and parLapply to follow OpenMP
2016 Nov 24
1
[parallel-package] feature request: set default cluster type via environment variable
Dear all, I?m working as an administrator of a High-Performance Computing (HPC) Cluster which runs on Linux. A lot of people are using R on this Linux cluster and, of course, the *parallel* package to speed up their computations. It has been our collective experience, that using |makeForkCluster| yields an overall better experience /on Linux/ than the |makePSOCKcluster|, for whatever definition
2011 Feb 08
1
WINS not caching second Samba Server
Background: I have 2 SMB Servers; one is configured to be the Preferred Master (fserver), the other (upstairs) is configured to just share some files. I want it to connect and update the WINS configuration on the Preferred Master. Configuration files for both servers are attached. Also worth mentioning that both the 'fserver' and 'upstairs' reside on the same network. Some
2009 Jul 07
3
how to read point shp file to R?
I am new with R and want do some analysis with a point vector data file. Any help is appreciate. Sunny [[alternative HTML version deleted]]
2005 Apr 01
3
plot axis appearance problem
Hello, When I plot any data with simple plot command in R, for example :- plot(time,co2,ylim=c(350,380),xlim=c(1993,2003),xlab=NA,ylab=NA,type="p",col=5) Then the first value of x-axis(350) and y-axis(1993) never starts from origin, always they sifted from the origin. Is there any command that I can correct this in the ploted figure and both the axis values start from origin.
2005 Jan 14
1
how to produce 2-d color plots in R
Hello 'R' Users, I am very new on 'R', so excuse me if I ask something wrong. I have ASCII data and the colums of the data are looks like :- !------------------------- time,yr,mo,dy,hr,min,sec,lat,lon,ht,co2obs,sigma,co2model -- - -- !---------------------------- Each column has data value. Now I want to produce 2-d color maps, for example the plot should look like :- on
2009 May 26
2
Problem accessing "row number" from subset on a dataframe
I would like to use the "row number" information returned from performing a subset command on a dataframe. For example, I would like to automatically delete some rows from a dataframe if they match a criteria. Here is my example below. data(airquality) names(airquality) subset(airquality, airquality$Month == 6) Now how do I delete the row numbers returned automatically? I
2009 Aug 04
5
Stacked plots with common x-axis and different y-axis
Is there a place that shows how to create two plots that are stacked on top of each other where they share a common x-axis scale, but have differnt y-axis scale? Say have the following data: airquality Stack plot(airquality$Day, airquality$Wind) on top of plot(airquality$Day, airquality$Temp). I am interested in stacking the two on top of each other with no seam, or plotting the two lines with
2018 Jan 03
1
samba AD: using passwd on linux to change PW
Thanks a lot. I will check it. We do not use kerberos - is it necessary ? Bye, Peer On 03.01.2018 15:15, L.P.H. van Belle via samba wrote: > Hi Peer, > > This is my output, this account testaccount1 was created 2 minutes ago before the tests below. > > passwd testaccount1 > Current Kerberos password: > Enter new Kerberos password: > Retype new Kerberos password: >
2008 Dec 23
3
Using transform to add a date column to a dataframe
I would like to add a column to the airquality dataset that contains the date 1950-01-01 in each row. This method does not appear to work: > attach(airquality) > data1 <- transform(airquality,Date=as.Date("1950-01-01")) Error in data.frame(list(Ozone = c(41L, 36L, 12L, 18L, NA, 28L, 23L, 19L, : arguments imply differing number of rows: 153, 1 I can't decipher what
2006 Feb 05
2
a generic 'attach'?
Is there any reason why 'attach' is not generic in R? I notice that it is in another system, for example, and I can see some applications if it were so in R. Bill Venables. Bill Venables, CMIS, CSIRO Laboratories, PO Box 120, Cleveland, Qld. 4163 AUSTRALIA
2003 Oct 16
4
data() misbehaving inside a function
Calls of the form data(package = pkg) inside a function incorrectly fail ("pkg" is a local variable). For instance, foo <- function(pkg) data(package = pkg) foo("base") Error in .find.package(package, lib.loc, verbose = verbose) : none of the packages were found ## workaround -- force argument "package" to be an expression ## (not a
2014 Apr 04
2
Migration samba3 -> samba4
Hi, we are still using a setup with openldap + samba3. On the unix systems we are using ldap for authentication, for all windows clients samba is used. When we migrate to samba4 what will happen to the unix clients ? Can they ask the samba4 PDC ? For an update . are there other Howto's as the https://wiki.samba.org/index.php/Samba4/samba-tool/domain/classicupgrade/HOWTO just to get some