r - 将不同的函数应用于嵌套列表中的不同元素

标签 r list nested-lists

我有一个嵌套列表:

my_list <- list(id1 = list(Overview = "https://edit.jornada.nmsu.edu/services/descriptions/esd/022A/F022AC001CA/overview.json", 
Climate = "https://edit.jornada.nmsu.edu/services/descriptions/esd/022A/F022AC001CA/climatic-features.json", 
Physiography = "https://edit.jornada.nmsu.edu/services/descriptions/esd/022A/F022AC001CA/physiographic-features.json", 
Soil = "https://edit.jornada.nmsu.edu/services/descriptions/esd/022A/F022AC001CA/soil-features.json", 
Ecology = "https://edit.jornada.nmsu.edu/services/descriptions/esd/022A/F022AC001CA/ecological-dynamics.json"), 
id2 = list(Overview = "https://edit.jornada.nmsu.edu/services/descriptions/esd/022A/F022AC002CA/overview.json", 
    Climate = "https://edit.jornada.nmsu.edu/services/descriptions/esd/022A/F022AC002CA/climatic-features.json", 
    Physiography = "https://edit.jornada.nmsu.edu/services/descriptions/esd/022A/F022AC002CA/physiographic-features.json", 
    Soil = "https://edit.jornada.nmsu.edu/services/descriptions/esd/022A/F022AC002CA/soil-features.json", 
    Ecology = "https://edit.jornada.nmsu.edu/services/descriptions/esd/022A/F022AC002CA/ecological-dynamics.json"))

我想将不同的函数应用于列表的不同子元素。以下是我要应用的功能:


Fns <- list(
  function(x) fromJSON(x)$generalInformation$developmentStage,
  function(x) fromJSON(x)$climaticFeatures$narratives$climaticFeatures,
  function(x) fromJSON(x)$physiographicFeatures$intervalProperties,
  function(x) fromJSON(x)$soilFeatures$texture$texture,
  function(x) fromJSON(x)$ecologicalDynamics$narratives$ecologicalDynamics
)

每个列表中有 5 个子元素。提供的 5 个函数应按照提供给这些子元素的顺序应用。

我找到了一些有用的资源。

这个类似question使用map()作为解决方案。问题是 map() 仅应用于单个位置的子元素,我无法确定如何使用 map() 将多个函数应用于多个位置.

其他类似question使用Map()。本题确实将不同的函数应用于列表的不同位置,但它不使用嵌套列表。

对于将多个不同的函数应用于嵌套列表中的多个不同的列出元素,有什么建议吗?

谢谢!

最佳答案

我们可以使用lapply循环遍历列表,然后使用Map循环'Fns'和内部列表元素以将函数应用于相应的元素

library(jsonlite)
out <- lapply(my_list, function(x) {
        x[] <- Map(function(fn, y) fn(y), Fns, x)
       x} )

-输出

> out
$id1
$id1$Overview
[1] "Approved"

$id1$Climate
[1] "The average annual precipitation ranges from 35 to 55 inches, and falls mostly in the form of snow from November to April. The mean annual air temperature ranges from 34 to 37 degrees Fahrenheit. The frost-free (>32F) season is 25 to 45 days, and the freeze-free (>28F) season is 35 to 60 days. \r\n\r\nMaximum and minimum monthly climate data for this ESD were generated using PRISM data (PRISM Climate Group, Oregon State University, http://prism.oregonstate.edu, created 4 Feb 2004.) and the ArcGIS ESD extract tool."

$id1$Physiography
   property unit representativeLow representativeHigh rangeLow rangeHigh
1 Elevation   ft              8500              12000                   
2     Slope    %                 8                 75                   

$id1$Soil
[1] "Loamy coarse sand" "Coarse sand"      

