similar to: how to split a data framed with sequences

Displaying 20 results from an estimated 200 matches similar to: "how to split a data framed with sequences"

2009 Mar 25
3
Converting a Matrix to a Vector
Say I have: > set.seed( 1 ) > m <- matrix( runif(5^2), nrow=5, dimnames = list( c("A","B","C","D","E"), > c("O","P","Q","R","S") ) ) > m O P Q R S A 0.2655087 0.89838968 0.2059746 0.4976992 0.9347052 B 0.3721239 0.94467527 0.1765568
2009 May 25
1
Memory problems when using ifelse
Dear R Users, I have a data frame of 4 columns and ~58000 rows, the top of which looks like this: > head(max_out) Latitude Longitude Model Obs 1 -0.25 -49.25 4 4 2 -0.25 -50.25 4 5 3 -0.25 -50.75 4 4 4 -0.25 -51.25 3 11 5 -0.25 -51.75 6 4 6 -0.25 -52.25 12 5 The above shows, for each coordinate point, the
2011 Apr 04
2
Examples of web-based Sweave use?
I appreciate that this is OT, but I'd be grateful for pointers to examples of where Sweave has been used for web-based applications. In particular, examples of where reports/analyses are produced automatically through submission of data to a web-sever. I am mostly interested in situations where pdf reports have been produced rather than, say, a plot/table etc shown on a web page.
2010 May 28
5
difference in sort order linux/Windows (R.2.11.0)
Dear R users, I'm a bit perplexed with the effect sort has here, as it is different on Windows vs. linux. It makes my factor levels and subsequent plots different on the two systems. Given: types <- c("PC-D-Euro-0", "PC-D-Euro-1", "PC-D-Euro-2", "PC-D-Euro-3", "PC-D-Euro-4", "PC-D-Euro-5", "PC-D-Euro-6",
2008 Aug 22
1
subset grouped data with quantile and NA's
I can't quite seem to solve a problem subsetting a data frame. Here's a reproducible example. Given a data frame: dat <- data.frame(fac = rep(c("a", "b"), each = 100), value = c(rnorm(130), rep(NA, 70)), other = rnorm(200)) What I want is a new data frame (with the same columns as dat) excluding the top 5% of "value"
2011 Jun 17
1
question about split
Dear R-users I seem to be stumped on something simple. I want to split a data frame by factor levels given in one or more columns e.g. given dat <- data.frame(x = runif(100), fac1 = rep(c("a", "b", "c", "d"), each = 25), fac2 = rep(c("A", "B"), 50)) I know I can split it by fac1, fac2 by:
2013 Feb 08
2
aggregation-type question
I seem to have a Friday afternoon block and can't see the easiest way of doing this. Given a data frame like: dat <- data.frame(x = runif(100), y = runif(100), group = rep(letters[1:10], each = 10)) > head(dat) x y group 1 0.876751503 0.6518345 a 2 0.627067150 0.8801790 a 3 0.632465192 0.1768305 a 4 0.060359554 0.8835652 a 5 0.675868776 0.7721177
2010 May 03
1
Plotting the explanatory against the dependent in a GAM
? To whoever it may correspond, My name is Oscar Saenz and I am working on my thesis in Spain. I am using GAMs in "R" and, now that I have estimated my models, I need to plot the predicted smooth functions against the dependent variable (just as in Carlslaw et al. 2007, fig. 1*). Otherwise, I'd like to know how to plot the smoothed predictor variable values against the partial
1998 Feb 27
5
cross subnet browsing
It seems to be working for us now. I have the following relevant settings in the [global] section of smb.conf ... remote announce = 199.170.245.255/ENGINEER 199.170.224.255/ENGINEER 199.170.232.255/ENGINEER workgroup = ENGINEER wins support = no wins server = 199.170.224.6 domain master = yes local master = yes preferred master = yes ; os level = 0 don't want Samba to
2008 Nov 10
2
oggz-validate does not seem to check for correctly framed headers
While testing the new vcut, some of the early results had badly framed headers. I actually didn't notice it at first, because I was testing with oggz-validate, but ogginfo does identify the problem: "WARNING: Vorbis stream X does not have headers correctly framed. Terminal header page contains additional packets or has non-zero granulepos" Conrad (or someone else) may want to
2008 Nov 11
0
oggz-validate does not seem to check for correctly framed headers
2008/11/11 Ivo Emanuel Gon?alves <justivo at gmail.com>: > While testing the new vcut, some of the early results had badly framed > headers. I actually didn't notice it at first, because I was testing > with oggz-validate, but ogginfo does identify the problem: > > "WARNING: Vorbis stream X does not have headers correctly framed. > Terminal header page contains
2002 Jul 15
2
headers not correctly framed?!
Hi, when I encode some files with the current CVS I get the following error with ogginfo: [...] New logical stream (#1, serial: 476aea05): type vorbis Warning: Vorbis stream 1 does not have headers correctly framed. Terminal header page contains additional packets or has non-zero granulepos Vorbis headers parsed for stream 1, information follows... Version: 0 Vendor: Xiph.Org libVorbis I 20020713
2017 Jul 27
1
Fixing Ogg Vorbis files with incorrectly framed headers
Greetings. Possibly as the result of buggy tagging software, several hundred of my Ogg Vorbis files exhibit the following warning when examined by ogginfo: WARNING: Vorbis stream 1 does not have headers correctly framed. Terminal header page contains additional packets or has non-zero granulepos Nonetheless, most media players can play these files without any problem. A notable exception is
2011 Feb 16
0
remote data access from Sweave - does not evaluate?
Hello R users I am having trouble accessing data on a remote server when using sweave. An example is the loading of an .RData file e.g. load(url("http://uk-air.defra.gov.uk/openair/R_data/MH_2006.RData")) which works fine from the command line (this loads a small .RData file into R). I have a sweave document with this sort of code in that is meant to import data from the server and
2009 Jul 23
0
xyplot axis scaling with dates/times
Dear R users, I'm trying to get a good x-scale and labels on a plot like the one below. library(lattice) ## make almost a year of hourly data: mydat <- data.frame(dates = Sys.time() + 3600 * (1:7000), y = runif(7000)) ## plot it xyplot(y ~ dates, data = mydat, type = "l") Only one x-label is given (May). I would prefer several because it makes the plot very difficult to
1999 Jan 12
0
Roaming profiles with Samba
Hi all, I've followed the instructions in the DOMAIN.txt document to setup roaming profiles for my Win 95/98 workstations with great success....except for one thing. Prior to setting the samba server up as a domain server I had the workstations mapping the users' home directories to E drive (right click the share on the server & select Map Network Drive). After setting up the samba
2008 Sep 05
0
text processing for plots
Hi R people, I want to write some functions to automate the plotting of some expressions that use some of the plotmath capabilities. An example is a string supplied to a plot call such as: plot(1, 1, ylab = "pm10 (ug/m3)") This should actually appear like: plot(1, 1, ylab = expression("PM"[10] * " (" * mu * "g m" ^-3 * ")")) i.e. pollutant
2014 May 09
3
v2.2.13.rc1 vs. Pigeonhole
Server: Ubuntu 10.04 LTS 32bit There seems to be an incompatibility when compiling Pigeonhole against Dovecot v2.2.13.rc1. # make check with Pigeonhole throws up the following error message: <snip> Test case: ./tests/extensions/editheader/addheader.svtest: 1: Test 'Addheader - first' SUCCEEDED 2: Test 'Addheader - last' SUCCEEDED 3: Test 'Addheader - framed'
2010 May 20
2
Re : Manipulating Data Frames
Dear All, I have data some thisng like this : > data <- read.csv(file='ipsample.csv',sep=',' , header=TRUE) > data State Jan Feb Mar Apr May Jun 1 AAA 1 1 0 2 2 0 2 BBB 1298 1195 1212 1244 1158 845 3 CCC 0 0 0 1 2 1 4 DDD 5 11 17 15 10 9 5 EEE 18 28 27 23 23 16 6 FFF 68 152 184 135 111
2020 Jun 18
2
How to know the CallInst is a virtual call ?
So if I want to know whether a CallInst is a C++ virtual call or not. I have to get the information at frontend/Clang. and then pass the information to middle-end/LLVM IR by myself. Is it right? Thank you David Blaikie <dblaikie at gmail.com> 於 2020年6月19日 週五 上午1:26寫道: > On Thu, Jun 18, 2020 at 9:53 AM PenYiWang via llvm-dev > <llvm-dev at lists.llvm.org> wrote: > >