$id1$Ecology
[1] "Abiotic Features: \r\nThis ecological site occurs in the highest elevations of the northern subalpine LRU, typically between 9,000 and 10,000 feet on mountain slopes. Soils are derived from granitic parent material, and are shallow to moderately deep over paralithic granitic bedrock, with a sandy skeletal particle size class. Cold temperatures and a short growing season restrict development of less frost resistant conifers. Coarse soils with very low water holding capacity support a minimal understory. \r\n\r\nEcology-Disturbance Factors: \r\nIndividual whitebark pine trees are very slow growing, and may be up to1500 years old (Millar 2014). Stands are composed of multiple age-class single and multiple stem trees because of ongoing seedling establishment. Caching of whitebark pine seeds by Clark’s nutcracker is the primary mode of seed dispersal, with birds often caching seeds in open areas that are suitable for young seedlings. If all seeds are not consumed, they give rise to dense clusters of genetically similar whitebark pine. These clusters appear to be one tree with many stems, but are more often individual trees (Burns et al. 1990, Tomback et al. 2001a).  In the absence of disturbance, ongoing recruitment from seed-caches occurs, leading to an increase in stand density over time. \r\n\r\nFire and avalanche are the primary natural drivers for succession. Fire ignition is frequent on these exposed ridges and mountain peaks, but there is minimal and discontinuous fuel to carry large or hot fires. Small fires may play a minor role in maintaining openings that favor the germination and survival of young whitebark pine seedlings (Burns et al. 1990, Tomback et al. 2001b, Howard 2002). Avalanche is common among the alpine peaks and ridges, and can remove swaths of vegetation in avalanche prone chutes or below wind formed cornices. \r\n\r\nWhitebark pine forests are threatened by the non-native Cronartium ribicola, the cause of white pine blister rust (WPBR) and the native mountain pine beetle (Dendroctonus ponderosae) (Cox 2000, Tomback et al. 2001b, Howard 2002). Severe epidemics of WPBR in combination with MPB outbreaks have killed large areas of forest in the Rocky Mountains, but the whitebark pine forests in the Sierra Nevada have not suffered as high mortality. There is a complex interaction between MPB outbreaks, WPBR infection, and climate. Mountain pine beetles prefer larger diameter trees (> 6 inch diameter at breast height), as these are necessary to complete their life cycle,, and attack at the warmer, lower elevation zone of whitebark pine. Mountain pine beetles preferentially attack trees infected by WPBR. White pine blister rust will infest all whitebark pines, regardless of age or elevation (Cluck 2014). \r\n\r\nMountain pine beetles are a native species in North American forests, but warmer temperatures have shifted the thermal zone for mountain pine beetles upslope, subjecting higher elevations of whitebark pine to beetle attacks (Craig 2010, Keane et al. 2012, Keane and al 2013). Severe mountain pine beetle epidemics cause high mortality of overstory trees, while suppressed understory trees may be released (Meyer and Safford 2014). A flush of regeneration may occur due to the reduction in the overstory canopy providing new areas for establishment. However, the decline in seed production due to the loss of large overstory trees will leave fewer seeds to be consumed by Clark’s nutcracker and other animals which leaves fewer seeds available for regeneration, threatening stand sustainability. \r\n\r\nThe non-native WPBR was introduced into North America near Vancouver, British Columbia in approximately 1910, and has been slowly spreading across the western United States and Canada. It currently occurs throughout the Cascades, and north and central Sierra Nevada. So far, it has not been detected on whitebark pine in the southern extent of the Sierra Nevada, but has been found on a whitebark pine in Yosemite National Park and in a high Sierra location on the western slope of the Sierra National Forest (Maloney 2011). A survey was conducted in 2009 to determine WPBR presence and effect on whitebark pine survivorship in the Lake Tahoe Basin. Mean incidence of WPBR among whitebark pine populations was 35 percent, with a range of 1 to 65 percent (Maloney et al. 2012). \r\n\r\nIn order for WPBR to infect whitebark pine several synchronous phenological and environmental factors need to occur. For infection to occur in five-needled white pines, relative humidity has to be greater than 90 percent, temperatures have to be between 35.6 and 64.4 degrees F (2 to 18 degrees C), and stomates need to be open to allow WPBR entry (Maloney 2011). The basidiospores, which infect whitebark pine, are released in fall from the alternate host currants (Ribes sp.), or less commonly, lousewort or Indian paintbrush (Pedicularis or Castilleja sp.). These spores do not travel far or last long in the environment, and years with late summer or early fall precipitation are most likely when infection will occur. Whitebark pine may have early onset winter dormancy, so stomates are closed at the time WPBR basidiospores are released (Maloney 2011). The onset of winter dormancy is dependent upon the length of the growing season (temperature), precipitation and soil available water capacity (AWC).\r\n\t\r\nThere appears to be a relationship between soils with higher AWC and higher infection rates or intensity of stem girdling (Maloney et al. 2012). Higher soil moisture could increase WPBR mycelium growth rates and increase basidiospore production, while also allowing for whitebark pine stomates to remain open longer in the season, increasing the probability of infection (Maloney et al. 2012). This ecological site occurs on shallow to moderately deep sandy-skeletal soils, with lower AWC than the corresponding volcanic ecological site (R022AC200CA), and is likely less susceptible to WPBR infestation. A 2009 inventory of WPBR showed that the whitebark stands occurring on granitic soils had infestation rates ranging from 1 to 19%, while stands on volcanic soils ranged from -- to 65% (Maloney et al. 2012). \r\n\r\nThe main impact of WPBR on whitebark pine is reduction in stand cone production due to die-back of cone bearing branches from cankers girdling the branches. Mortality rates in older trees are low, and may take decades to occur. Younger trees may be killed quickly if main stem girdling causes disruption of water flow (Maloney et al. 2012). A few studies have been conducted on genetic resistance to WPBR, and results range from no resistance (Maloney, personal communication), to 26 to 47 percent in the Rocky Mountains and the Pacific Northwest (Keane et al. 2012). \r\n\r\nReduced seed production affects the presence and abundance of Clark’s nutcracker, and thus the number and distribution of seed caches (Tomback and Resler 2007, Keane et al. 2012). This can lead to recruitment below the threshold required to sustain populations (McKinney et al. 2009). \r\n\r\nPredictions about climate change suggest that the whitebark pine communities in the Sierra Nevada Mountains may be threatened by rising temperatures and precipitation changes. Recent California based climate models predict a 9 degree F increase in temperature by 2100, and broader models predict a 2 to 4 degree F increase in winter and 4 to 8 degree increase in summer (Safford et al. 2012). Models are more variable for precipitation, but local models for the Sierra Nevada, predict similar to slightly less precipitation. Most models agree that summers will become drier, since more of the precipitation is predicted to come as rain, and snow melt-off will occur earlier in spring (Hayhoe et al. 2004, Safford et al. 2012). Presently a severe drought is occurring in the Sierra Nevada, with 10 to 30 percent of average precipitation and very little snow accumulation. Whether this is climate driven, and thus will become more of the future normal remains to be seen. \r\n\r\nHigh elevation areas with suitable soils and landforms for the upward migration of whitebark pine will be important for the sustainability of this community. However, in this region of the central Sierra Nevada, whitebark pine already occurs at the upper most elevations of the highest mountains in the area, so has little room to move upslope. The southern Sierra Nevada, with its higher mountain peaks, may prove to be an important refugium for this species. \r\n\r\nThe historic temperature range for this ecological site is between 34 to 37 degrees F. With a 2 to 6 degree warming, species such as Sierra lodgepole pine (Pinus contorta var. murrayana), or mountain hemlock (Tsuga mertensiana) may become dominant in this zone. A 9 degree warming shift over the next 85 years could make conditions favorable for upper montane species to establish. Species such as Jeffrey pine (Pinus jeffreyi) and California red fir (Abies magnifica) could survive with the longer growing season and warmer temperatures for seedling germination and leader growth. If lower elevation conifers establish in the whitebark pine zone, whitebark pine may become a seral species, dependent upon fire for continued regeneration and elimination of competitors. \r\n\r\nThe reference state consists of the most successionally advanced community phase (numbered 1.1) as well as other community phases that result from natural and human disturbances. Community phase 1.1 is deemed the phase representative of the most successionally advanced pre-European plant/animal community including periodic natural surface fires that influenced its composition and production. This phase is determined from the oldest modern day remnant forests and/or historic literature. \r\n\r\nAll tabular data listed for a specific community phase within this ecological site description represent a summary of one or more field data collection plots taken in communities within the community phase. Although such data are valuable in understanding the phase (kinds and amounts of ground and surface materials, canopy characteristics, community phase overstory and understory species, production and composition, and growth), it typically does not represent the absolute range of characteristics nor an exhaustive listing of species for all the dynamic communities within each specific community phase."


$id2
$id2$Overview
[1] "Approved"

$id2$Climate
[1] "The average annual precipitation ranges from 35 to 55 inches, and falls mostly in the form of snow from November to April. The mean annual air temperature ranges from 34 to 37 degrees Fahrenheit. The frost-free (>32F) season is 25 to 45 days, and the freeze-free (>28F) season is 35 to 60 days. \r\n\r\nMaximum and minimum monthly climate data for this ESD were generated using PRISM data (PRISM Climate Group, Oregon State University, http://prism.oregonstate.edu, created 4 Feb 2004.) and the ArcGIS ESD extract tool."

$id2$Physiography
list()

$id2$Soil
[1] "Loamy coarse sand" "Coarse sand"      

$id2$Ecology
[1] "Abiotic Features: \r\n\r\nThis ecological site occurs in the highest elevations of the northern subalpine LRU, typically between 9,000 and 10,000 feet on north facing mountain slopes. Soils are derived from granitic parent material, and are moderately deep over paralithic granitic bedrock, with a sandy skeletal particle size class. North-facing aspects hold snow for longer into the summer, providing additional moisture that allows mountain hemlock to be co-dominant or dominant over whitebark pine. \r\n\r\nEcological Features: \r\n\r\nThe high elevations in which this site occurs are buried with deep snow from November to June and remain cool for most of the year. Several physiological adaptations allow mountain hemlock and white bark pine to survive in this cold environment. Both species have maximum photosynthetic rates at colder temperatures than lower elevation trees, and close stomata to reduce water loss during dry or cold periods (Smith and Hinckley 1995). The tips of mountain hemlock branches are very flexible, an attribute that reduces snow build-up and stem breakage. Snow burial can be helpful in protecting trees from strong winter winds, desiccation from warm winter winds and sunny winter days, extreme cold, and repeated freezing and thawing (Arno and Hammerly 1984). Snow burial can, however, be detrimental as well. For example, portions of trees exposed above the snow can die back, leaving short multi-stemmed trees. Snow creep can create J shaped tree trunks, and avalanches can destroy swaths of forest. \r\n\r\nTimberline trees are able to withstand extremely cold winter conditions when they are dormant, but need at least a 2 to 3-month frost free growing period in the summer. Leaves, shoots, cones, and new seedlings develop during this short growing season, typically from mid-June through August. As elevations increase, temperatures drop and the growing season is shortened. Growing season length is one of the limiting factors to determine treeline. Another is wind. Wind induced treelines can be caused by drought conditions, due to increased evapotranspiration (Tomback et al. 2001). \r\n\r\nWhitebark pine is a long-lived timberline tree species that grows 40 to 60 feet tall in favorable conditions. The cones are indehiscent, meaning they do not open at maturity. Caching of whitebark pine seeds by Clark’s nutcracker is the primary mode of seed dispersal. Seeds are often cached in open areas that are suitable for young seedlings. If all seeds are not consumed, they give rise to dense clusters of genetically similar whitebark pine. These clusters appear to be one tree with many stems, but are more often individual trees (Burns et al. 1990, Tomback et al. 2001a). In the absence of disturbance, ongoing recruitment from seed-caching occurs, leading to an increase in stand density over time.\r\n\r\nWhite bark pine germination and seedling survival is best in canopy openings, such as those created by small fires. This is especially important in areas where whitebark pine develops dense canopies or can be replaced by shade tolerant conifers, as in the northern Cascades and the Rocky Mountains (Arno and Hoff 1990, Tomback et al. 2001, Howard 2002) and the cool, north-facing slopes of this ecological site. The slow growing, shade-tolerant mountain hemlock will gradually gain dominance over whitebark pine in the absence of fire or other disturbance in this ecological site. \r\n\r\nDisturbance features: \r\n\r\nFire and avalanche are the primary natural drivers for succession in this site. Fire ignition is frequent on these exposed ridges and mountain peaks, but there is minimal and discontinuous fuel to carry large or hot fires. Small fires may play a minor role in maintaining openings that favor the germination and survival of young whitebark pine seedlings (Burns et al. 1990, Tomback et al. 2001, Howard 2002). Avalanche is common among the alpine peaks and ridges, and can remove swaths of vegetation in avalanche prone chutes or below wind formed cornices. \r\n\r\nNatural fire return intervals for whitebark pine and mountain hemlock forests in the Sierra Nevada are poorly documented. Fire occurrence for mountain hemlock in the Pacific Northwest may range from 400 to 800 years, and is typically stand replacing (Tesky 1992). However, the Pacific Northwest is much wetter and has a different stand structure than mountain hemlock in the Sierra Nevada. The mean fire return intervals for whitebark pine forest across the US range from 29 to 300 years, while moderate severity fires range from 25 to 75 years, and stand replacing fires occur at greater than 140 year intervals (Fryer 2002). These whitebark pine studies are primarily from areas where whitebark pine forms continuous forests, rather than the small, open stands typically found in the Sierra Nevada. \r\n\r\nWhitebark pine forests are threatened by the non-native Cronartium ribicola, the cause of white pine blister rust (WPBR) and the native mountain pine beetle (Dendroctonus ponderosae) (Cox 2000, Tomback et al. 2001b, Howard 2002). Severe epidemics of WPBR in combination with MPB outbreaks have killed large areas of forest in the Rocky Mountains, but the whitebark pine forests in the Sierra Nevada have not suffered as high mortality. There is a complex interaction between MPB outbreaks, WPBR infection, and climate. Mountain pine beetles prefer larger diameter trees (> 6 inch diameter at breast height), as these are necessary to complete their life cycle, and attack at the warmer, lower elevation zone of whitebark pine. Mountain pine beetles preferentially attack trees infected by WPBR. White pine blister rust will infest all whitebark pines, regardless of age or elevation (Cluck 2014). \r\n\r\nMountain pine beetles are a native species in North American forests, but warmer temperatures have shifted the thermal zone for mountain pine beetles upslope, subjecting higher elevations of whitebark pine to beetle attacks (Craig 2010, Keane et al. 2012, Keane and al 2013). Severe mountain pine beetle epidemics cause high mortality of overstory trees, while understory suppressed trees may be released  (Meyer and Safford 2014). A flush of regeneration may occur due to the reduction in the overstory canopy. However, the decline in seed production due to the loss of large overstory trees will leave fewer seeds available for regeneration, threatening stand sustainability.\r\n\r\nThe non-native WPBR was introduced into North America near Vancouver, British Columbia in approximately 1910, and has been slowly spreading across the western United States and Canada (Maloney 2011). It currently occurs throughout the Cascades, and north and central Sierra Nevada. So far, it has not been detected on whitebark pine in the southern extent of the Sierra Nevada, but has been found on a whitebark pine in Yosemite National Park and in a high Sierra location on the western slope of the Sierra National Forest (Maloney 2011). A survey was conducted in 2009 to determine WPBR presence and affect on whitebark pine survivorship in the Lake Tahoe Basin. Mean incidence of WPBR among whitebark pine populations was 35 percent, with a range of 1 to 65 percent (Maloney et al. 2012). \r\n\r\nIn order for WPBR to infect whitebark pine several synchronous phenological and environmental factors need to occur. For infection to occur in five-needled white pines, relative humidity has to be greater than 90 percent, temperatures have to be between 35.6 and 64.4 degrees F (2 to 18 degrees C), and stomates need to be open to allow WPBR entry (Maloney 2011). The basidiospores, which infect whitebark pine, are released in fall from the alternate host currants (Ribes sp.), or less commonly, lousewort or Indian paintbrush (Pedicularis or Castilleja sp.). These spores do not travel far or last long in the environment, and years with late summer or early fall precipitation are most likely when infection will occur. Whitebark pine may have early onset winter dormancy, so stomates are closed at the time WPBR basidiospores are released (Maloney 2011). The onset of winter dormancy is dependent upon the length of the growing season (temperature), precipitation and soil available water capacity (AWC).\r\n\r\nThere appears to be a relationship between soils with higher AWC and higher infection rates or intensity of stem girdling (Maloney et al. 2012). Higher soil moisture could increase WPBR mycelium growth rates and increase basidiospore production, while also allowing for whitebark pine stomates to remain open longer in the season, increasing the probability of infection (Maloney et al. 2012). This ecological site occurs on shallow to moderately deep sandy-skeletal soils, with lower AWC than the corresponding volcanic ecological site (R022AC200CA), and is likely less susceptible to WPBR infestation. A 2009 inventory of WPBR showed that the whitebark stands occurring on granitic soils had infestation rates ranging from 1 to 56% ( 22% average), while stands on volcanic soils ranged from 34 to 65%(with an average of 49%(Maloney et al. 2012). \r\n\r\nThe main impact of WPBR on whitebark pine is reduction in stand cone production due to die-back of cone bearing branches from cankers girdling the branches. Mortality rates in older trees are low, and may take decades to occur. Younger trees may be killed quickly if main stem girdling causes disruption of water flow (Maloney et al. 2012). A few studies have been conducted on genetic resistance to WPBR, and results range from no resistance (Maloney, personal communication), to 26 to 47 percent in the Rocky Mountains and the Pacific Northwest (Keane et al. 2012). \r\n\r\nReduced seed production affects the presence and abundance of Clark’s nutcracker, and thus the number and distribution of seed caches (Tomback and Resler 2007, Keane et al. 2012). This can lead to recruitment below the threshold required to sustain populations (McKinney et al. 2009). \r\n\r\nMountain hemlock is not susceptible to WPBR or MPB, but trees over 80 years old are very susceptible to laminated root rot (Phellinus weirii). Laminated root rot can rapidly spread by root contact and kill acres of forests (Tesky 1992). \r\n\r\nReestablishment of mountain hemlock after a fire or other disturbance is often slow, and in some areas growth never regains its tree-like stature (Arno and Hammerly 1984). Mountain hemlock has relatively thick bark, but typically has dense, low branches that make the trees susceptible to canopy fires. Mountain hemlock has higher cone production, seed germination and seedling survival rates during years of higher precipitation. Mountain hemlock can also reproduce by layering. Mountain hemlock seeds are wind dispersed and germinate on the snow or soil surface. Seedlings do best with partial shade from whitebark pine or older mountain hemlocks. \r\n\r\nPredictions about climate change due to global warming suggest that the whitebark pine communities in the Sierra Nevada Mountains may be threatened by rising temperatures and precipitation changes. Recent California based climate models predict a 9 degree F increase in temperature by 2100, and broader models predict a 2 to 4 degree F increase in winter and 4 to 8 degree increase in summer (Safford et al. 2012). Models are more variable for precipitation, but local models for the Sierra Nevada predict similar to slightly less precipitation. Most models agree that summers will become drier, since more of the precipitation is predicted to come as rain, and snow melt-off will occur earlier in spring (Hayhoe et al. 2004, Safford et al. 2012). Presently a severe drought is occurring in the Sierra Nevada, with 10 to 30 percent of average precipitation and very little snow accumulation. Whether this is climate driven, and thus will become more of the future normal, remains to be seen. \r\n\r\nHigh elevation areas with suitable soils and landforms for the upward migration of mountain hemlock and whitebark pine will be important for the sustainability of this community. However, in this region of the central Sierra Nevada, whitebark pine already occurs at the uppermost elevations of the highest mountains in the area, so has little room to move upslope. The southern Sierra Nevada, with its higher mountain peaks, may prove to be an important refugium for this species. Mountain hemlock has more room to migrate as it occurs further to the north, and at lower elevations than whitebark pine. The southern Sierra Nevada is typically too dry for extensive mountain hemlock forest. \r\n\r\nThe historic temperature range for this ecological site is between 34 to 37 degrees F. With moderate warming on these northern aspects California red fir (Abies magnifica) is the most likely conifer to move into the area occupied by this ecological site. \r\n\r\nThe reference state consists of the most successionally advanced community phase (numbered 1.1) as well as other community phases that result from natural and human disturbances. Community phase 1.1 is deemed the phase representative of the most successionally advanced pre-European plant/animal community including periodic natural surface fires that influenced its composition and production. This phase is determined from the oldest modern day remnant forests and/or historic literature. \r\n\r\nAll tabular data listed for a specific community phase within this ecological site description represent a summary of one or more field data collection plots taken in communities within the community phase. Although such data are valuable in understanding the phase (kinds and amounts of ground and surface materials, canopy characteristics, community phase overstory and understory species, production and composition, and growth), it typically does not represent the absolute range of characteristics nor an exhaustive listing of species for all the dynamic communities within each specific community phase."

关于r - 将不同的函数应用于嵌套列表中的不同元素,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/68734438/

相关文章:

r - 将XY点添加到由levelplot生成的栅格 map 中

r - 使用 devtools 制作 R 包 PDF 手册

r - 在列中添加缺失值,并在上方添加行中的值

Python 切片按相反顺序赋值不起作用!为什么?

python - 如何使用列表中具有字典键的元素来访问字典值?

r - 在嵌套的列表列表中查找空列表

r - 有没有一种快速的方法来修改 R 中嵌套列表的一致组件?

r - 双循环在许多列中迭代以查找 R 中的异常值

Haskell - 列表列表中的元素组合列表

html - ionic 2/3 列表项 : item inside item